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

Function get

samples/common/codehighlight/codemirror.js:2651–2655  ·  view source on GitHub ↗
(ch, right)

Source from the content-addressed store, hash-verified

2649 lineObj = lineObj || getLine(cm.doc, pos.line);
2650 if (!preparedMeasure) { preparedMeasure = prepareMeasureForLine(cm, lineObj); }
2651 function get(ch, right) {
2652 var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight);
2653 if (right) { m.left = m.right; } else { m.right = m.left; }
2654 return intoCoordSystem(cm, lineObj, m, context)
2655 }
2656 var order = getOrder(lineObj, cm.doc.direction), ch = pos.ch, sticky = pos.sticky;
2657 if (ch >= lineObj.text.length) {
2658 ch = lineObj.text.length;

Callers 2

cursorCoordsFunction · 0.85
getBidiFunction · 0.85

Calls 2

measureCharPreparedFunction · 0.85
intoCoordSystemFunction · 0.85

Tested by

no test coverage detected