1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-18 22:41:49 +02:00
This commit is contained in:
Pomax
2016-01-03 10:20:31 -08:00
parent 982d432da8
commit d6bf1cbaeb
6 changed files with 238 additions and 147 deletions

View File

@@ -286,7 +286,7 @@ var Graphic = React.createClass({
},
drawHull: function(curve, t, offset) {
var hull = curve.hull(t);
var hull = typeof curve === "array" ? curve : curve.hull(t);
if(hull.length === 6) {
this.drawLine(hull[0], hull[1], offset);
this.drawLine(hull[1], hull[2], offset);