MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / coords

Function coords

lib/web/CodeMirror/src/display/selection.js:73–75  ·  view source on GitHub ↗
(ch, bias)

Source from the content-addressed store, hash-verified

71 let lineLen = lineObj.text.length
72 let start, end
73 function coords(ch, bias) {
74 return charCoords(cm, Pos(line, ch), "div", lineObj, bias)
75 }
76
77 function wrapX(pos, dir, side) {
78 let extent = wrappedLineExtentChar(cm, lineObj, null, pos)

Callers 2

wrapXFunction · 0.70
drawForLineFunction · 0.70

Calls 2

charCoordsFunction · 0.90
PosFunction · 0.90

Tested by

no test coverage detected