MCPcopy Create free account
hub / github.com/breck7/scroll / add

Function add

external/.scrollLibs.js:4499–4513  ·  view source on GitHub ↗
(left, top, width, bottom)

Source from the content-addressed store, hash-verified

4497 var docLTR = doc.direction == "ltr"
4498
4499 function add(left, top, width, bottom) {
4500 if (top < 0) {
4501 top = 0
4502 }
4503 top = Math.round(top)
4504 bottom = Math.round(bottom)
4505 fragment.appendChild(
4506 elt(
4507 "div",
4508 null,
4509 "CodeMirror-selected",
4510 "position: absolute; left: " + left + "px;\n top: " + top + "px; width: " + (width == null ? rightSide - left : width) + "px;\n height: " + (bottom - top) + "px"
4511 )
4512 )
4513 }
4514
4515 function drawForLine(line, fromArg, toArg) {
4516 var lineObj = getLine(doc, line)

Callers 2

drawForLineFunction · 0.70
drawSelectionRangeFunction · 0.70

Calls 1

eltFunction · 0.85

Tested by

no test coverage detected