Some edits to Project documentation.

This commit is contained in:
Jonathan Puckey 2011-05-26 00:57:58 +02:00
parent 020cbbcef5
commit 8ab56a7ebd

View file

@ -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