Class: FastLayer

Konva. FastLayer

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.


new FastLayer()

Parameters:
Name Type Argument Description
config.clipX Number <optional>

set clip x

config.clipY Number <optional>

set clip y

config.clipWidth Number <optional>

set clip width

config.clipHeight Number <optional>

set clip height

config.clipFunc function <optional>

set clip func

Source:
konva.js
Example
var layer = new Konva.FastLayer();

Extends

  • Object