Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canvas-curve

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-curve - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

14

lib/canvas-curve.js

@@ -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)

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc