@neo4j-nvl/interaction-handlers
Advanced tools
Comparing version 0.2.18 to 0.2.19
@@ -55,2 +55,3 @@ import { NVL } from '@neo4j-nvl/core'; | ||
private handleMouseMove; | ||
private handleMouseUp; | ||
/** | ||
@@ -57,0 +58,0 @@ * Removes the related event listeners from the canvas. |
@@ -103,2 +103,10 @@ import { difference } from 'lodash'; | ||
}); | ||
Object.defineProperty(this, "handleMouseUp", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: () => { | ||
this.shouldPan = false; | ||
} | ||
}); | ||
this.mousePosition = { x: 0, y: 0 }; | ||
@@ -110,2 +118,3 @@ this.targets = []; | ||
this.addEventListener('mousemove', this.handleMouseMove, true); | ||
this.addEventListener('mouseup', this.handleMouseUp, true); | ||
} | ||
@@ -118,3 +127,4 @@ /** | ||
this.removeEventListener('mousemove', this.handleMouseMove, true); | ||
this.removeEventListener('mouseup', this.handleMouseUp, true); | ||
} | ||
} |
{ | ||
"name": "@neo4j-nvl/interaction-handlers", | ||
"version": "0.2.18", | ||
"version": "0.2.19", | ||
"license": "SEE LICENSE IN 'Neo4j Early Access Agreement - Visualization Library.pdf'", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
270222
1833