MotionScript

@motion-script/core


@motion-script/core / NodeMetadata

Interface: NodeMetadata<T>

Defined in: nodes/base/node.ts:77

Type Parameters

T

T extends Node

Properties

ref?

optional ref?: RefTarget<T>

Defined in: nodes/base/node.ts:84

Handle written with this node at construction. Typed as RefTarget rather than Reference<T> so a ref declared as one of T's supertypes is accepted (createRef<ShapeNode>() on a <Rect>) — see the note there for why that direction is the sound one.