removeElement()
Deletes an SVG element from the SVG canvas.
Syntax
removeElement(
node om.DomNode )
- node is the
om.DomNode
to be removed.
Usage
This function deletes an SVG element from the current SVG canvas.
The DOM node to remove is passed as second parameter.
The SVG DOM node object is de-referenced and destroyed.
Example
DEFINE root_svg, g om.DomNode
...
LET g = fglsvgcanvas.g( "group1" )
CALL root_svg.appendChild( g )
...
CALL fglsvgcanvas.removeElement( g )