mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-31 20:11:59 +02:00
code fix and build update
This commit is contained in:
@@ -41,7 +41,7 @@ var Extremities = React.createClass({
|
||||
var xcurve = new api.Bezier(x_pts);
|
||||
api.drawCurve(xcurve, offset);
|
||||
api.setColor("red");
|
||||
xcurve.inflections().y.forEach(t => {
|
||||
xcurve.extrema().y.forEach(t => {
|
||||
var p = xcurve.get(t);
|
||||
api.drawCircle(p, 3, offset);
|
||||
});
|
||||
@@ -55,7 +55,7 @@ var Extremities = React.createClass({
|
||||
var ycurve = new api.Bezier(y_pts);
|
||||
api.drawCurve(ycurve, offset);
|
||||
api.setColor("red");
|
||||
ycurve.inflections().y.forEach(t => {
|
||||
ycurve.extrema().y.forEach(t => {
|
||||
var p = ycurve.get(t);
|
||||
api.drawCircle(p, 3, offset);
|
||||
});
|
||||
|
Reference in New Issue
Block a user