1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 03:59:58 +02:00
This commit is contained in:
Pomax
2016-01-12 13:39:35 -08:00
parent 98bb8d5a86
commit 8db94a3f50
26 changed files with 129 additions and 93 deletions

View File

@@ -38,7 +38,7 @@ var ArclengthApprox = React.createClass({
var len = curve.length();
var alen = 0;
for(var i=0,p0,p1,dx,dy; i<pts.length-1; i++) {
for(var i=0,p1,dx,dy; i<pts.length-1; i++) {
p0 = pts[i];
p1 = pts[i+1];
dx = p1.x-p0.x;
@@ -52,8 +52,8 @@ var ArclengthApprox = React.createClass({
},
values: {
"38": 1, // up arrow
"40": -1, // down arrow
"38": 1, // up arrow
"40": -1 // down arrow
},
onKeyDown: function(e, api) {