#Node Methods
Programatically control a node with the below methods.
#move
move a node by x, y coordinates
arguments
returns
null
#toFront
move a node to front on the z axis
arguments
none
returns
null
#toBack
move a node to back on the z axis
arguments
none
returns
null
#hide
hide the node
arguments
none
returns
null
#show
show the node
arguments
none
returns
null
#toggleFilters
show or hide the node effect (dropshadow, etc)
arguments
returns
null
#spin
Apply a perpetual spin effect to a node
arguments
returns
null
#zoom
Zoom in on the node
arguments
returns
null
#position
Position the node
arguments
returns
null
#disable
Optionally set node.options.isLocked = true
prior to making this disable
call to enable lock icons that the user can programmatically click to re-enable the node.
Disables the node from any interaction
arguments
None
returns
null
#enable
Enable the node for user interaction
arguments
None
returns
null
#colorPicker.set
Set the background color and opacity for the node
arguments
returns
null
#customShapes.set
Set the node to a custom svg path
arguments
returns
null
#editor.set
Set the node to a custom svg path
arguments
returns
null
#images.set
Set an image to the background of the node
arguments
returns
null
#links.set
Set a link on the node
arguments
returns
null
#links.unset
Remove a link from the node
arguments
returns
null
#resize.set
Resize a node
arguments
returns
null
#rotate.set
Rotate a node
arguments
returns
null