MCPcopy
hub / github.com/csev/py4e / add

Function add

tools/pythonauto/static/codemirrorepl/codemirror.js:1280–1287  ·  view source on GitHub ↗
(left, top, width, bottom)

Source from the content-addressed store, hash-verified

1278 var padding = paddingH(cm.display), leftSide = padding.left, rightSide = display.lineSpace.offsetWidth - padding.right;
1279
1280 function add(left, top, width, bottom) {
1281 if (top < 0) top = 0;
1282 top = Math.round(top);
1283 bottom = Math.round(bottom);
1284 fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left +
1285 "px; top: " + top + "px; width: " + (width == null ? rightSide - left : width) +
1286 "px; height: " + (bottom - top) + "px"));
1287 }
1288
1289 function drawForLine(line, fromArg, toArg) {
1290 var lineObj = getLine(doc, line);

Callers 2

drawForLineFunction · 0.70
drawSelectionRangeFunction · 0.70

Calls 2

eltFunction · 0.70
appendChildMethod · 0.45

Tested by

no test coverage detected