From 3b14818ac57f658c2f9cc930f19a18095af434bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B0=D0=B2=D1=80=D1=91=D0=BD=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=BD?= Date: Wed, 9 Apr 2014 17:53:15 +0800 Subject: [PATCH] fix fast layer docs. Also node and container parameters added --- src/Global.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Global.js b/src/Global.js index 2e158da7..c95b278e 100644 --- a/src/Global.js +++ b/src/Global.js @@ -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(); */