API reference
@searsuite/sear-domain-ot
Operational-transformation primitives for matrices, rectangles, and rich documents.
66 exportsderived from source
- enumMatrixOTActionNamesource ↗
-
enum MatrixOTActionNameCompact command keys persisted in matrix OT payloads.
enum memberColDelete ColDelete: "cd"enum memberColInsert ColInsert: "ci"enum memberColMove ColMove: "cm"enum memberResizeCol ResizeCol: "rc"enum memberResizeRow ResizeRow: "rr"enum memberRowDelete RowDelete: "rd"enum memberRowInsert RowInsert: "ri"enum memberRowMove RowMove: "rm"enum memberUpdateCell UpdateCell: "uc" - enumOTTransformPrioritysource ↗
-
enum OTTransformPriorityTie-break direction used when two concurrent operations target the same position.
- enumRectOTActionNamesource ↗
-
enum RectOTActionNameCompact command keys persisted in rectangle OT payloads.
enum memberUpdateRect UpdateRect: "ur" - enumRichDocOTActionNamesource ↗
-
enum RichDocOTActionNameCompact operation keys persisted in rich-document OT payloads.
enum memberNodeDelete NodeDelete: "nd"enum memberNodeInsert NodeInsert: "ni"enum memberNodeMove NodeMove: "nm"enum memberStringDelete StringDelete: "sd"enum memberStringInsert StringInsert: "si"enum memberUpdateAttrs UpdateAttrs: "ua" - classBaseOTsource ↗
-
class BaseOTBase class for Operational Transformation implementations.
Concrete domains provide the actual apply, append, compose, and transform semantics while sharing validation and creation helpers here.
constructorconstructor BaseOT(name: string): BaseOTConstructs an OT implementation descriptor.
name: stringStable implementation name.
propertyname readonly name: stringHuman-readable OT implementation name for diagnostics and debugging.
methodappendstatic append(destination: OTOperation[], current: OTOperation): voidAppends one operation into a composed destination list.
ThrowsSearError until implemented by a concrete OT class.
destination: OTOperation[]current: OTOperation
methodapplystatic apply(snapshot: unknown, operations: OTOperation[]): voidApplies operations to a domain snapshot.
ThrowsSearError until implemented by a concrete OT class.
snapshot: unknownoperations: OTOperation[]
methodcheckValidOpstatic checkValidOp(operations: OTOperation[]): voidValidates the structural contract common to all operations.
ThrowsSearError when an operation is missing its path.
operations: OTOperation[]Operations that must each carry an array path.
methodcomposestatic compose(operation1: OTOperation[], operation2: OTOperation[]): OTOperation[]Composes two sequential operation lists into one equivalent list.
ThrowsSearError until implemented by a concrete OT class.
operation1: OTOperation[]operation2: OTOperation[]
methodcreatestatic create(data?: OTOperation[]): OTOperation[]Creates an operation list snapshot.
ReturnsA mutable operation list detached from the caller's array.
data: OTOperation[]Optional operations to clone into the new list.
methodtransformstatic transform(operation: OTOperation[], otherOperation: OTOperation[], type: OTTransformPriority): OTOperation[]Transforms an operation list against concurrent operations.
ThrowsSearError until implemented by a concrete OT class.
operation: OTOperation[]otherOperation: OTOperation[]type: OTTransformPriority
- classMatrixOTsource ↗
-
class MatrixOT extends BaseOTOperational Transformation implementation for CSRMatrix-backed sheet state.
MatrixOT owns cell updates, row/column structure edits, dimension resize operations, and the transform rules that keep concurrent matrix changes convergent.
constructorconstructor MatrixOT(): MatrixOTCreates a MatrixOT descriptor for diagnostics and shared OT registries.
methodappendstatic append<U>(destination: MatrixOTOperation<U>[], current: MatrixOTOperation<U>): voidAppends one component into a composed matrix operation list.
destination: MatrixOTOperation<U>[]Composition destination mutated in place.
current: MatrixOTOperation<U>Operation to append.
methodapplystatic apply<U, S>(snapshot: S, operations: MatrixOTOperation<U>[]): SApplies operations to a CSR matrix snapshot.
ReturnsThe same snapshot instance after mutation.
snapshot: SMutable CSR-backed state.
operations: MatrixOTOperation<U>[]Matrix operations to apply.
methodcommonLengthForOpsstatic commonLengthForOps<U>(operation1: MatrixOTOperation<U>, operation2: MatrixOTOperation<U>): numberComputes the common parent depth used by component transformation.
ReturnsThe depth of the shared parent segment.
operation1: MatrixOTOperation<U>First operation whose parent path is compared.
operation2: MatrixOTOperation<U>Second operation whose parent path is compared.
methodcomposestatic compose<U>(operation1: MatrixOTOperation<U>[], operation2: MatrixOTOperation<U>[]): MatrixOTOperation<U>[]Composes two sequential matrix operation lists.
ReturnsEquivalent composed operation list.
operation1: MatrixOTOperation<U>[]Earlier operation list.
operation2: MatrixOTOperation<U>[]Later operation list.
methodinvertstatic invert<U>(operations: MatrixOTOperation<U>[]): MatrixOTOperation<U>[]Inverts an operation list in rollback order.
ReturnsOperations that undo the input when applied in order.
operations: MatrixOTOperation<U>[]Forward operations to invert.
methodinvertComponentstatic invertComponent<U>(currentOperation: MatrixOTOperation<U>): MatrixOTOperation<U>Builds the inverse of one matrix component.
ReturnsA component that restores the previous matrix state.
currentOperation: MatrixOTOperation<U>Component to invert.
methodtransformstatic transform<U>(operation: MatrixOTOperation<U>[], otherOperation: MatrixOTOperation<U>[], type: OTTransformPriority): MatrixOTOperation<U>[]Transforms concurrent Matrix OT operations into a convergent pair.
operation: MatrixOTOperation<U>[]otherOperation: MatrixOTOperation<U>[]type: OTTransformPriority
methodtransformComponentstatic transformComponent<U>(destination: MatrixOTOperation<U>[], currentOperation: MatrixOTOperation<U>, otherOperation: MatrixOTOperation<U>, type: OTTransformPriority): MatrixOTOperation<U>[]Transforms one matrix component over one concurrent component.
ReturnsThe destination list after appending any transformed component.
destination: MatrixOTOperation<U>[]Output list receiving the transformed component or no-op.
currentOperation: MatrixOTOperation<U>Operation being rebased.
otherOperation: MatrixOTOperation<U>Concurrent operation already applied on the target branch.
type: OTTransformPriorityTie-break side for equal-position edits.
methodtransformComponentXstatic transformComponentX<U>(left: MatrixOTOperation<U>, right: MatrixOTOperation<U>, destLeft: MatrixOTOperation<U>[], destRight: MatrixOTOperation<U>[]): voidTransforms one Matrix OT component against another concurrent component.
left: MatrixOTOperation<U>right: MatrixOTOperation<U>destLeft: MatrixOTOperation<U>[]destRight: MatrixOTOperation<U>[]
methodtransformXstatic transformX<U>(leftOperation: MatrixOTOperation<U>[], rightOperation: MatrixOTOperation<U>[]): MatrixOTOperation<U>[][]Transforms one Matrix OT operation against a concurrent operation.
leftOperation: MatrixOTOperation<U>[]rightOperation: MatrixOTOperation<U>[]
- classRectOTsource ↗
-
class RectOT extends BaseOTOperational Transformation implementation for sheet rectangle state.
RectOT applies direct rectangle updates and matrix structure operations that shift row/column coordinates inside the rectangle.
constructorconstructor RectOT(): RectOTCreates a RectOT descriptor for diagnostics and shared OT registries.
methodapplystatic apply<U>(snapshot: Rect, operations: RectOTOperation[]): RectApplies rectangle operations to a mutable Rect snapshot.
ReturnsThe same rectangle after mutation.
snapshot: RectRectangle to mutate.
operations: RectOTOperation[]Operations to apply in order.
methodinvertstatic invert(operations: RectOTOperation[], beforeRect: Rect): RectOTOperation[]Inverts a rectangle operation list using the rectangle state before each component.
ReturnsOperations that undo the input when applied in order.
operations: RectOTOperation[]Forward operations to invert.
beforeRect: RectRectangle state before any forward operations are applied.
methodinvertComponentstatic invertComponent(currentOperation: RectOTOperation, beforeRect?: Rect): RectOTOperationBuilds the inverse of one rectangle operation.
ReturnsAn operation that restores the previous rectangle state.
currentOperation: RectOTOperationOperation to invert.
beforeRect: RectRectangle state before the forward update operation.
- classRichDocOTsource ↗
-
class RichDocOT extends BaseOTOperational Transformation implementation for the JSON rich-document model.
RichDocOT applies node, text, and attribute operations and rebases concurrent edits so document trees converge across collaboration clients.
constructorconstructor RichDocOT(): RichDocOTCreates a RichDocOT descriptor for diagnostics and shared OT registries.
methodappendstatic append(destination: RichDocOTOperation[], current: RichDocOTOperation): voidAppends one rich-document operation into a composed destination list.
destination: RichDocOTOperation[]Composition destination mutated in place.
current: RichDocOTOperationOperation to append.
methodapplystatic apply(snapshot: NodeSchema, operations: RichDocOTOperation[]): NodeSchemaApplies rich-document operations to a mutable node snapshot.
ReturnsThe same snapshot instance after mutation.
snapshot: NodeSchemaRoot node to mutate.
operations: RichDocOTOperation[]Operations to apply in order.
methodcomposestatic compose(operation1: RichDocOTOperation[], operation2: RichDocOTOperation[]): RichDocOTOperation[]Composes two sequential rich-document operation lists.
ReturnsEquivalent composed operation list.
operation1: RichDocOTOperation[]Earlier operation list.
operation2: RichDocOTOperation[]Later operation list.
methodcreatestatic create(data?: RichDocOTOperation[]): RichDocOTOperation[]Creates a detached rich-document operation list.
ReturnsA mutable operation list owned by the caller.
data: RichDocOTOperation[]Optional operation list to clone.
methodinvertstatic invert(operations: RichDocOTOperation[]): RichDocOTOperation[]Creates the inverse operation list for a committed rich-document change.
operations: RichDocOTOperation[]
methodtransformstatic transform(operation: RichDocOTOperation[], otherOperation: RichDocOTOperation[], type: OTTransformPriority): RichDocOTOperation[]Transforms one rich-document operation list against concurrent operations.
ReturnsThe operation list rebased over otherOperation.
operation: RichDocOTOperation[]Operation list being rebased.
otherOperation: RichDocOTOperation[]Concurrent operation list already applied on the target branch.
type: OTTransformPriorityTie-break side for equal-position edits.
- classTransactionOTErrorsource ↗
-
class TransactionOTError extends SearErrorPublic error for invalid or unavailable transaction OT behavior.
constructorconstructor TransactionOTError(code: TransactionOTErrorCode, message: string, details?: SearErrorDetails): TransactionOTErrorcode: TransactionOTErrorCodemessage: stringdetails: SearErrorDetails
propertycode readonly code: TransactionOTErrorCodeStable machine-readable identifier for this error category.
Inherited members 9
Inherited from SearError.
- classTransactionOTRegistrysource ↗
-
class TransactionOTRegistryLocal registry of versioned OT families and explicit pair transformations.
constructorconstructor TransactionOTRegistry(): TransactionOTRegistrymethoddecode decode(id: string, version: number, payload: unknown): OTOperation[]Decodes a wire payload through its registered family definition.
id: stringversion: numberpayload: unknown
methoddestroy destroy(): voidPermanently clears the registry.
methodencode encode<OperationType>(definition: TransactionOTDefinition<OperationType>, operations: readonly OperationType[]): OTEncodedValueEncodes and validates one operation family payload.
definition: TransactionOTDefinition<OperationType>operations: readonly OperationType[]
methodinvert invert<OperationType>(definition: TransactionOTDefinition<OperationType>, operations: readonly OperationType[]): OperationType[]Inverts operations through their family definition.
definition: TransactionOTDefinition<OperationType>operations: readonly OperationType[]
methodregisterIndependent registerIndependent(left: TransactionOTDefinition, right: TransactionOTDefinition): (): voidRegisters two families as independent, so pair transformation is explicit identity.
left: TransactionOTDefinitionright: TransactionOTDefinition
methodregisterRelation registerRelation<Left, Right>(relation: OTTransformRelation<Left, Right>): (): voidRegisters one explicit relation. Reverse lookup uses the same implementation with swapped branches.
relation: OTTransformRelation<Left, Right>
methodregisterType registerType<OperationType>(definition: TransactionOTDefinition<OperationType>): (): voidRegisters one operation family and returns an idempotent disposer.
definition: TransactionOTDefinition<OperationType>
methodrequireType requireType(id: string, version: number): TransactionOTDefinitionResolves a registered operation family.
id: stringversion: number
methodtransformPair transformPair<Left, Right>(leftDefinition: TransactionOTDefinition<Left>, leftOperations: readonly Left[], rightDefinition: TransactionOTDefinition<Right>, rightOperations: readonly Right[], priority: OTTransformPriority): OTTransformPair<Left, Right>Rebases two concurrent operation lists through their registered relation.
leftDefinition: TransactionOTDefinition<Left>leftOperations: readonly Left[]rightDefinition: TransactionOTDefinition<Right>rightOperations: readonly Right[]priority: OTTransformPriority
- interfaceDeleteColOTOperationsource ↗
-
interface DeleteColOTOperation<T> extends OTOperationDeletes one column and carries the deleted column payload for inversion.
- interfaceDeleteNodeOTOperationsource ↗
-
interface DeleteNodeOTOperation extends OTOperationDeletes a node and carries the removed payload for inversion.
- interfaceDeleteRowOTOperationsource ↗
-
interface DeleteRowOTOperation<T> extends OTOperationDeletes one row and carries the deleted row payload for inversion.
- interfaceDeleteStringOTOperationsource ↗
-
interface DeleteStringOTOperation extends OTOperationDeletes text from a leaf text node and carries the removed string.
- interfaceInsertColOTOperationsource ↗
-
interface InsertColOTOperation<T> extends OTOperationInserts one column at the target column index.
- interfaceInsertNodeOTOperationsource ↗
-
interface InsertNodeOTOperation extends OTOperationInserts a node into a parent content array.
- interfaceInsertRowOTOperationsource ↗
-
interface InsertRowOTOperation<T> extends OTOperationInserts one row at the target row index.
- interfaceInsertStringOTOperationsource ↗
-
interface InsertStringOTOperation extends OTOperationInserts text into a leaf text node.
- interfaceMoveColOTOperationsource ↗
-
interface MoveColOTOperation<T> extends OTOperationExchanges the column at the path index with the column index encoded by cm.
- interfaceMoveNodeOTOperationsource ↗
-
interface MoveNodeOTOperation extends OTOperationMoves a node within its parent content array.
- interfaceMoveRowOTOperationsource ↗
-
interface MoveRowOTOperation<T> extends OTOperationExchanges the row at the path index with the row index encoded by rm.
- interfaceOTOperationsource ↗
-
interface OTOperationMinimal operation contract shared by every domain OT implementation.
propertyp p: OTOperationPathPath locating the operation target inside the snapshot.
- interfaceOTTransformPairsource ↗
-
interface OTTransformPair<Left, Right>Pair transformation result preserving both concurrent branches.
- interfaceOTTransformRelationsource ↗
-
interface OTTransformRelation<Left, Right>Domain-specific transformation relation between two operation families.
propertyleft readonly left: TransactionOTDefinition<Left>propertyright readonly right: TransactionOTDefinition<Right>methodtransformPair transformPair(left: readonly Left[], right: readonly Right[], priority: OTTransformPriority): OTTransformPair<Left, Right>left: readonly Left[]right: readonly Right[]priority: OTTransformPriority
- interfaceReplaceNodeOTOperationsource ↗
-
interface ReplaceNodeOTOperation extends OTOperationReplaces one node in a content array while retaining both sides for OT inversion.
- interfaceResizeColOTOperationsource ↗
-
interface ResizeColOTOperation extends OTOperationUpdates one column dimension in a dimension matrix.
- interfaceResizeRowOTOperationsource ↗
-
interface ResizeRowOTOperation extends OTOperationUpdates one row dimension in a dimension matrix.
- interfaceTransactionOTDefinitionsource ↗
-
interface TransactionOTDefinition<OperationType>Stable, versioned operation family shared by history and collaboration.
propertyid readonly id: stringpropertyversion readonly version: numbermethoddecode decode(payload: unknown): OperationType[]payload: unknown
methodencode encode(operations: readonly OperationType[]): OTEncodedValueoperations: readonly OperationType[]
methodinvert invert(operations: readonly OperationType[]): OperationType[]operations: readonly OperationType[]
methodisOperation isOperation(operation: OTOperation): operationoperation: OTOperation
- interfaceUpdateAttrsOTOperationsource ↗
-
interface UpdateAttrsOTOperation extends OTOperationUpdates one node attribute and carries both previous and next values.
- interfaceUpdateCellOTOperationsource ↗
-
interface UpdateCellOTOperation<T> extends OTOperationUpdates a single cell and carries both forward and previous values.
- interfaceUpdateRectOTOperationsource ↗
-
interface UpdateRectOTOperation extends OTOperationReplaces a rectangle's two corner points.
- typeMatrixCellUpdateIntentsource ↗
-
type MatrixCellUpdateIntent = typeof MatrixCellUpdateIntent[keyof typeof MatrixCellUpdateIntent]Distinguishes ordinary replacement from relocation that preserves independently owned cell state.
- typeMatrixOTOperationsource ↗
-
type MatrixOTOperation = InsertRowOTOperation<T> | DeleteRowOTOperation<T> | UpdateCellOTOperation<T> | MoveRowOTOperation<T> | InsertColOTOperation<T> | DeleteColOTOperation<T> | MoveColOTOperation<T> | ResizeRowOTOperation | ResizeColOTOperationEvery operation understood by MatrixOT and matrix-backed sheet state.
- typeMatrixStructureOTOperationsource ↗
-
type MatrixStructureOTOperation = InsertRowOTOperation<T> | DeleteRowOTOperation<T> | MoveRowOTOperation<T> | InsertColOTOperation<T> | DeleteColOTOperation<T> | MoveColOTOperation<T>Structural matrix operations that shift row or column coordinates.
- typeOperationsource ↗
-
type Operation = MatrixOTOperation<unknown> | UpdateRectOTOperation | RichDocOTOperationBuilt-in operation union. Third-party callers use OTOperation as their open base contract.
- typeOTEncodedValuesource ↗
-
type OTEncodedValue = null | boolean | number | string | readonly OTEncodedValue[] | { }JSON-compatible values accepted by collaboration transports.
- typeRichDocOTOperationsource ↗
-
type RichDocOTOperation = InsertNodeOTOperation | DeleteNodeOTOperation | ReplaceNodeOTOperation | MoveNodeOTOperation | InsertStringOTOperation | DeleteStringOTOperation | UpdateAttrsOTOperationEvery operation understood by RichDocOT.
- typeRichDocOTOperationPathsource ↗
-
type RichDocOTOperationPath = OTOperationPathPath into a rich-document tree; numeric segments address content arrays and string segments address attrs.
- typeTransactionOTErrorCodesource ↗
-
type TransactionOTErrorCode = typeof TransactionOTErrorCode[keyof typeof TransactionOTErrorCode]Stable errors raised by transaction OT definitions and registries.
- variableMatrixCellUpdateIntentsource ↗
-
MatrixCellUpdateIntent: { Relocation: "relocation" }Distinguishes ordinary replacement from relocation that preserves independently owned cell state.
- variableMatrixTransactionOTsource ↗
-
MatrixTransactionOT: TransactionOTDefinition<MatrixOTOperation<unknown>>Built-in MatrixOT family shared by matrix-backed transaction owners.
- variableMatrixTransactionOTRelationsource ↗
-
MatrixTransactionOTRelation: OTTransformRelation<MatrixOTOperation<unknown>, MatrixOTOperation<unknown>>Matrix-to-matrix pair transformation used by every matrix-backed owner.
- variableRichDocTransactionOTsource ↗
-
RichDocTransactionOT: TransactionOTDefinition<RichDocOTOperation>Built-in rich-document operation family.
- variableRichDocTransactionOTRelationsource ↗
-
RichDocTransactionOTRelation: OTTransformRelation<RichDocOTOperation, RichDocOTOperation>Rich-document pair transformation.
- variableTransactionOTErrorCodesource ↗
-
TransactionOTErrorCode: { InvalidDefinition: "SEAR_TRANSACTION_OT_INVALID_DEFINITION"; InvalidPayload: "SEAR_TRANSACTION_OT_INVALID_PAYLOAD"; InvertUnsupported: "SEAR_TRANSACTION_OT_INVERT_UNSUPPORTED"; RegistryDestroyed: "SEAR_TRANSACTION_OT_REGISTRY_DESTROYED"; RelationConflict: "SEAR_TRANSACTION_OT_RELATION_CONFLICT"; RelationNotRegistered: "SEAR_TRANSACTION_OT_RELATION_NOT_REGISTERED"; TypeConflict: "SEAR_TRANSACTION_OT_TYPE_CONFLICT"; TypeNotRegistered: "SEAR_TRANSACTION_OT_TYPE_NOT_REGISTERED" }Stable errors raised by transaction OT definitions and registries.
- functioncreateBuiltinTransactionOTRegistrysource ↗
-
createBuiltinTransactionOTRegistry(): TransactionOTRegistryCreates an isolated registry containing all built-in OT definitions and relations.
- functioncreateDeleteColOTOperationsource ↗
-
createDeleteColOTOperation<T>(path: readonly number[], values: readonly T | null[]): DeleteColOTOperation<T>Creates a semantic column-delete operation carrying the deleted values required for inversion.
path: readonly number[]values: readonly T | null[]
- functioncreateDeleteRowOTOperationsource ↗
-
createDeleteRowOTOperation<T>(path: readonly number[], values: readonly T | null[]): DeleteRowOTOperation<T>Creates a semantic row-delete operation carrying the deleted values required for inversion.
path: readonly number[]values: readonly T | null[]
- functioncreateInsertColOTOperationsource ↗
-
createInsertColOTOperation<T>(path: readonly number[], values: readonly T | null[]): InsertColOTOperation<T>Creates a semantic column-insert operation without changing the MatrixOT wire shape.
path: readonly number[]values: readonly T | null[]
- functioncreateInsertRowOTOperationsource ↗
-
createInsertRowOTOperation<T>(path: readonly number[], values: readonly T | null[]): InsertRowOTOperation<T>Creates a semantic row-insert operation without changing the MatrixOT wire shape.
path: readonly number[]values: readonly T | null[]
- functioncreateMoveColOTOperationsource ↗
-
createMoveColOTOperation(path: readonly number[], destination: readonly number[]): MoveColOTOperation<unknown>Creates a semantic column-move operation.
path: readonly number[]destination: readonly number[]
- functioncreateMoveRowOTOperationsource ↗
-
createMoveRowOTOperation(path: readonly number[], destination: readonly number[]): MoveRowOTOperation<unknown>Creates a semantic row-move operation.
path: readonly number[]destination: readonly number[]
- functioncreateResizeColOTOperationsource ↗
-
createResizeColOTOperation(path: readonly number[], value: number | null, previousValue: number | null): ResizeColOTOperationCreates a semantic column-resize operation.
path: readonly number[]value: number | nullpreviousValue: number | null
- functioncreateResizeRowOTOperationsource ↗
-
createResizeRowOTOperation(path: readonly number[], value: number | null, previousValue: number | null): ResizeRowOTOperationCreates a semantic row-resize operation.
path: readonly number[]value: number | nullpreviousValue: number | null
- functioncreateUpdateCellOTOperationsource ↗
-
createUpdateCellOTOperation<T>(path: readonly number[], value: T | null, previousValue: T | null, intent?: "relocation"): UpdateCellOTOperation<T>Creates a semantic cell-update operation carrying both values required for inversion.
path: readonly number[]value: T | nullpreviousValue: T | nullintent: "relocation"
- functioncreateUpdateRectOTOperationsource ↗
-
createUpdateRectOTOperation(path: readonly number[], start: readonly [number, number], end: readonly [number, number]): UpdateRectOTOperationCreates a semantic rectangle update without changing the RectOT wire shape.
path: readonly number[]start: readonly [number, number]end: readonly [number, number]
- functiongetAllActionNamessource ↗
-
getAllActionNames(): Set<string>Returns a Set of all known OT action name strings. Used by the engine to identify which action types are present in an operation.
- functionisMatrixOperationsource ↗
-
isMatrixOperation(operation: OTOperation): operationNarrows an operation to any operation understood by MatrixOT.
operation: OTOperation
- functionisMatrixStructureOperationsource ↗
-
isMatrixStructureOperation<T>(operation: OTOperation): operationNarrows an OT operation to one of the row or column structure operations.
operation: OTOperation
- functionisResizeColOperationsource ↗
-
isResizeColOperation(operation: OTOperation): operationNarrows an OT operation to a column-resize operation with a present action payload.
operation: OTOperation
- functionisResizeRowOperationsource ↗
-
isResizeRowOperation(operation: OTOperation): operationNarrows an OT operation to a row-resize operation with a present action payload.
operation: OTOperation
- functionisUpdateCellOperationsource ↗
-
isUpdateCellOperation<T>(operation: OTOperation): operationNarrows an OT operation to an update-cell operation with a present action payload.
operation: OTOperation
- functionOTClonesource ↗
-
OTClone<T>(object: T): TDeep-clones JSON-compatible OT payloads before mutation or composition.
object: T
- functiontransactionOTTypeKeysource ↗
-
transactionOTTypeKey(definition: Pick<TransactionOTDefinition, "id" | "version">): stringReturns the wire identity of one versioned OT family.
definition: Pick<TransactionOTDefinition, "id" | "version">
- interfaceNodeSchemasource ↗
-
interface NodeSchemaPersisted rich-document node schema shared by document runtime, commands, and OT.
propertyattrs attrs?: Record<string, any>Node attributes for styles, formatting, and feature-owned metadata.
propertycontent content?: Schema[]Child rich-document nodes.
propertyid id?: stringStable structural identity for layout, retained render nodes, and collaboration mapping.
propertytext text?: stringOptional text content for leaf text nodes.
propertytype type: stringDomain node type identifier.
- interfaceTextSchemasource ↗
-
interface TextSchema extends NodeSchemaPersisted text-bearing rich-document node schema.
propertytext text: stringOptional text content for leaf text nodes.
No public exports match that search.