Doc > API > CoreGraphNode

Doc > API > CoreGraphNode

This is the base class for nodes and params, which are part of the same graph, and are connected to dependencies.

Methods

.name(): string

returns the name

.scene(): PolyScene

returns the scene

.graphNodeId(): CoreGraphNodeId

returns the id, which is unique for the scene

.setDirty(trigger?: CoreGraphNode | null)

makes the graphNode dirty, which in turns makes its dependencies dirty

.setSuccessorsDirty(trigger?: CoreGraphNode)

makes dependencies dirty

.removeDirtyState()

removes the dirty state

.addPostDirtyHook(name: string, callback: PostDirtyHook)

adds a callback that gets run when the graphNode is dirty

source