arrangeMenu#

Interfaces#

ArrangeMenuProps#

Defined in: arranger/src/arrangeMenu.ts:19

The Arrange menu of one level: its state and its two actions.

Properties#

chosen#

readonly chosen: ArrangeChoice

Defined in: arranger/src/arrangeMenu.ts:23

The arrangement stated now.

columns#

readonly columns: number

Defined in: arranger/src/arrangeMenu.ts:25

A matrix’s number of columns, shown while Matrix is chosen.

disabled#

readonly disabled: boolean

Defined in: arranger/src/arrangeMenu.ts:29

While disabled no choice is taken: a locked or read-only canvas.

level#

readonly level: "arranger" | "bundle"

Defined in: arranger/src/arrangeMenu.ts:21

Whose contents are arranged: the arranger’s blocks, or a bundle editor’s items.

onchoose#

readonly onchoose: (choice) => void

Defined in: arranger/src/arrangeMenu.ts:30

Parameters#
choice#

ArrangeChoice

Returns#

void

oncolumns#

readonly oncolumns: (columns) => void

Defined in: arranger/src/arrangeMenu.ts:31

Parameters#
columns#

number

Returns#

void

refused#

readonly refused: string | null

Defined in: arranger/src/arrangeMenu.ts:27

Why the items cannot stand side by side; null where they can.

Type Aliases#

ArrangeChoice#

ArrangeChoice = "free" | CanvasDirection

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

A choice of the menu: no arrangement, or a direction.

Functions#

arrangeMenuOf()#

arrangeMenuOf(view, editing, disabled, dispatch): ArrangeMenuProps | null

Defined in: arranger/src/arrangeMenu.ts:44

The Arrange menu of the level editing shows (null the arranger): the arranger’s blocks, or the items of the block a bundle editor edits, Horizontal refused with core’s reason where its items cannot stand side by side; null in a group or timeline editor, which arranges nothing. A choice hands dispatch one set (canvasArrangementCommand, itemArrangementCommand), none where the choice is the stated one: a block’s items keep the order they are shown in, and a matrix states its columns, columnsOf the blocks when first chosen.

Parameters#

view#

View

editing#

Editing | null

disabled#

boolean

dispatch#

(command) => void

Returns#

ArrangeMenuProps | null