pick.svelte#
Classes#
Picking#
Defined in: editor/src/pick.svelte.ts:16
Picking elements on the canvas for a panel, one pick at a time: the panel awaits it (start),
the canvas answers (take), Escape cancels.
Constructors#
Constructor#
new Picking():
Picking
Returns#
Properties#
active#
active:
boolean
Defined in: editor/src/pick.svelte.ts:18
Whether a pick is awaited: the canvas then picks instead of selecting.
Methods#
cancel()#
cancel():
void
Defined in: editor/src/pick.svelte.ts:49
End the awaited pick, if any, with null.
Returns#
void
start()#
start():
Promise<Address|null>
Defined in: editor/src/pick.svelte.ts:23
Await the address the canvas picks, null when cancelled; a pick awaited before is cancelled.
Returns#
Promise<Address | null>
take()#
take(
address):void
Defined in: editor/src/pick.svelte.ts:44
The canvas’s answer: the picked timeline or region.
Parameters#
address#
Returns#
void
Variables#
hasPicking#
hasPicking: () =>
boolean
Defined in: editor/src/pick.svelte.ts:67
Returns#
boolean
pickingOf#
pickingOf: () =>
Picking
Defined in: editor/src/pick.svelte.ts:67
Returns#
providePicking#
providePicking: (
context) =>Picking
Defined in: editor/src/pick.svelte.ts:67