When this line of code is called...
var ctx = C2S(304.797, 26.109);
... then it gets the error...
Cannot set property 'width' of undefined
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...
Object [object global] has no method '__setDefaultStyles'
on line 202...
this.__setDefaultStyles();