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

Function get

external/.scrollLibs.js:4002–4010  ·  view source on GitHub ↗
(ch, right)

Source from the content-addressed store, hash-verified

4000 preparedMeasure = prepareMeasureForLine(cm, lineObj)
4001 }
4002 function get(ch, right) {
4003 var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight)
4004 if (right) {
4005 m.left = m.right
4006 } else {
4007 m.right = m.left
4008 }
4009 return intoCoordSystem(cm, lineObj, m, context)
4010 }
4011 var order = getOrder(lineObj, cm.doc.direction),
4012 ch = pos.ch,
4013 sticky = pos.sticky

Callers 2

cursorCoordsFunction · 0.70
getBidiFunction · 0.70

Calls 2

measureCharPreparedFunction · 0.85
intoCoordSystemFunction · 0.85

Tested by

no test coverage detected