CompiledNode
A compiled node of a document, with the fields the canvas reads from each element.
@internote/canvas-sdkOn this page
import { CompiledNode } from '@internote/canvas-sdk';Declared here by shape, so the render side of the package needs no import from the compiler. Attribute values arrive already refined to their wire shapes: a keyframed attribute is a KeyframeTrack, an interval is { start, end }, a colour is its canonical name.
#Fields
attributesThe
(…) attributes in source order, values already refined to their wire shapes.Array<{ identifier: string; value: unknown }>bodyThe
{…} body: child nodes, inline content or a value, per the node's body policy.unknowndetailThe
[…] detail, where the node has one, such as a scene's canvas content.unknownidThe
#id the author gave the node, as in curve#flight. Absent unless written.stringidentifierThe node's kind as written, such as
graph, curve or cue.draw.stringinstance_idThe durable id the compiler gives every node instance, which survives edits elsewhere in the source.
stringDeclared in packages/canvas-sdk/src/animation/EnvironmentAnimationRuntime.ts:39.