Skip to main content

Interface: DeltaPosition

Defined in: packages/core/src/domain/value-objects/selector.ts:46

Declares where a new node is inserted in an added delta entry.

At most one of after, before, first, last may be set. If only parent is specified, the new node is appended as the last child of the matched parent. If position is omitted entirely, the node is appended at document root level.

Properties

after?

readonly optional after?: Selector

Defined in: packages/core/src/domain/value-objects/selector.ts:50

Inserts immediately after this sibling; falls back to append on no match.


before?

readonly optional before?: Selector

Defined in: packages/core/src/domain/value-objects/selector.ts:52

Inserts immediately before this sibling; falls back to append on no match.


first?

readonly optional first?: boolean

Defined in: packages/core/src/domain/value-objects/selector.ts:54

Inserts as the first child of the parent scope.


last?

readonly optional last?: boolean

Defined in: packages/core/src/domain/value-objects/selector.ts:56

Inserts as the last child of the parent scope (default when no hint given).


parent?

readonly optional parent?: Selector

Defined in: packages/core/src/domain/value-objects/selector.ts:48

Scopes the insertion to the children of the matched node.