问题描述
嗨,我是 rappid Joints 平台的新手,它试图与 Angualr 集成,这里集成以在本地实现与节点的点,我还没有找到文档,而是能够观察示例,这对共享参考最有帮助到快速文档。
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....
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)