MotionScript

@motion-script/core


@motion-script/core / GlobalLayer

Interface: GlobalLayer

Defined in: project/config.ts:84

A node drawn under (backgrounds) or over (overlays) every scene, plus the optional allow/deny lists that narrow which scenes it appears on.

Properties

exclude?

optional exclude?: SceneSelector

Defined in: project/config.ts:99

Scenes this layer is suppressed on. Applied after include.


include?

optional include?: SceneSelector

Defined in: project/config.ts:97

Scenes this layer appears on. Omitted → every scene.


node

node: Node<NodeProps> | (() => Node)

Defined in: project/config.ts:95

The layer's content, laid out against the full viewport exactly as if it had been stage.add(...)ed to a scene.

Prefer a factory (() => <Watermark/>): the project module is evaluated before the runtime registers theme, so a node constructed inline at module scope resolves theme tokens (fill="brand-500", variant="header") against an empty registry. The runtime calls a factory after registration, so tokens resolve.