Use crosshair cursor on graph
This commit is contained in:
parent
825fee1fb5
commit
26bec7c341
@ -150,7 +150,7 @@
|
|||||||
// backdrop
|
// backdrop
|
||||||
_elements.backdrop = _canvas.rect(
|
_elements.backdrop = _canvas.rect(
|
||||||
_tickSize, 0, _width - (_densitySize + _tickSize), _height - _panelSize
|
_tickSize, 0, _width - (_densitySize + _tickSize), _height - _panelSize
|
||||||
).attr({'stroke': '#d3d7cf', 'fill': '#eeeeec'}).click(clicked);
|
).attr({'cursor': 'crosshair', 'stroke': '#d3d7cf', 'fill': '#eeeeec'}).click(clicked);
|
||||||
|
|
||||||
// density
|
// density
|
||||||
_elements.density = _canvas.rect(
|
_elements.density = _canvas.rect(
|
||||||
@ -171,7 +171,7 @@
|
|||||||
var range = computeIndicatorRange();
|
var range = computeIndicatorRange();
|
||||||
_elements.indicator = _canvas.rect(
|
_elements.indicator = _canvas.rect(
|
||||||
_tickSize, range.start, _width - (_densitySize + _tickSize), (range.end - range.start)
|
_tickSize, range.start, _width - (_densitySize + _tickSize), (range.end - range.start)
|
||||||
).attr({'fill': computeFillColor()}).click(clicked);
|
).attr({'cursor': 'crosshair', 'fill': computeFillColor()}).click(clicked);
|
||||||
|
|
||||||
// tick
|
// tick
|
||||||
if (_range.contains(0.0)) {
|
if (_range.contains(0.0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user