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

求指教,拖拽组件Addon,怎么自定义边,或者自定义一条直线? #2156

Closed
wjs0406 opened this issue May 31, 2022 · 16 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@wjs0406
Copy link

wjs0406 commented May 31, 2022

问题描述

new Addon.Stencil
groups中添加的节点有什么方式可以添加流程图的线,或者自定义一条直线?

重现链接

https://x6.antv.vision/zh/docs/tutorial/basic/dnd

重现步骤

const stencil = new Addon.Stencil({
......
groups: [
node1, node2
]
})

stencil.load([node1, node2], 'node1');

预期行为

image

平台

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

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented May 31, 2022

👋 @wjs0406

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@cuidong626
Copy link
Contributor

node 节点是可以自定义的,在自定义节点里面画一个线就好了

@wjs0406
Copy link
Author

wjs0406 commented May 31, 2022

node 节点是可以自定义的,在自定义节点里面画一个线就好了

但是那个线只能是直线,不能像边那样可以弯曲吧

@cuidong626
Copy link
Contributor

node 节点是可以自定义的,在自定义节点里面画一个线就好了

但是那个线只能是直线,不能像边那样可以弯曲吧

可以使用path随便的画路径

你看下这个

@cuidong626
Copy link
Contributor

node 节点是可以自定义的,在自定义节点里面画一个线就好了

但是那个线只能是直线,不能像边那样可以弯曲吧

我之前直接在节点里面放图片,x6有内置可以放图片的节点。你也可以自己造
image
不知道满不满足你的需求

@wjs0406
Copy link
Author

wjs0406 commented May 31, 2022

node 节点是可以自定义的,在自定义节点里面画一个线就好了

但是那个线只能是直线,不能像边那样可以弯曲吧

我之前直接在节点里面放图片,x6有内置可以放图片的节点。你也可以自己造 image 不知道满不满足你的需求

可以截图看下你里面的实现吗?

@cuidong626
Copy link
Contributor

我是自己画的html,没有用Addon.Stencil,他那个不符合我的需求

@cuidong626
Copy link
Contributor

你的需求是不是就是在节点里面有条线?

@cuidong626
Copy link
Contributor

image
这样就可以了 https://codesandbox.io/s/confident-currying-ldp8bq?file=/src/app.tsx

@wjs0406
Copy link
Author

wjs0406 commented May 31, 2022

你的需求是不是就是在节点里面有条线?

看懂了,我的节点是只要线,不要边框,我试试,多谢

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jun 6, 2022
@NewByVector
Copy link
Contributor

你好,请问这个问题解决了吗?为了更高效的沟通,我们先关闭当前 issue,如果还有问题,请重新提 issue。

@MrMengJ
Copy link
Contributor

MrMengJ commented Jun 21, 2022

你的需求是不是就是在节点里面有条线?

看懂了,我的节点是只要线,不要边框,我试试,多谢

朋友,和你有一样的需求,请问你实现了吗

@curryz
Copy link

curryz commented Jul 11, 2022

朋友,和你有一样的需求,请问你实现了吗

请问你实现了吗

@MrMengJ
Copy link
Contributor

MrMengJ commented Jul 11, 2022

朋友,和你有一样的需求,请问你实现了吗

请问你实现了吗

没有。。。

@NewByVector
Copy link
Contributor

@curryz @MrMengJ 使用 path 节点可以实现。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 12, 2023

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 Jul 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

5 participants