MCPcopy Create free account
hub / github.com/sql-js/sql.js / lineNumberFor

Function lineNumberFor

GUI/codemirror/lib/codemirror.js:518–520  ·  view source on GitHub ↗
(options, i)

Source from the content-addressed store, hash-verified

516 }
517
518 function lineNumberFor(options, i) {
519 return String(options.lineNumberFormatter(i + options.firstLineNumber));
520 }
521
522 // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,
523 // but using getBoundingClientRect to get a sub-pixel-accurate

Callers 3

patchDisplayFunction · 0.85
updateLineGutterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…