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
// if control points overlap begin/end points, this is a straight line
220
219
// even though if the control points would be along the straight line, we won't minify that as the control points influence the speed along the curve (important for dashes for example)
221
220
// only change to a lines if we are sure no 'S' or 's' follows
222
-
if (cmd=='C'||cmd=='c'||i+di>=n) && (cp1x==p.x||cp1x==ax) &&(cp1y==p.y||cp1y==ay) && (cp2x==p.x||cp2x==ax) &&(cp2y==p.y||cp2y==ay) {
221
+
if (cmd=='C'||cmd=='c'||i+di>=n) && (cp1x==p.x&&cp1y==p.y||cp1x==ax&&cp1y==ay) && (cp2x==p.x&&cp2y==p.y||cp2x==ax&&cp2y==ay) {
// if control point overlaps begin/end points, this is a straight line
266
265
// even though if the control point would be along the straight line, we won't minify that as the control point influences the speed along the curve (important for dashes for example)
267
266
// only change to a lines if we are sure no 'T' or 't' follows
268
-
if (cmd=='Q'||cmd=='q'||i+di>=n) && (cpx==p.x||cpx==ax) &&(cpy==p.y||cpy==ay) {
267
+
if (cmd=='Q'||cmd=='q'||i+di>=n) && (cpx==p.x&&cpy==p.y||cpx==ax&&cpy==ay) {
0 commit comments