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"

JoinFunction

JoinFunction: (a: LogootNodeGroup, b: LogootNodeGroup) => boolean

A function that determines if two LogootNodeGroups should be in the same ConflictGroup. The two arguments must be in order.

param

The first LogootNodeGroup

param

The second LogootNodeGroup

returns

True if the two groups can be joined.

Type declaration

KnownPositionBst

KnownPositionBst: DBst<ConflictGroup>

LogootBst

LogootBst: Bst<LogootNodeGroup, { start: LogootPosition }>

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: { branch: BranchKey; length: number; rclk: LogootInt; start: LogootPosition }

A Logoot removal.

Type declaration

RemovalOperation

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

Type declaration

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

TranslationOperation

TranslationOperation: { dest: number; length: number; source: number; type: "t" }

Type declaration

  • dest: number
  • length: number
  • source: number
  • type: "t"

Variables

Const InsertionConflictError

InsertionConflictError: Error = new Error('Insertion conflict')

An error thrown when an insertion is attempted at the boundary between two branches that are not the one in the active document.

Functions

Const MinimalJoinFunction

Generated using TypeDoc