MCPcopy Create free account
hub / github.com/breck7/scroll / setLine

Method setLine

external/.scrollLibs.js:17100–17107  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

17098 return this.setAtom(0, cue)
17099 }
17100 setLine(line) {
17101 if (line === this.getLine()) return this
17102 // todo: clear parent TMTimes
17103 this.parent._clearCueIndex()
17104 this._setLine(line)
17105 this._updateLineModifiedTimeAndTriggerEvent()
17106 return this
17107 }
17108 duplicate() {
17109 return this.parent._insertBlock(this.toString(), this.index + 1)
17110 }

Callers 7

_rightPadMethod · 0.95
insertAtomMethod · 0.95
setAtomMethod · 0.95
setFromTextMethod · 0.95
setAtomsMethod · 0.95
pasteTextMethod · 0.95
toSideBySideMethod · 0.80

Calls 4

getLineMethod · 0.95
_setLineMethod · 0.95
_clearCueIndexMethod · 0.45

Tested by

no test coverage detected