You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
statusApi.innerHTML='<span style="color:var(--rose)">drawElementImage not available. Enable chrome://flags/#canvas-draw-element</span>';
241
+
statusApi.innerHTML='<span style="color:var(--rose)">drawElement not available. Enable <code>chrome://flags/#canvas-draw-element</code> in Chrome.</span>';
thrownewError('drawElement / drawElementImage not available on this canvas context')
106
119
}
107
120
ctx2d.save()
108
121
ctx2d.scale(dpr*scale,dpr*scale)
109
-
ctx2d.drawElementImage(wrapper,0,0,width,height)
122
+
fn.call(ctx2d,wrapper,0,0,width,height)
110
123
ctx2d.restore()
111
124
returncanvas
125
+
}catch(e){
126
+
if(e&&/paintrecord/i.test(e.message||'')){
127
+
thrownewError('Browser had no paint record for the element. Make sure the document is fully loaded and visible before calling html-in-canvas (drawElement requires a real paint pass).')
0 commit comments