Skip to content

Instantly share code, notes, and snippets.

@mariusk
Created December 1, 2015 14:52
Show Gist options
  • Save mariusk/3a71fa779311311b00b3 to your computer and use it in GitHub Desktop.
Save mariusk/3a71fa779311311b00b3 to your computer and use it in GitHub Desktop.
--- node_modules/art/core/path.js.org 2015-12-01 15:43:21.000000000 +0100
+++ node_modules/art/core/path.js 2015-12-01 15:50:24.000000000 +0100
@@ -95,8 +95,8 @@
if (ex == null){
this._pivotX = +c1x; this._pivotY = +c1y;
ex = +c2x; ey = +c2y;
- c2x = (ex + (+c1x) * 2) / 3; c2y = (ey + (+c1y) * 2) / 3;
- c1x = (x + (+c1x) * 2) / 3; c1y = (y + (+c1y) * 2) / 3;
+ c2x = (ex + (c1x) * 2) / 3; c2y = (ey + (c1y) * 2) / 3;
+ c1x = (x + (c1x) * 2) / 3; c1y = (y + (c1y) * 2) / 3;
} else {
this._pivotX = +c2x; this._pivotY = +c2y;
}
@@ -279,4 +279,4 @@
this.onLine(sx, sy, ex, ey);
}
-});
\ No newline at end of file
+});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment