node#
Interfaces#
TransientCommand#
Defined in: arranger/src/node.ts:57
A command the canvas shows applied to its block and never stores, while its host holds it: a control’s value before it is committed (the wedge rotation’s slider while dragged). Only that block’s node is drawn again; a command the reducer refuses shows the block as stored.
Properties#
block#
readonlyblock:string
Defined in: arranger/src/node.ts:58
command#
readonlycommand:Command
Defined in: arranger/src/node.ts:59
Type Aliases#
BlockNode#
BlockNode =
Node<BlockNodeData,"block">
Defined in: arranger/src/node.ts:39
A block as a Svelte Flow node, of type block.
BlockNodeData#
BlockNodeData =
object
Defined in: arranger/src/node.ts:14
What a block node renders.
Properties#
affectedElements#
readonlyaffectedElements:ReadonlySet<string>
Defined in: arranger/src/node.ts:24
The keys of the addresses that removing the selected elements would also remove, highlighted with them.
block#
readonlyblock:Block
Defined in: arranger/src/node.ts:15
descriptors#
readonlydescriptors: readonlyDescriptor[]
Defined in: arranger/src/node.ts:17
drawing#
readonlydrawing:Drawing
Defined in: arranger/src/node.ts:16
editing#
readonlyediting:Editing|null
Defined in: arranger/src/node.ts:26
The innermost open editor, the same on every node; null on the arranger.
inside#
readonlyinside:ReadonlySet<string>
Defined in: arranger/src/node.ts:35
The keys of the drawn element addresses that lie inside the edited
element, the only ones that are hovered and selected: every drawn
address on the arranger and in this block’s bundle editor, those the
edited group or timeline contains in its editor, none in another block
while an editor is open. A named timestamp the drawing draws nothing of
counts as drawn where the canvas shows it (affordancesOf).
selectedElements#
readonlyselectedElements:ReadonlyMap<string,ElementAddress>
Defined in: arranger/src/node.ts:19
The block’s selected element addresses, by their keys (addressKey).
LivePlacement#
LivePlacement =
Pick<Block,"id"|"x"|"y"|"scale"|"length"|"spacing"|"margin"|"width"|"height"> &object
Defined in: arranger/src/node.ts:46
A block’s placement as the canvas shows it during a gesture, before anything is stored, and the drawing its node shows then, its items and cards where the gesture puts them.
Type Declaration#
drawing#
readonlydrawing:Drawing