mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Some edits to Project documentation.
This commit is contained in:
parent
020cbbcef5
commit
8ab56a7ebd
1 changed files with 3 additions and 18 deletions
|
@ -146,29 +146,14 @@ var Project = this.Project = Base.extend({
|
||||||
/**
|
/**
|
||||||
* {@grouptitle Project Hierarchy}
|
* {@grouptitle Project Hierarchy}
|
||||||
*
|
*
|
||||||
* The layers contained within the document.
|
* The layers contained within the project.
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* // When you create a new Document it always contains
|
|
||||||
* // a layer called 'Layer 1'
|
|
||||||
* console.log(document.layers); // Layer (Layer 1)
|
|
||||||
*
|
|
||||||
* // Create a new layer called 'test' in the document
|
|
||||||
* var newLayer = new Layer();
|
|
||||||
* newLayer.name = 'test';
|
|
||||||
*
|
|
||||||
* console.log(document.layers); // Layer (test), Layer (Layer 1)
|
|
||||||
* console.log(document.layers[0]); // Layer (test)
|
|
||||||
* console.log(document.layers.test); // Layer (test)
|
|
||||||
* console.log(document.layers['Layer 1']); // Layer (Layer 1)
|
|
||||||
*
|
*
|
||||||
* @name Project#layers
|
* @name Project#layers
|
||||||
* @type array
|
* @type array
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The layer which is currently active. The active layer is indicated in the
|
* The layer which is currently active. New items will be created on this
|
||||||
* Layers palette by a black triangle. New items will be created on this
|
|
||||||
* layer by default.
|
* layer by default.
|
||||||
*
|
*
|
||||||
* @name Project#activeLayer
|
* @name Project#activeLayer
|
||||||
|
@ -176,7 +161,7 @@ var Project = this.Project = Base.extend({
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The symbols contained within the document.
|
* The symbols contained within the project.
|
||||||
*
|
*
|
||||||
* @name Project#symbols
|
* @name Project#symbols
|
||||||
* @type array
|
* @type array
|
||||||
|
|
Loading…
Reference in a new issue