MCPcopy
hub / github.com/DHTMLX/gantt / Pos

Function Pos

samples/common/codehighlight/codemirror.js:975–982  ·  view source on GitHub ↗
(line, ch, sticky)

Source from the content-addressed store, hash-verified

973
974 // A Pos instance represents a position within the text.
975 function Pos(line, ch, sticky) {
976 if ( sticky === void 0 ) sticky = null;
977
978 if (!(this instanceof Pos)) { return new Pos(line, ch, sticky) }
979 this.line = line;
980 this.ch = ch;
981 this.sticky = sticky;
982 }
983
984 // Compare two positions, return 0 if they are the same, a negative
985 // number when a is less, and a positive number otherwise.

Callers 15

copyPosFunction · 0.85
clipPosFunction · 0.85
clipToLenFunction · 0.85
PosWithInfoFunction · 0.85
coordsCharInnerFunction · 0.85
coordsBidiPartFunction · 0.85
posFromMouseFunction · 0.85
coordsFunction · 0.85
scrollPosIntoViewFunction · 0.85
changeEndFunction · 0.85
adjustForChangeFunction · 0.85
offsetPosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected