Closed minzojian closed 1 year ago
比如我想在箭头上这么定义,加上一个fallbackAction: "remove",好让箭头在拖到空白的地方,能被移除掉,而不是象现在这样,自动还原
建议这么修改一下这里,以解决这个问题 /packages/x6/src/registry/tool/arrowhead.ts#L54-L55
https://github.com/antvis/X6/blob/master/packages/x6/src/registry/tool/arrowhead.ts#L54-L55
cell.addTools([ { name: "target-arrowhead", args: { fallbackAction: "remove", }, }, ]);
在箭头拖到空白的地方,能被移除掉,而不是象现在这样,自动还原
No response
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.
Describe the bug
比如我想在箭头上这么定义,加上一个fallbackAction: "remove",好让箭头在拖到空白的地方,能被移除掉,而不是象现在这样,自动还原![image](https://user-images.githubusercontent.com/361781/208379270-7f8dd2b7-fdbc-47e0-a399-b6ccd024e3c9.png)
建议这么修改一下这里,以解决这个问题 /packages/x6/src/registry/tool/arrowhead.ts#L54-L55![image](https://user-images.githubusercontent.com/361781/208378718-9aa980e7-b21f-480e-a46f-aff604c37162.png)
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
Expected behavior
在箭头拖到空白的地方,能被移除掉,而不是象现在这样,自动还原
Screenshots or Videos
No response
Platform
Additional context
No response