G6 icon indicating copy to clipboard operation
G6 copied to clipboard

自定义节点 添加dom 类型 Shape 页面报错

Open huxiaoyun opened this issue 2 years ago • 2 comments

Describe the bug

页面报错 image

image

关键代码

image

Your Example Website or App

https://codesandbox.io/s/sweet-bush-1qkzjs?file=/index.html

Steps to Reproduce the Bug or Issue

Expected behavior

期望正常展示 dom 元素

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

huxiaoyun avatar Apr 18 '22 09:04 huxiaoyun

是不是渲染器设置错了,dom 节点只能在 renderer: 'svg' 生效。但还是建议不要用 svg 和 dom,用 canvas 可以绘制任意图形且性能高很多

Yanyan-Wang avatar May 05 '22 14:05 Yanyan-Wang

尊敬的用户,您好。我们很重视您的 issue,但由于长时间没有答复,我们暂时认为这个问题已经解决。如果还有任何问题,请随时根据 issue 模版再开启新的 issue。

Yanyan-Wang avatar Jul 29 '22 03:07 Yanyan-Wang