增加^符号

This commit is contained in:
zgt
2022-02-23 22:48:01 +08:00
parent fd4b0f6054
commit e23c87e732
4 changed files with 141 additions and 11599 deletions
+34
View File
@@ -63,6 +63,40 @@ SV.registerShape('three-cell-node', {
});
}
//节点没有原子时
if(!cfg.sub){
group.addShape('text', {
attrs: {
x: width,
y: height * ( 8 / 7),
textAlign: 'center',
textBaseline: 'middle',
text: '^',
fill: '#000',
fontSize: 20,
},
name: 'text',
draggable: true
});
}
//节点没有子表时
if(!cfg.next){
group.addShape('text', {
attrs: {
x: width * (4 / 3),
y: height * ( 8 / 7),
textAlign: 'center',
textBaseline: 'middle',
text: '^',
fill: '#000',
fontSize: 20,
},
name: 'text',
draggable: true
});
}
return wrapperRect;
},