Appearance
CanvasLayer
Type: object
The layer object containing its properties (overloaded for handling canvas).
Properties
- destroy
() => CanvasLayerDestroy the layer (remove it from the layer array, remove its listeners). - element
HTMLElementHTML element used by the layer. - getLevel
() => numberRetrieves the index of the layer in the layer array. - getOpacity
() => numberGet the layer opacity, between 0 and 1. - hide
() => CanvasLayerKeep the layer in the layer array but hide its content. - isHidden
() => booleanCheck the layer visibility. - moveDown
() => CanvasLayerTake the layer down a notch (decreases its index by 1). - moveTo
(depth: number) => CanvasLayerMove the layer to the specified index in the layer array. - moveToBottom
() => CanvasLayerMove the layer at the very bottom of the array (index0). - moveToTop
() => CanvasLayerMove the layer at the very top of the array (indexlength - 1). - moveUp
() => CanvasLayerTake the layer up a notch (increases its index by 1). - refresh
DrawingFunctionFunction rerendering the canvas. - setOpacity
(opacity: number) => CanvasLayerSet the layer opacity. - show
() => CanvasLayerShow the layer content.