commands/add#

Variables#

ADDABLE#

const ADDABLE: { readonly [kind in TargetKind]: readonly AddKind[] }

Defined in: commands/add.ts:88

What add puts into each kind of target.

Functions#

applyAdd()#

applyAdd(view, command, changes): View | Problem

Defined in: commands/add.ts:762

Apply an add: put its value into the target its into resolves to, recording the change in changes; a kind the target does not take is wrong_target_kind.

Parameters#

view#

View

command#

AddCommand

changes#

ChangeSet

Returns#

View | Problem


withStatedPlacement()#

withStatedPlacement(view, command): Command

Defined in: commands/add.ts:190

command as the store journals it: an add of a block into the workspace with every placement member it leaves out stated from the workspace’s block defaults, so that replaying the journal reads no setting; any other command unchanged.

Parameters#

view#

View

command#

Command

Returns#

Command