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

Function getBidi

external/.scrollLibs.js:4025–4029  ·  view source on GitHub ↗
(ch, partPos, invert)

Source from the content-addressed store, hash-verified

4023 }
4024
4025 function getBidi(ch, partPos, invert) {
4026 var part = order[partPos],
4027 right = part.level == 1
4028 return get(invert ? ch - 1 : ch, right != invert)
4029 }
4030 var partPos = getBidiPartAt(order, ch, sticky)
4031 var other = bidiOther
4032 var val = getBidi(ch, partPos, sticky == "before")

Callers 1

cursorCoordsFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected