Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

边上工具 - [source-arrowhead] - [tagName]参数无效 #3811

Closed
sh4wmoo opened this issue Jul 26, 2023 · 3 comments
Closed

边上工具 - [source-arrowhead] - [tagName]参数无效 #3811

sh4wmoo opened this issue Jul 26, 2023 · 3 comments
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems

Comments

@sh4wmoo
Copy link

sh4wmoo commented Jul 26, 2023

问题描述

边上工具 - [source-arrowhead] - [tagName]参数无效

重现链接

重现步骤

image

cell.addTools([
        {
          name: 'source-arrowhead',
          args:{
            tagName:'circle',
            attrs: {
              fill: 'red',
            },
          }
        },
      ])

使用如上代码,渲染出的箭头仍然是path类型。

预期行为

期望根据传参改变箭头样式,兼容内置的箭头类型即可

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [2.13.1]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

有没有复现 demo 呢,我看官网例子 https://codesandbox.io/s/rhppls 是好的呀。

@NewByVector NewByVector added type: discussion 讨论 Usage questions, guidance, and other discussions resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems and removed type: discussion 讨论 Usage questions, guidance, and other discussions labels Aug 2, 2023
@sh4wmoo
Copy link
Author

sh4wmoo commented Aug 3, 2023

有没有复现 demo 呢,我看官网例子 https://codesandbox.io/s/rhppls 是好的呀。

知道了,是需要再注册一个自定义边上工具,然后声明tagName,再使用就可以了。直接写tagName是无效的

@sh4wmoo sh4wmoo closed this as completed Aug 3, 2023
@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 3, 2024

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.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems
Projects
None yet
Development

No branches or pull requests

2 participants