TransientValue

One reading per environment: a cursor position, a scale bar, a focused mark.

@internote/canvas-sdkInterface
On this page
import { TransientValue } from '@internote/canvas-sdk';

#Fields

getRequired
Returns the current reading, or null.
T | null
setRequired
Publishes a reading, or withdraws it with null. Subscribers wake only on a real change.
void
subscribeRequired
Calls the listener after every real change to this environment's reading, and returns the unsubscribe.
() => void

Declared in packages/canvas-sdk/src/storage/transient.ts:55.

Last updated