canvas-curve
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -491,2 +491,3 @@ /** | ||
backgroundColor = false, | ||
drawControl = false | ||
} = options; | ||
@@ -500,2 +501,3 @@ // borders of the canvas element | ||
this._hasBorder = hasBorder; | ||
this._drawControl = drawControl; | ||
@@ -596,2 +598,7 @@ // radius of the control points | ||
setControl(val) { | ||
this._drawControl = val; | ||
this.draw(); | ||
} | ||
@@ -775,3 +782,3 @@ /** | ||
Math.round((grabbedPoint.x / this._width) * 255), | ||
Math.round((grabbedPoint.y/ this._height) * 255), | ||
Math.round((grabbedPoint.y / this._height) * 255), | ||
grabbedPoint | ||
@@ -1090,3 +1097,3 @@ ); | ||
// drawing the control points | ||
if( control ){ | ||
if( control && this._drawControl ){ | ||
// control points | ||
@@ -1093,0 +1100,0 @@ for(var i=0; i<xSeries.length; i++){ |
{ | ||
"name": "canvas-curve", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A spline widget", | ||
@@ -5,0 +5,0 @@ "author": "moocher", |
Sorry, the diff of this file is not supported yet
102425
946