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
This is now fixed in v1.0.1 When C2S is called as a function (without new) this will correctly return a new C2S object. Please be aware that I've updated the signature to export to svg for ease of use and easier debugging (won't happen again in the future). So: ctx.toString() is now:
var ctx = new C2S({width:200, height:300});
ctx.fillRect(0,0,100,100);
//etc
ctx.getSerializedSvg(true); //serialized svg (if true is passed convert named entities to numbed entities)
ctx.getSvg();//inline svg
When this line of code is called...
... then it gets the error...
When I set a breakpoint in canvas2svg on line 196 in Chrome, sure enough "this" is undefined.
Sometimes if I step through it slowly enough though, "this" will be "Window". And even in that circumstance, I get this error...
on line 202...
The text was updated successfully, but these errors were encountered: