RootNode
Kind: class Extends: SceneNode
Class representing the root node of the document. All Artboards are children of this node, as well as any pasteboard content that does not lie within an Artboard. Artboards must be grouped contiguously at the bottom of this node's z order. The root node has no visual appearance of its own.
addChild()
▸ addChild(node, index)
Adds a child node to this container node. You can only add leaf nodes this way; to create structured subtrees of content, use commands.
?numberKind: instance method of RootNode and other container nodes
addChildAfter()
▸ addChildAfter(node, relativeTo)
Inserts a child node after the given reference node.
Kind: instance method of RootNode and other container nodes
addChildBefore()
▸ addChildBefore(node, relativeTo)
Inserts a child node before the given reference node.
Kind: instance method of RootNode and other container nodes
removeAllChildren()
▸ removeAllChildren()
Removes all children from this node. Equivalent to calling removeFromParent() on each child in turn, but faster.
Kind: instance method of RootNode and other container nodes