MCPcopy Create free account
hub / github.com/TruthHun/BookStack / add

Function add

static/mergely/lib/codemirror.js:2347–2354  ·  view source on GitHub ↗
(left, top, width, bottom)

Source from the content-addressed store, hash-verified

2345 var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;
2346
2347 function add(left, top, width, bottom) {
2348 if (top < 0) top = 0;
2349 top = Math.round(top);
2350 bottom = Math.round(bottom);
2351 fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left +
2352 "px; top: " + top + "px; width: " + (width == null ? rightSide - left : width) +
2353 "px; height: " + (bottom - top) + "px"));
2354 }
2355
2356 function drawForLine(line, fromArg, toArg) {
2357 var lineObj = getLine(doc, line);

Callers 2

drawForLineFunction · 0.70
drawSelectionRangeFunction · 0.70

Calls 1

eltFunction · 0.70

Tested by

no test coverage detected