MCPcopy Index your code
hub / github.com/DHTMLX/gantt / simpleSelection

Function simpleSelection

samples/common/codehighlight/codemirror.js:4624–4626  ·  view source on GitHub ↗
(anchor, head)

Source from the content-addressed store, hash-verified

4622 }
4623
4624 function simpleSelection(anchor, head) {
4625 return new Selection([new Range(anchor, head || anchor)], 0)
4626 }
4627
4628 // Compute the position of the end of a change (its 'to' property
4629 // refers to the pre-change end).

Callers 5

setSimpleSelectionFunction · 0.85
DocFunction · 0.85
codemirror.jsFile · 0.85
onDropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected