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

Function lineLeft

static/mergely/lib/codemirror.js:8610–8610  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

8608 function bidiRight(part) { return part.level % 2 ? part.from : part.to; }
8609
8610 function lineLeft(line) { var order = getOrder(line); return order ? bidiLeft(order[0]) : 0; }
8611 function lineRight(line) {
8612 var order = getOrder(line);
8613 if (!order) return line.text.length;

Callers 3

coordsCharInnerFunction · 0.70
lineStartFunction · 0.70
lineEndFunction · 0.70

Calls 2

getOrderFunction · 0.70
bidiLeftFunction · 0.70

Tested by

no test coverage detected