提交 9dfd0074 编写于 作者: K kener

dataZoom框选鼠标样式细节优化,toolbox icon样式优化

上级 df7936ac
......@@ -334,6 +334,7 @@ define(function (require) {
// 取消
_resetZoom();
zr.refresh();
dom.style.cursor = 'default';
}
else {
// 启用Zoom
......@@ -348,6 +349,8 @@ define(function (require) {
&& zr.on(zrConfig.EVENT.MOUSEUP, _onmouseup)
&& zr.on(zrConfig.EVENT.MOUSEMOVE, _onmousemove);
}, 10);
dom.style.cursor = 'crosshair';
}
return true; // 阻塞全局事件
}
......@@ -364,6 +367,12 @@ define(function (require) {
_zoomShape.style.height =
zrEvent.getY(param.event) - _zoomShape.style.y;
zr.addHoverShape(_zoomShape);
dom.style.cursor = 'crosshair';
}
if (_zoomStart
&& (dom.style.cursor != 'pointer' && dom.style.cursor != 'move')
) {
dom.style.cursor = 'crosshair';
}
}
......
......@@ -210,6 +210,8 @@ define(
var dx = style.width / 16;
var dy = style.height / 16;
var r = style.width / 2;
ctx.lineWidth = 1.5;
ctx.arc(style.x + r, style.y + r, r - dx, 0, Math.PI * 2 / 3);
ctx.moveTo(style.x + 3 * dx, style.y + style.height);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册