labelEnvironment
A toy label environment that exercises the whole environment contract through public SDK surfaces only.
@internote/canvas-sdk/testingOn this page
import { labelEnvironment } from '@internote/canvas-sdk/testing';It is the reference for how an environment is authored end to end:
- vocabulary validated by the compiler (
caption, with cue anchors); !cue.tokeyframes onemphasis(number) andwindow(interval);- a verb handler and step hook driving session state;
- a declarative toolbar contribution;
- session-tier storage that survives scroll-away and
continue:.
Deliberately trivial on the render side (its surface draws nothing) — the point is the contract, not the pixels. Exported from @internote/canvas-sdk/testing; not registered anywhere by default.
#Signature
EnvironmentDefinitionDeclared in packages/canvas-sdk/src/testing/label-environment.ts:47.