Search
ComponentNode
ComponentNode
A reusable design component definition.
Component nodes contain variants, gesture states, and variables. They can be inserted as instances via their module URL.
Methods & Properties
Identifier of the component. Supported by ComponentInstanceNode, ComponentNode.
Name of the component. Supported by ComponentInstanceNode, ComponentNode.
Remove this node from the canvas tree.
Select this node on the canvas.
Clone this node, creating a duplicate in the canvas tree.
Set the attributes of this node.
Get the bounding box of this node.
Pans and zooms the viewport to center the node.
Navigate to this node.
Get the parent of this node in the canvas tree.
Get the children of this node in the canvas tree.
Get descendants of this node that match the given type.
Get the descendants of this node that support attribute.
Get the descendants of this node that have attribute set to a non-null value.
Walk this node and its descendants recursively.
Get plugin data by key.
Set plugin data by key.
Get all plugin data keys stored on this node.