G6
G6 copied to clipboard
G6中如何实现标尺功能?
问题描述
请问如何在G6中实现类似下图效果的标尺?标尺刻度与画布中的坐标对应,并且需要在拖拽画布、缩放画布时标尺刻度随之变化。
重现链接
无
重现步骤
无
预期行为
无
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- G6 版本: [4.5.1 ... ]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
参考 Grid 的实现:
Grid 文档:https://g6.antv.antgroup.com/api/plugins#grid 源码:https://github.com/antvis/G6/blob/master/packages/plugin/src/grid/index.ts
参考 Grid 的实现:
Grid 文档:https://g6.antv.antgroup.com/api/plugins#grid 源码:https://github.com/antvis/G6/blob/master/packages/plugin/src/grid/index.ts
感谢提供思路,已解决。