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#

readonly block: string

Defined in: arranger/src/node.ts:58

command#

readonly command: 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#

readonly affectedElements: 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#

readonly block: Block

Defined in: arranger/src/node.ts:15

descriptors#

readonly descriptors: readonly Descriptor[]

Defined in: arranger/src/node.ts:17

drawing#

readonly drawing: Drawing

Defined in: arranger/src/node.ts:16

editing#

readonly editing: Editing | null

Defined in: arranger/src/node.ts:26

The innermost open editor, the same on every node; null on the arranger.

inside#

readonly inside: 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#

readonly selectedElements: 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#

readonly drawing: Drawing