New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.10 to 0.1.11

7

lib/canvas-curve.js

@@ -384,2 +384,4 @@ /**

if(index >= 0 && index < this._points.length){
p.x = Math.min(Math.max(p.x, pointRadius), this._max.x - pointRadius);
p.y = Math.min(Math.max(p.y, pointRadius), this._max.y - pointRadius);
if((p.x - pointRadius) >= this._min.x && (p.x + pointRadius) <= this._max.x && (p.y - pointRadius) >= this._min.y && (p.y + pointRadius) <= this._max.y){

@@ -560,6 +562,5 @@

// init the mouse and keyboard events
this._canvas.addEventListener('mousemove', this._onCanvasMouseMove.bind(this), false);
this._canvas.addEventListener('mousedown', this._onCanvasMouseDown.bind(this), false);
//this._canvas.addEventListener('mouseup', this._onCanvasMouseUp.bind(this), false);
window.addEventListener('mouseup', this._onCanvasMouseUp.bind(this), false);
document.body.addEventListener('mousemove', this._onCanvasMouseMove.bind(this), false);
document.body.addEventListener('mouseup', this._onCanvasMouseUp.bind(this), false);
this._canvas.addEventListener('dblclick', this._onCanvasMouseDbclick.bind(this), false);

@@ -566,0 +567,0 @@ this._canvas.addEventListener('mouseleave', this._onCanvasMouseLeave.bind(this), false);

{
"name": "canvas-curve",
"version": "0.1.10",
"version": "0.1.11",
"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