Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RemovalEvent

An event sent when text is removed, which contains an array of start positions and lengths. An array was chosen since it is preferred for one operation to translate to one event. In an insertion, this is easy since there is just a start and body. However, a removal might remove areas of text that are on different levels and could generate many events.

Hierarchy

  • RemovalEvent

Implements

Index

Modules

Type aliases

Constructors

Properties

Methods

Type aliases

Static JSON

JSON: object

Type declaration

Constructors

constructor

Properties

rclk

rclk: LogootInt

removals

removals: Removal[] = []

state

state: EventState = EventState.PENDING

type

type: EventType = EventType.REMOVAL

Methods

toJSON

Static fromJSON

Generated using TypeDoc