Appearance
SVGLayer 
Type: object
The layer object containing its properties (overloaded for handling transformed elements).
Properties
- destroy 
() => SVGLayerDestroy the layer (remove it from the layer array, remove its listeners). - element 
SVGSVGElementSVG 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 
() => SVGLayerKeep the layer in the layer array but hide its content. - isHidden 
() => booleanCheck the layer visibility. - moveDown 
() => SVGLayerTake the layer down a notch (decreases its index by 1). - moveTo 
(depth: number) => SVGLayerMove the layer to the specified index in the layer array. - moveToBottom 
() => SVGLayerMove the layer at the very bottom of the array (index0). - moveToTop 
() => SVGLayerMove the layer at the very top of the array (indexlength - 1). - moveUp 
() => SVGLayerTake the layer up a notch (increases its index by 1). - refresh 
SVGDrawingFunctionFunction rerendering the SVG. - setOpacity 
(opacity: number) => SVGLayerSet the layer opacity. - setPosition 
(position: {x: number, y: number}) => SVGLayerSetter setting the element translation in the graph space. - setSize 
(size: {width: number, height: number}) => SVGLayerSetter setting the element size in the graph space. - show 
() => SVGLayerShow the layer content.