GGEditor icon indicating copy to clipboard operation
GGEditor copied to clipboard

domNode不设置rendered: 'svg'会报错

Open 18814127739 opened this issue 3 years ago • 0 comments

版本

3.1.3

重现步骤

Flow 自定义节点中使用了 graph.addShape('dom', {})时, 需要设置 graphConfig={{ renderer: 'svg' }}, 否则会报错:TypeError: i[o] is not a constructor, 但是设置了 graphConfig={{ renderer: 'svg' }} 后, 删除节点或边时 流程图不会刷新,被删除的节点或边依然会留在界面上。

期望的结果是什么

请问有什么办法能够在设置domNode的同时避免 graphConfig={{ renderer: 'svg' }} 导致的bug吗

18814127739 avatar Oct 08 '20 15:10 18814127739