CompiledNode

A compiled node of a document, with the fields the canvas reads from each element.

@internote/canvas-sdkInterface
On 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

attributes
The (…) attributes in source order, values already refined to their wire shapes.
Array<{ identifier: string; value: unknown }>
body
The {…} body: child nodes, inline content or a value, per the node's body policy.
unknown
detail
The […] detail, where the node has one, such as a scene's canvas content.
unknown
id
The #id the author gave the node, as in curve#flight. Absent unless written.
string
identifierRequired
The node's kind as written, such as graph, curve or cue.draw.
string
instance_id
The durable id the compiler gives every node instance, which survives edits elsewhere in the source.
string

Declared in packages/canvas-sdk/src/animation/EnvironmentAnimationRuntime.ts:39.

Last updated