MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / wrapX

Function wrapX

static/plugins/codemirror/codemirror.js:3226–3231  ·  view source on GitHub ↗
(pos, dir, side)

Source from the content-addressed store, hash-verified

3224 }
3225
3226 function wrapX(pos, dir, side) {
3227 var extent = wrappedLineExtentChar(cm, lineObj, null, pos);
3228 var prop = (dir == "ltr") == (side == "after") ? "left" : "right";
3229 var ch = side == "after" ? extent.begin : extent.end - (/\s/.test(lineObj.text.charAt(extent.end - 1)) ? 2 : 1);
3230 return coords(ch, prop)[prop]
3231 }
3232
3233 var order = getOrder(lineObj, doc.direction);
3234 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