嗨,我是 Rappid 关节平台的新手,尝试与 Angualr 集成,这里集成以在本地实现与节点的点,我没有找到文档而是能够观察示例,这将有助于分享对 for 的参考快速的文档。
var graph = new joint.dia.Graph;
new joint.dia.Paper({ el: $('#paper-create'), width: 650, height: 200, gridSize: 1, model: graph });
var m1 = new joint.shapes.devs.Model({
position: { x: 50, y: 50 },
size: { width: 90, height: 90 },
inPorts: ['in1','in2'],
outPorts: ['out'],
ports: {
groups: {
'in': {
attrs: {
'.port-body': {
fill: '#16A085'
}
}
},
'out': {
attrs: {
'.port-body': {
fill: '#E74C3C'
}
}
}
}
},
attrs: {
'.label': { text: 'Model', 'ref-x': .5, 'ref-y': .2 },
rect: { fill: '#2ECC71' }
}
});
graph.addCell(m1);
}());
```
able to face this lines of code as an issue
ERROR TypeError: Cannot read property 'ownerDocument' of undefined
at child.init (Paper.mjs:345)
at child.initialize (index.mjs:37)
Any reference with an explanation will be most helpful and thanks in advance....