Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

节点如何用html去实现 #116

Open
junob opened this issue May 9, 2019 · 0 comments
Open

节点如何用html去实现 #116

junob opened this issue May 9, 2019 · 0 comments

Comments

@junob
Copy link

junob commented May 9, 2019

group.addShape('dom', {
attrs: {
x: x + 10,
y: y + 12,
width: 20,
height: 16,
html: "444"
}
});

这样使用为什么老是报如下警告
g6Editor.js?51cd:14173 TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'
at t.drawInner (g6Editor.js?51cd:12572)
at t.e._drawShape (g6Editor.js?51cd:14194)
at t.e._drawGroup (g6Editor.js?51cd:14189)
at t.e._drawGroup (g6Editor.js?51cd:14189)
at t.e._drawGroup (g6Editor.js?51cd:14189)
at t.e._drawGroup (g6Editor.js?51cd:14189)
at n (g6Editor.js?51cd:14170)
at t.e.draw (g6Editor.js?51cd:14177)
at t.draw (g6Editor.js?51cd:15025)
at n.draw (g6Editor.js?51cd:10459)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant