C
MarkStore
testedStores formatting spans and resolves them against a character order. For each
(character, mark type) the covering span with the highest op id wins, so
concurrent formatting converges; a null/false value clears the mark.
Signature
ts
class MarkStoreMethods
addts
add(span: MarkSpan): boolean| Parameter | Type | Description |
|---|---|---|
span | MarkSpan | — |
Returns
booleanhasts
has(id: OpId): boolean| Parameter | Type | Description |
|---|---|---|
id | OpId | — |
Returns
booleanallts
all(): readonly MarkSpan[]Returns
readonly MarkSpan[]resolveActive marks for each character, given the character ids in document order.
Returns one type → value map per index.
ts
resolve(order: readonly OpId[]): Array<Map<string, MarkValue>>| Parameter | Type | Description |
|---|---|---|
order | readonly OpId[] | — |
Returns
Array<Map<string, MarkValue>>