(lThis, d)
| 323 | } |
| 324 | |
| 325 | function 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 | |
| 336 | function attachDragBehavior(selection) { |
| 337 | // There's some fiddling with pointer cursor styling so that the cursor preserves its shape while dragging a brush |
no test coverage detected
searching dependent graphs…