MCPcopy Create free account
hub / github.com/TruthHun/BookStack / lineNumberFor

Function lineNumberFor

static/mergely/lib/codemirror.js:624–626  ·  view source on GitHub ↗
(options, i)

Source from the content-addressed store, hash-verified

622 }
623
624 function lineNumberFor(options, i) {
625 return String(options.lineNumberFormatter(i + options.firstLineNumber));
626 }
627
628 // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,
629 // but using getBoundingClientRect to get a sub-pixel-accurate

Callers 3

patchDisplayFunction · 0.70
updateLineGutterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected