MCPcopy
hub / github.com/DHTMLX/gantt / wrapX

Function wrapX

samples/common/codehighlight/codemirror.js:3202–3207  ·  view source on GitHub ↗
(pos, dir, side)

Source from the content-addressed store, hash-verified

3200 }
3201
3202 function wrapX(pos, dir, side) {
3203 var extent = wrappedLineExtentChar(cm, lineObj, null, pos);
3204 var prop = (dir == "ltr") == (side == "after") ? "left" : "right";
3205 var ch = side == "after" ? extent.begin : extent.end - (/\s/.test(lineObj.text.charAt(extent.end - 1)) ? 2 : 1);
3206 return coords(ch, prop)[prop]
3207 }
3208
3209 var order = getOrder(lineObj, doc.direction);
3210 iterateBidiSections(order, fromArg || 0, toArg == null ? lineLen : toArg, function (from, to, dir, i) {

Callers 1

drawForLineFunction · 0.85

Calls 2

wrappedLineExtentCharFunction · 0.85
coordsFunction · 0.85

Tested by

no test coverage detected