nodeActions#
Interfaces#
NodeActions#
Defined in: arranger/src/nodeActions.ts:21
The canvas’s side of an edit made inside a block node or with a resize handle.
Properties#
gestures#
readonlygestures:GestureSlot
Defined in: arranger/src/nodeActions.ts:82
The gesture in progress on this canvas, which Escape ends.
metrics#
readonlymetrics:FontMetrics
Defined in: arranger/src/nodeActions.ts:39
The font metrics the canvas lays blocks out with.
Methods#
coordinates()#
coordinates():
boolean
Defined in: arranger/src/nodeActions.ts:67
Whether “Show coordinates” is on: every part of a named timestamp (its wedge, its labels, its line, the canvas’s wedge for one that draws nothing) then lets the pointer through, so the coordinate gesture gets it.
Returns#
boolean
dispatch()#
dispatch(
command):void
Defined in: arranger/src/nodeActions.ts:23
Runs a command; the canvas reports a refusal to its host (onrefuse).
Parameters#
command#
Returns#
void
edit()#
edit(
target,commands):void
Defined in: arranger/src/nodeActions.ts:28
Makes commands in the editor of target as one closed session, one
undo step (core’s Store.edit); the canvas reports a refusal to its host.
Parameters#
target#
commands#
readonly Command[]
Returns#
void
matches()#
matches():
boolean
Defined in: arranger/src/nodeActions.ts:73
Whether “Show matches” is on: every part of a named MatchStamp (an alignment anchor’s line and label) and of a match timestamp then lets the pointer through, so the canvas reads the potential MatchStamps there.
Returns#
boolean
matchPaint()#
matchPaint(
block):MatchPaint
Defined in: arranger/src/nodeActions.ts:80
How block block’s named MatchStamps are painted over their style while
a MatchClaim table is loaded for it (namedPaint): each anchor’s line by
the belief in the MatchClaims stating it, one out of date all red;
nothing without a table.
Parameters#
block#
string
Returns#
minter()#
minter():
IdMinter
Defined in: arranger/src/nodeActions.ts:48
A copy of the store’s minter at its count (Store.minter): a preview
minting with it shows the IDs the release of its command stores.
Returns#
pane()#
pane():
PaneSource|undefined
Defined in: arranger/src/nodeActions.ts:41
The pane the canvas’s drawings are fitted to (Pane.view); undefined before it is measured.
Returns#
PaneSource | undefined
preview()#
preview(
block,preview):void
Defined in: arranger/src/nodeActions.ts:37
Draws the block with the preview, or as it is stored when the preview is null.
Parameters#
block#
string
preview#
NodePreview | null
Returns#
void
previewing()#
previewing(
block):boolean
Defined in: arranger/src/nodeActions.ts:60
Whether block block is drawn at a preview: a gesture’s or a transient
command’s. Its drawing then follows the pointer or the control, so no
change of it moves by itself (decision record 0034).
Parameters#
block#
string
Returns#
boolean
reducedMotion()#
reducedMotion():
boolean
Defined in: arranger/src/nodeActions.ts:54
Whether the reader prefers reduced motion, under which nothing in a drawing slides.
Returns#
boolean
refuse()#
refuse(
message):void
Defined in: arranger/src/nodeActions.ts:33
Reports to the canvas’s host (onrefuse) why a gesture stored nothing,
where no command was refused: a drop the arrangement’s rules refuse.
Parameters#
message#
string
Returns#
void
rules()#
rules():
LevelRules
Defined in: arranger/src/nodeActions.ts:52
What the canvas allows now, the lock and the read-only mode applied (rulesOf).
Returns#
select()#
select(
address):void
Defined in: arranger/src/nodeActions.ts:35
Selects one address, replacing the selection: the press that starts a gesture.
Parameters#
address#
Returns#
void
view()#
view():
View
Defined in: arranger/src/nodeActions.ts:43
The workspace view the canvas currently shows as stored.
Returns#
zoom()#
zoom():
number
Defined in: arranger/src/nodeActions.ts:50
The canvas zoom: screen pixels per canvas unit.
Returns#
number
NodePreview#
Defined in: arranger/src/nodeActions.ts:16
What a block is drawn with while a gesture is under way, before anything
is stored: the view the gesture’s command gives (core’s preview), whose
block of the same id is drawn in place of the stored one.
Properties#
view#
readonlyview:View
Defined in: arranger/src/nodeActions.ts:17
Variables#
getNodeActions#
getNodeActions: () =>
NodeActions
Defined in: arranger/src/nodeActions.ts:89
Returns#
setNodeActions#
setNodeActions: (
context) =>NodeActions
Defined in: arranger/src/nodeActions.ts:89