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

Function bidiLeft

static/editor.md/lib/codemirror/lib/codemirror.js:8364–8364  ·  view source on GitHub ↗
(part)

Source from the content-addressed store, hash-verified

8362 }
8363
8364 function bidiLeft(part) { return part.level % 2 ? part.to : part.from; }
8365 function bidiRight(part) { return part.level % 2 ? part.from : part.to; }
8366
8367 function lineLeft(line) { var order = getOrder(line); return order ? bidiLeft(order[0]) : 0; }

Callers 2

getBidiFunction · 0.70
lineLeftFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected