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
clip (optional)Objectset clip
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: Konva.Layer

Inherited Methods

Konva.FastLayer also has all methods of its parent classes. Each link below opens the full documentation of the method on the class that defines it.

From Konva.Layer

From Konva.Container

From Konva.Node