G6 icon indicating copy to clipboard operation
G6 copied to clipboard

如何绘制两点的延长线?

Open LeaveZzz opened this issue 3 years ago • 2 comments

问题描述

目前通过两点坐标计算出延长线两点坐标,但是效果不理想,拖拽节点时延长线会抖动。

重现链接

https://codesandbox.io/s/morning-monad-szy77t?file=/index.js

重现步骤

1.进入页面 2.拖拽灰色节点

预期行为

希望拖拽节点时延长线不抖动。

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

LeaveZzz avatar May 24 '23 08:05 LeaveZzz

改了一下,利用了 G6 的箭头缩进:https://codesandbox.io/s/pensive-cache-1nx2r8?file=/index.js

Yanyan-Wang avatar Jun 05 '23 03:06 Yanyan-Wang

改了一下,利用了 G6 的箭头缩进:https://codesandbox.io/s/pensive-cache-1nx2r8?file=/index.js

感谢!

LeaveZzz avatar Jun 05 '23 06:06 LeaveZzz