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

edge工具segments不正常显示 #3783

Open
Theseven87 opened this issue Jul 14, 2023 · 5 comments
Open

edge工具segments不正常显示 #3783

Theseven87 opened this issue Jul 14, 2023 · 5 comments
Labels
type: bug 缺陷 Defects and unexpected behaviors

Comments

@Theseven87
Copy link

Theseven87 commented Jul 14, 2023

Describe the bug

image
只有水平方向的黑色控制块显示了,左右两侧应该还有控制块,没有显示。即使把距离拉的较大也依然 没有显示

Your Example Website or App

demo

Steps to Reproduce the Bug or Issue

如下列代码中这样初始化graph时配置连接线时创建edge添加工具

 const graph: Graph = new Graph({
            connecting: {
                createEdge() {
                    return graph.createEdge({
                        shape: 'dag-edge',
                        attrs: {
                            line: {
                                strokeWidth: 2,
                            },
                        },
                        tools:[
                            { name: 'segments' },
                            { name: 'button-remove',
                                args: { distance: -40 } }
                        ],
                        data: {
                            type: 'edge'
                        },
                        zIndex: -1,
                    })
                },

...

Expected behavior

希望segments工具能正常显示

Screenshots or Videos

No response

Platform

  • OS: [Windows]
  • Browser: [ Chrome]
  • Version: [2.11.5]

Additional context

No response

@NewByVector
Copy link
Contributor

NewByVector commented Jul 14, 2023

我本地是可以出现的,能否可以基于 demo 提供一个可以复现的例子。

@NewByVector NewByVector added the resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems label Jul 14, 2023
@Theseven87
Copy link
Author

Theseven87 commented Jul 17, 2023

我本地是可以出现的,能否可以基于 demo 提供一个可以复现的例子。

https://codesandbox.io/p/sandbox/x6tooldemo-832m4f?file=%2Fsrc%2Fcomponents%2FHelloWorld.vue%3A16%2C48
这个是demo场景
但是功能我是写了一个包,通过npm安装的
git地址:https://github.com/Theseven87/x6tool

@NewByVector
Copy link
Contributor

确实有点问题,我们排查一下。

@NewByVector NewByVector added type: bug 缺陷 Defects and unexpected behaviors and removed resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems labels Jul 25, 2023
@wenhaoxu1
Copy link

我是只有添加调整顶点的工具后,在两侧添加两个顶点才能正确显示这个工具

@hyl1374961656
Copy link

同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 缺陷 Defects and unexpected behaviors
Projects
None yet
Development

No branches or pull requests

4 participants