(left, top, width, bottom)
| 58 | let docLTR = doc.direction == "ltr" |
| 59 | |
| 60 | function add(left, top, width, bottom) { |
| 61 | if (top < 0) top = 0 |
| 62 | top = Math.round(top) |
| 63 | bottom = Math.round(bottom) |
| 64 | fragment.appendChild(elt("div", null, "CodeMirror-selected", `position: absolute; left: ${left}px; |
| 65 | top: ${top}px; width: ${width == null ? rightSide - left : width}px; |
| 66 | height: ${bottom - top}px`)) |
| 67 | } |
| 68 | |
| 69 | function drawForLine(line, fromArg, toArg) { |
| 70 | let lineObj = getLine(doc, line) |
no test coverage detected