Instructs the Toolkit to add a new port with the given data to the vertex this component represents.
Parameters
type: string
data: ObjectData
Returns void
cloneNode
cloneNode(options?): void
Clones this node
Parameters
Optionaloptions: VertexCloneOptions
Returns void
cloneVertex
cloneVertex(options?): void
Clones this vertex, optionally setting to a given position, or offsetting from the original, and optionally magnetizing
the new vertex's position, and flashing it to show the user where it is.
Parameters
Optionaloptions: VertexCloneOptions
Returns void
getNode
getNode(): Node
Gets the node that this component represents.
Returns Node
getVertex
getVertex(): Node
Gets the vertex that this component represents.
Returns Node
removeNode
removeNode(): void
Shortcut method to remove the node (and therefore this whole component)
Returns void
removeVertex
removeVertex(): void
Removes the vertex this component represents from the data model, which will cause this component to be cleaned up.
Returns void
updateNode
updateNode(data): void
Shortcut method to update the current data backing this node, for convenience.
Parameters
data: ObjectData
Returns void
updateVertex
updateVertex(data): void
Shortcut method to update the current data backing this vertex, for convenience.
Parameters
data: ObjectData
Returns void
Properties
obj
obj:ObjectData
Data object for the vertex
ReadonlyobjSignal
objSignal:WritableSignal<ObjectData> = ...
This signal represents the underlying data for the vertex this component represents.
The base class for components that will be rendered as Nodes . Your node components should extend this class.