MCPcopy Index your code
hub / github.com/methodofaction/Method-Draw / setEndSelectionFromPoint

Function setEndSelectionFromPoint

src/js/svgcanvas.js:3581–3588  ·  view source on GitHub ↗
(x, y, apply)

Source from the content-addressed store, hash-verified

3579 }
3580
3581 function setEndSelectionFromPoint(x, y, apply) {
3582 var i1 = textinput.selectionStart;
3583 var i2 = getIndexFromPoint(x, y);
3584
3585 var start = Math.min(i1, i2);
3586 var end = Math.max(i1, i2);
3587 setSelection(start, end, !apply);
3588 }
3589
3590 function screenToPt(x_in, y_in) {
3591 var out = {

Callers 1

svgcanvas.jsFile · 0.85

Calls 2

getIndexFromPointFunction · 0.85
setSelectionFunction · 0.85

Tested by

no test coverage detected