MCPcopy Index your code
hub / github.com/DHTMLX/gantt / updateExternalMeasurement

Function updateExternalMeasurement

samples/common/codehighlight/codemirror.js:2356–2365  ·  view source on GitHub ↗
(cm, line)

Source from the content-addressed store, hash-verified

2354 // Render a line into the hidden node display.externalMeasured. Used
2355 // when measurement is needed for a line that's not in the viewport.
2356 function updateExternalMeasurement(cm, line) {
2357 line = visualLine(line);
2358 var lineN = lineNo(line);
2359 var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);
2360 view.lineN = lineN;
2361 var built = view.built = buildLineContent(cm, view);
2362 view.text = built.pre;
2363 removeChildrenAndAdd(cm.display.lineMeasure, built.pre);
2364 return view
2365 }
2366
2367 // Get a {top, bottom, left, right} box (in line-local coordinates)
2368 // for a given character.

Callers 1

prepareMeasureForLineFunction · 0.85

Calls 4

visualLineFunction · 0.85
lineNoFunction · 0.85
buildLineContentFunction · 0.85
removeChildrenAndAddFunction · 0.85

Tested by

no test coverage detected