mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix formatting issues.
This commit is contained in:
parent
c7c49d4091
commit
a457228846
5 changed files with 24 additions and 21 deletions
|
@ -10,7 +10,7 @@
|
|||
* All rights reserved.
|
||||
*/
|
||||
|
||||
/**
|
||||
/**
|
||||
* @name ProxyContext
|
||||
*
|
||||
* @class The ProxyContext is a helper class that helps Canvas debugging
|
||||
|
|
|
@ -10,18 +10,18 @@
|
|||
* All rights reserved.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name _global_
|
||||
* @namespace
|
||||
*
|
||||
* When code is executed as PaperScript, the script's scope is populated with
|
||||
* all fields of the currently active {@link PaperScope} object, which within
|
||||
* the script appear to be global.
|
||||
*
|
||||
* In a JavaScript context, only the {@link paper} variable is added to the
|
||||
* global scope, referencing the currently active {@link PaperScope} object,
|
||||
* through which all properties and Paper.js classes can be accessed.
|
||||
*/
|
||||
/**
|
||||
* @name _global_
|
||||
* @namespace
|
||||
*
|
||||
* When code is executed as PaperScript, the script's scope is populated with
|
||||
* all fields of the currently active {@link PaperScope} object, which within
|
||||
* the script appear to be global.
|
||||
*
|
||||
* In a JavaScript context, only the {@link paper} variable is added to the
|
||||
* global scope, referencing the currently active {@link PaperScope} object,
|
||||
* through which all properties and Paper.js classes can be accessed.
|
||||
*/
|
||||
/** @scope _global_ */{
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
// PaperScope, and create the initial paper object, all in one statement:
|
||||
/*#*/ if (__options.environment == 'browser') {
|
||||
|
||||
// NOTE: Do not create local variable `var paper` since it would shield the
|
||||
// global one in the whole scope.
|
||||
|
||||
paper = new (PaperScope.inject(Base.exports, {
|
||||
// Mark fields as enumerable so PaperScope.inject can pick them up
|
||||
enumerable: true,
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
* All rights reserved.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name Component
|
||||
* @class
|
||||
*/
|
||||
/**
|
||||
* @name Component
|
||||
* @class
|
||||
*/
|
||||
var Component = Base.extend(Emitter, /** @lends Component# */{
|
||||
_class: 'Component',
|
||||
_events: [ 'onChange', 'onClick' ],
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
* All rights reserved.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name Palette
|
||||
* @class
|
||||
*/
|
||||
/**
|
||||
* @name Palette
|
||||
* @class
|
||||
*/
|
||||
var Palette = Base.extend(Emitter, /** @lends Palette# */{
|
||||
_class: 'Palette',
|
||||
_events: [ 'onChange' ],
|
||||
|
|
Loading…
Reference in a new issue