Skip to main content

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

NameTypeDescription
clipX (optional)Numberset clip x
clipY (optional)Numberset clip y
clipWidth (optional)Numberset clip width
clipHeight (optional)Numberset clip height
clipFunc (optional)functionset clip func

Inherited from: Object