mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
fix fast layer docs. Also node and container parameters added
This commit is contained in:
parent
2df46b4ace
commit
3b14818ac5
@ -180,7 +180,7 @@ var Kinetic = {};
|
||||
|
||||
/**
|
||||
* Layer constructor. Layers are tied to their own canvas element and are used
|
||||
* to contain groups or shapes
|
||||
* to contain groups or shapes.
|
||||
* @constructor
|
||||
* @memberof Kinetic
|
||||
* @augments Kinetic.Container
|
||||
@ -197,14 +197,18 @@ var Kinetic = {};
|
||||
},
|
||||
|
||||
/**
|
||||
* FastLayer constructor. Layers are tied to their own canvas element and are used
|
||||
* to contain groups or shapes
|
||||
* FastLayer constructor. Layers are tied to their own canvas element and are used
|
||||
* to contain shapes only. If you don't need node nesting, mouse and touch interactions,
|
||||
* or event pub/sub, you should use FastLayer instead of Layer to create your layers.
|
||||
* It renders about 2x faster than normal layers.
|
||||
* @constructor
|
||||
* @memberof Kinetic
|
||||
* @augments Kinetic.Container
|
||||
* @param {Object} config
|
||||
* @param {Boolean} [config.clearBeforeDraw] set this property to false if you don't want
|
||||
* to clear the canvas before each layer draw. The default value is true.
|
||||
* @@nodeParams
|
||||
* @@containerParams
|
||||
* @example
|
||||
* var layer = new Kinetic.FastLayer();
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user