Skip to main content

Interface: CanvasNodeEvent

A pointer or keyboard event on a canvas node.

Properties​

clientX​

clientX: number;

clientY​

clientY: number;

ctrlKey​

ctrlKey: boolean;

id​

id: string;

"schema.table" | "note:<name>" | "group:<name>"


kind​

kind: CanvasNodeKind;

metaKey​

metaKey: boolean;

shiftKey​

shiftKey: boolean;

Modifier state, so the app can ignore Shift/Cmd clicks used for selection.


source?​

source?: "pointer" | "keyboard";

'keyboard' when Enter on a focused node produced the click (the editor then moves focus to the code). Absent for pointer clicks.


span​

span: SourceSpan | null;

Declaration in the source (model span), for reveal.