MCPcopy Create free account
hub / github.com/plotly/plotly.js / mousemove

Function mousemove

src/traces/parcoords/axisbrush.js:325–334  ·  view source on GitHub ↗
(lThis, d)

Source from the content-addressed store, hash-verified

323}
324
325function mousemove(lThis, d) {
326 var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding;
327 var interval = getInterval(d, y);
328
329 var cursor = 'crosshair';
330 if(interval.clickableOrdinalRange) cursor = 'pointer';
331 else if(interval.region) cursor = interval.region + '-resize';
332 d3.select(document.body)
333 .style('cursor', cursor);
334}
335
336function attachDragBehavior(selection) {
337 // There's some fiddling with pointer cursor styling so that the cursor preserves its shape while dragging a brush

Callers 2

dragendFunction · 0.85
attachDragBehaviorFunction · 0.85

Calls 1

getIntervalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…