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

Function lineNumberFor

static/editor.md/lib/codemirror/lib/codemirror.js:604–606  ·  view source on GitHub ↗
(options, i)

Source from the content-addressed store, hash-verified

602 }
603
604 function lineNumberFor(options, i) {
605 return String(options.lineNumberFormatter(i + options.firstLineNumber));
606 }
607
608 // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,
609 // 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