HeadlessEnvironment
One mounted canvas environment in a headless host.
@internote/canvas-sdk/hostOn this page
import { HeadlessEnvironment } from '@internote/canvas-sdk/host';#Fields
ctxThe context its surface, footer and toolbar receive; the host keeps
step, focus and presenting current.EnvironmentContextenvironmentNameThe environment's name, such as
graph: also its node's identifier.stringidentityIts session key: internote, scene and environment id (the author's
#id when given).EnvironmentIdentitynodeThe compiled environment node.
CompiledNoderuntimeIts animation runtime, the same object as
ctx.animation.EnvironmentAnimationRuntime<EnvironmentContext>toolbarItemsReturns the environment's toolbar contribution for this render, validated, with its slots still unresolved.
ToolbarContribution[]Declared in packages/canvas-sdk/src/host/headless.ts:123.