antvis/G6

canvas及其父级元素设置所有属性都被清理了 没法设置鼠标样式 #4556

ABCDdouyaer posted onGitHub

问题描述

demo: https://stackblitz.com/edit/typescript-9x1cf6?file=index.ts,index.html,style.less <img width="567" alt="image" src="https://github.com/antvis/G6/assets/31639964/ae320c44-5748-4e80-afcc-4dcfd2d6f326"> <img width="329" alt="image" src="https://github.com/antvis/G6/assets/31639964/7e7ebb62-d744-4028-ad7b-a4e4a1a0754f">

直接给canvas改样式 和 修改父级class都会被重置掉

重现链接

https://stackblitz.com/edit/typescript-9x1cf6?file=index.ts,index.html,style.less

重现步骤

鼠标移动到节点鼠标样式无变化

预期行为

鼠标样式修改

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: "@antv/g6": "^4.8.14",

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


节点上的 cursor 在节点的图形样式上设置,改了一下:https://stackblitz.com/edit/typescript-f9owte?file=index.ts,index.html,style.less

posted by Yanyan-Wang almost 2 years ago

@Yanyan-Wang 感谢 问题已解决

posted by ABCDdouyaer almost 2 years ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests