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

我想定义一个自定义节点的形状怎么实现 #4445

Open
duoluodexiaoxiaoyuan opened this issue Sep 18, 2024 · 1 comment
Open

我想定义一个自定义节点的形状怎么实现 #4445

duoluodexiaoxiaoyuan opened this issue Sep 18, 2024 · 1 comment

Comments

@duoluodexiaoxiaoyuan
Copy link

Describe the bug

image

这种形状能不能用x6画出来了

Your Example Website or App

Steps to Reproduce the Bug or Issue

Expected behavior

attrs: {
body: {
refPoints: "10,0 40,0 30,20 0,20",
stroke: "#6a768f",
// fill: "#7AA874",
// stroke: "orange"
},
}, 求指点这里怎么写

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • chrome
  • Version: [e.g. 2.11.1]

Additional context

No response

@ppmmwozuiai
Copy link

用path
refPoints: '0,0 40,0 40,20 35,20 35,0 35,20 5,20 5,0 5,20 0,20',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants