rds57826 edited a comment on issue #9607:
URL: https://github.com/apache/echarts/issues/9607#issuecomment-773889325


   
同样碰到这样的问题,现在有一个做法,就是牺牲crosshair的样式,所有设置`cursor:crosshair`的都不生效,当然也可以加入一些其他的判断条件,这个主要看使用,方法就是改写setCursorStyle,例如下面的例子
   
   > const zr = instanceCharts.getZr();
   >if (zr && typeof zr.setCursorStyle === 'function') {
   >  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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to