canvas-curve
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -476,3 +476,3 @@ /** | ||
*/ | ||
constructor(parentContainer, options){ | ||
constructor(options){ | ||
// some styling | ||
@@ -540,12 +540,3 @@ const { | ||
this._screenRatio = window.devicePixelRatio; | ||
var parentElem = null; | ||
if (typeof parentContainer === 'string' || parentContainer instanceof String){ | ||
parentElem = document.getElementById( parentContainer ); | ||
}else{ | ||
parentElem = parentContainer; | ||
} | ||
// abort if parent div does not exist | ||
@@ -567,5 +558,2 @@ if(!parentElem) | ||
// adding the canvas to the parent div | ||
parentElem.appendChild(this._canvas); | ||
this._ctx = this._canvas.getContext("2d"); | ||
@@ -572,0 +560,0 @@ //this._ctx.scale( 1.1, 1.1) |
{ | ||
"name": "canvas-curve", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A spline widget", | ||
@@ -5,0 +5,0 @@ "author": "moocher", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102129
943