You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
问题描述
求助如何在一个自定义node里的markup里写2个文本,目前只能写一个selector还必须是label
重现链接
no
重现步骤
Graph.registerNode(
'cpt_circle',
{
inherit: 'circle', // 继承于 rect 节点
width: 120,
height: 120,
markup: [
{
tagName: 'circle', // 标签名称
selector: 'body', // 选择器
},
{
tagName: 'text',
selector: 'text2',
},
{
tagName: 'text',
selector: 'text1',
},
],
attrs: {
body: {
stroke: '#8f8f8f',
strokeWidth:2,
fill: '#fff',
rx: 6,
ry: 6,
},
dev_type: {
refX: 0.1,
refY: 0.4,
},
label: {
refX: 0.5,
refY: 0.8,
}
},
ports: {
groups: {
links: {
position: {
name: 'absolute',
args: {
x: 0,
y: 0
}
},
attrs: {
circle: {
预期行为
希望有2个文本竖列排放
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: