Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "listmodel/index"

file

This file contains the bulky position manipulation logic for any list- based CRDT (arrays, text, rich text, etc.)

author

Nathan Pennie kb1rd@kb1rd.net

Index

Type aliases

InsertionOperation

InsertionOperation: { length: number; offset: number; start: number; type: "i" }

Type declaration

  • length: number
  • offset: number
  • start: number
  • type: "i"

LdmOptions

LdmOptions: { agressively_test_bst?: boolean; disable_conflicts?: boolean }

Type declaration

  • Optional agressively_test_bst?: boolean

    An option that will run tests on the DBST after every operation to it. DO NOT enable in production.

  • Optional disable_conflicts?: boolean

    Disables detection of conflicts. Conflicts will still be present, but mark operations will not be performed and the processing overhead will be eliminated.

MarkOperation

MarkOperation: { conflicting: boolean; length: number; start: number; type: "m" }

Type declaration

  • conflicting: boolean
  • length: number
  • start: number
  • type: "m"

Operation

An operation returned by _mergeNode to be run on the local document.

Removal

Removal: { clk: LogootInt; length: number; start: LogootPosition }

A Logoot removal.

Type declaration

RemovalOperation

RemovalOperation: { length: number; start: number; type: "r" }

Type declaration

  • length: number
  • start: number
  • type: "r"

SkipRangeSearch

SkipRangeSearch: { end: LogootPosition; start: LogootPosition }

Type declaration

Functions

conflictOverNodesInRange

constructSkipRanges

fillRangeConflicts

  • When new nodes are added, their conflicts are not immediately populated. This function fixes that issue by populating each node's conflcits based on that of its neighbors. This should not be relied upon to add conflicts from changed anchors, only from existing anchors from other parts of the document.

    Parameters

    Returns void

fillSkipRanges

insertTrailingConflicts

linkFilledSkipRanges

reduceInferredRangeAnchors

Generated using TypeDoc