Skip to content

MarkNode

Defined in: core/src/features/tokens/tree/types.ts:101

readonly children: Signal<readonly TreeNode[]>;

Defined in: core/src/features/tokens/tree/types.ts:109


readonly descriptor: MarkupDescriptor;

Defined in: core/src/features/tokens/tree/types.ts:104


readonly id: number;

Defined in: core/src/features/tokens/tree/types.ts:103


readonly kind: "mark";

Defined in: core/src/features/tokens/tree/types.ts:102


readonly markup: Markup;

Defined in: core/src/features/tokens/tree/types.ts:106

The public view of the descriptor, which is not a public type.


readonly meta: Signal<string | undefined>;

Defined in: core/src/features/tokens/tree/types.ts:108


position: object;

Defined in: core/src/features/tokens/tree/types.ts:117

end: number;
start: number;

slotRange:
| {
end: number;
start: number;
}
| undefined;

Defined in: core/src/features/tokens/tree/types.ts:116

Live slot POSITIONS, written by adoption like position; slot() is the public read of the slot’s TEXT, which is why the two carry different names. Slot text is deliberately NOT stored: projection, snapshot and adoption equality all derive it from children, so a stored copy would be an unread mirror nothing resyncs.


readonly value: Signal<string>;

Defined in: core/src/features/tokens/tree/types.ts:107

duplicate(): boolean;

Defined in: core/src/features/tokens/tree/types.ts:126

boolean


insertAfter(text): boolean;

Defined in: core/src/features/tokens/tree/types.ts:127

Parameter Type
text string

boolean


mergeWith(next): boolean;

Defined in: core/src/features/tokens/tree/types.ts:128

Parameter Type
next TreeNode

boolean


moveTo(index): boolean;

Defined in: core/src/features/tokens/tree/types.ts:129

Parameter Type
index number

boolean


range(): object;

Defined in: core/src/features/tokens/tree/types.ts:121

See TextNode.range.

object

end: number;
start: number;

remove(): boolean;

Defined in: core/src/features/tokens/tree/types.ts:125

See NodeCommands.

boolean


slot(): string | undefined;

Defined in: core/src/features/tokens/tree/types.ts:119

The slot’s TEXT, joined from the live children. undefined for a slotless markup.

string | undefined


update(patch): boolean;

Defined in: core/src/features/tokens/tree/types.ts:123

Rides a transaction; false in read-only mode or off the tree.

Parameter Type
patch MarkPatch

boolean