Appearance
Layer
Type: object
The layer object containing its properties.
Properties
- destroy
() => LayerDestroy 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
() => LayerKeep the layer in the layer array but hide its content. - isHidden
() => booleanCheck the layer visibility. - moveDown
() => LayerTake the layer down a notch (decreases its index by 1). - moveTo
(depth: number) => LayerMove the layer to the specified index in the layer array. - moveToBottom
() => LayerMove the layer at the very bottom of the array (index0). - moveToTop
() => LayerMove the layer at the very top of the array (indexlength - 1). - moveUp
() => LayerTake the layer up a notch (increases its index by 1). - setOpacity
(opacity: number) => LayerSet the layer opacity. - setPosition
(position: {x: number, y: number}) => LayerSetter setting the element translation in the graph space. - setSize
(size: {width: number, height: number}) => LayerSetter setting the element size in the graph space. - show
() => LayerShow the layer content.