UNPKG

logoots-structs

Version:

Provides several data structures to represent a text using a ropes-like structure and manipulating it

11 lines (8 loc) 253 B
var TextDelete = function (offset, length) { this.offset = offset || 0; this.length = length || 0; }; TextDelete.prototype.applyTo = function (doc) { return doc.delLocal(this.offset, this.offset + this.length - 1); }; module.exports = TextDelete;