FastLayer
new Konva.FastLayer(config)
FastLayer constructor. DEPRECATED! Please use Konva.Layer(\{ listening: false\})
instead. 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.
Parameters
Name | Type | Description |
---|---|---|
clipX (optional) | Number | set clip x |
clipY (optional) | Number | set clip y |
clipWidth (optional) | Number | set clip width |
clipHeight (optional) | Number | set clip height |
clipFunc (optional) | function | set clip func |
Inherited from: Object