mirror of
https://gitee.com/hoslay/ddei-editor.git
synced 2025-12-07 09:38:41 +08:00
48 lines
883 B
TypeScript
48 lines
883 B
TypeScript
export default {
|
|
'id': '305005',
|
|
'name': 'ddei.uml.compbox',
|
|
'code': 'cbox',
|
|
'desc': 'UML的组件盒节点',
|
|
'from': '100008',
|
|
|
|
'define': {
|
|
width: 160,
|
|
height: 100,
|
|
text: "<<component>>",
|
|
textStyle: {
|
|
valign: 1,
|
|
align: 3
|
|
},
|
|
ext: {
|
|
sample: {
|
|
rules: [
|
|
//文本区域
|
|
`(i, sample, pvs, model, ovs){
|
|
if(i == 0){
|
|
pvs.push({begin:1,x:45,y:50,text:1});
|
|
pvs.push({x:-45,y:50,text:1});
|
|
pvs.push({x:-45,y:-17,text:1});
|
|
pvs.push({end:1,x:45,y:-17,text:1});
|
|
}
|
|
}`,
|
|
]
|
|
}
|
|
},
|
|
composes: [
|
|
{
|
|
width: 20,
|
|
height: 20,
|
|
cIndex: 2,
|
|
id: '305101',
|
|
sample: {
|
|
textInput: 0,
|
|
},
|
|
initCPV: {
|
|
x: 60, y: -32
|
|
},
|
|
},
|
|
]
|
|
}
|
|
|
|
}
|