You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/02/05 08:49:20 UTC
[GitHub] [echarts] rds57826 commented on issue #9607: 开启 toolbox 的 dataZoom 区域缩放后,悬浮在图形元素上的鼠标样式可以修改为 pointer 吗
rds57826 commented on issue #9607:
URL: https://github.com/apache/echarts/issues/9607#issuecomment-773889325
同样碰到这样的问题,现在有一个做法,就是牺牲crosshair的样式,所有设置cursor:crosshair的都不生效,当然也可以加入一些其他的判断条件,这个主要看使用,方法就是改写setCursorStyle,例如下面的例子
`const zr = instanceCharts.getZr();
if (zr) {
const originFuncSetCursorStyle = zr.setCursorStyle.bind(zr);
zr.setCursorStyle = (cursorStyle: string) => {
if (cursorStyle !== 'crosshair') originFuncSetCursorStyle(cursorStyle);
};
}`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org