antvis / X6

🚀 JavaScript diagramming library that uses SVG and HTML for rendering.
https://x6.antv.antgroup.com
MIT License
5.52k stars 1.66k forks source link

ArrowHead Tool在拖动的时候,没有读取到options,进而导致类似fallbackAction这样的参数无法读取到 #3064

Closed minzojian closed 1 year ago

minzojian commented 1 year ago

Describe the bug

比如我想在箭头上这么定义,加上一个fallbackAction: "remove",好让箭头在拖到空白的地方,能被移除掉,而不是象现在这样,自动还原 image

建议这么修改一下这里,以解决这个问题 /packages/x6/src/registry/tool/arrowhead.ts#L54-L55 image

Your Example Website or App

https://github.com/antvis/X6/blob/master/packages/x6/src/registry/tool/arrowhead.ts#L54-L55

Steps to Reproduce the Bug or Issue

 cell.addTools([
          {
            name: "target-arrowhead",
            args: {
              fallbackAction: "remove",
            },
          },
        ]);

Expected behavior

在箭头拖到空白的地方,能被移除掉,而不是象现在这样,自动还原

Screenshots or Videos

No response

Platform

Additional context

No response

x6-bot[bot] commented 6 months ago

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.