Permalink
Browse files

Relax assertion for arcTo

  • Loading branch information...
1 parent 9992993 commit fc0fcaac80543dbaa6486c68673ce069214a5446 @mbebenita mbebenita committed Mar 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Kanvas/kanvas.js
@@ -332,7 +332,7 @@
this.__data__.push(cp1x, cp1y, cp2x, cp2y, x, y);
};
pathProto.arcTo = function (x1, y1, x2, y2, rx, ry, rotation) {
- if (arguments.length > 5)
+ if (arguments.length > 5 && rx !== ry)
throw Error('Elliptical arcTo not supported');
if (+x1 != x1 || +y1 != y1 || +x2 != x2 || +y2 != y2 || +rx != rx)

0 comments on commit fc0fcaa

Please sign in to comment.