3 ms·
Broken in Firefox due to missing Canvas2D ellipse method. I filed a bug in Bugzilla (https://bugzilla.mozilla.org/show_bug.cgi?id=1067039 https://bugzilla.mozil
by mmastrac 12y ago
Broken in Firefox due to missing Canvas2D ellipse method. I filed a bug in Bugzilla (https://bugzilla.mozilla.org/show_bug.cgi?id=1067039 https://bugzilla.mozilla.org/show_bug.cgi?id=1067039), but a quick fix would be replacing the ellipse with a rectangle.
- rwg 12y agoIt's partially broken in Safari 7.0.6 for the same reason — the ellipse method isn't a WebKit-ism, it's a WHATWG-ism that Google's implemented: http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting.html#dom-context-2d-ellipse http://www.whatwg.org/specs/web-apps/current-work/multipage/... A quick workaround is to run the following in the error console: ctx.ellipse = function (x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise) { ctx.arc(x, y, Math.max(radiusX, radiusY), rotation, startAngle, endAngle, anticlockwise); }