@graphty/graphty-element / catalog / CanvasKeyDescriptor
Interface: CanvasKeyDescriptor ​
Defined in: graphty-element/src/catalog/canvasKeys.ts:28
One thing a key does on the focused canvas.
Properties ​
action ​
readonlyaction:CanvasKeyAction
Defined in: graphty-element/src/catalog/canvasKeys.ts:30
What it does.
keys ​
readonlykeys: readonlystring[]
Defined in: graphty-element/src/catalog/canvasKeys.ts:36
The keys, as KeyboardEvent.key spells them, letters lower case.
plainName ​
readonlyplainName:string
Defined in: graphty-element/src/catalog/canvasKeys.ts:32
The default name to show for it, such as "Zoom in". An application may replace it by action.
view ​
readonlyview:CanvasKeyView
Defined in: graphty-element/src/catalog/canvasKeys.ts:34
Which camera it works in.