MCPcopy Create free account
hub / github.com/leeoniya/uPlot / mouseDown

Function mouseDown

src/uPlot.js:3198–3217  ·  view source on GitHub ↗
(e, src, _l, _t, _w, _h, _i)

Source from the content-addressed store, hash-verified

3196 let downSelectHeight;
3197
3198 function mouseDown(e, src, _l, _t, _w, _h, _i) {
3199 dragging = true;
3200 dragX = dragY = drag._x = drag._y = false;
3201
3202 cacheMouse(e, src, _l, _t, _w, _h, _i, true, false);
3203
3204 if (e != null) {
3205 onMouse(mouseup, doc, mouseUp, false);
3206 pubSync(mousedown, self, mouseLeft0, mouseTop0, plotWidCss, plotHgtCss, null);
3207 }
3208
3209 let { left, top, width, height } = select;
3210
3211 downSelectLeft = left;
3212 downSelectTop = top;
3213 downSelectWidth = width;
3214 downSelectHeight = height;
3215
3216 // hideSelect();
3217 }
3218
3219 function mouseUp(e, src, _l, _t, _w, _h, _i) {
3220 dragging = drag._x = drag._y = false;

Callers

nothing calls this directly

Calls 3

cacheMouseFunction · 0.85
onMouseFunction · 0.85
pubSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…