修改pctree的bug

This commit is contained in:
zgt
2022-03-20 00:37:28 +08:00
parent 7713ddf065
commit da7781d0df
6 changed files with 4801 additions and 2360 deletions
+17
View File
@@ -124,6 +124,23 @@ export default Util.registerShape(
});
}
//pctree 数据结构中没有后续指针
if (cfg.id.includes('PCTreeHead') && !cfg.headNext) {
group.addShape('text', {
attrs: {
x: width * (5 / 4),
y: height * (8 / 7),
textAlign: 'center',
textBaseline: 'middle',
text: '^',
fill: style.fill || '#000',
fontSize: 20,
cursor: cfg.style.cursor,
},
name: 'text',
draggable: true,
});
}
return wrapperRect;
},