Appearance
Layer
Type: object
The layer object containing its properties.
Properties
- destroy
() => Layer
Destroy the layer (remove it from the layer array, remove its listeners). - element
HTMLElement
HTML element used by the layer. - getLevel
() => number
Retrieves the index of the layer in the layer array. - getOpacity
() => number
Get the layer opacity, between 0 and 1. - hide
() => Layer
Keep the layer in the layer array but hide its content. - isHidden
() => boolean
Check the layer visibility. - moveDown
() => Layer
Take the layer down a notch (decreases its index by 1). - moveTo
(depth: number) => Layer
Move the layer to the specified index in the layer array. - moveToBottom
() => Layer
Move the layer at the very bottom of the array (index0
). - moveToTop
() => Layer
Move the layer at the very top of the array (indexlength - 1
). - moveUp
() => Layer
Take the layer up a notch (increases its index by 1). - setOpacity
(opacity: number) => Layer
Set the layer opacity. - setPosition
(position: {x: number, y: number}) => Layer
Setter setting the element translation in the graph space. - setSize
(size: {width: number, height: number}) => Layer
Setter setting the element size in the graph space. - show
() => Layer
Show the layer content.