G6 icon indicating copy to clipboard operation
G6 copied to clipboard

G6中如何实现标尺功能?

Open LeaveZzz opened this issue 3 years ago • 2 comments

问题描述

请问如何在G6中实现类似下图效果的标尺?标尺刻度与画布中的坐标对应,并且需要在拖拽画布、缩放画布时标尺刻度随之变化。 1 2

重现链接

无

重现步骤

无

预期行为

无

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

LeaveZzz avatar Sep 22 '23 10:09 LeaveZzz

参考 Grid 的实现:

Grid 文档:https://g6.antv.antgroup.com/api/plugins#grid 源码:https://github.com/antvis/G6/blob/master/packages/plugin/src/grid/index.ts

Yanyan-Wang avatar Sep 25 '23 03:09 Yanyan-Wang

参考 Grid 的实现:

Grid 文档:https://g6.antv.antgroup.com/api/plugins#grid 源码:https://github.com/antvis/G6/blob/master/packages/plugin/src/grid/index.ts

感谢提供思路,已解决。

LeaveZzz avatar Oct 10 '23 09:10 LeaveZzz