类型错误:在 angular 9 版本中使用 rappid 时无法读取未定义的属性“ownerDocument”

问题描述

嗨,我是 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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...