Comparing version 2.1.2 to 2.1.3
@@ -48,3 +48,3 @@ "use strict"; | ||
var incomingEdges = this.svg.querySelectorAll(".edge[data-destination-node=\"" + this.model.connectionId + "\"]"); | ||
var outgoingEdges = this.svg.querySelectorAll(".edge[data-source-node=\"" + this.model.connectionId + "\""); | ||
var outgoingEdges = this.svg.querySelectorAll(".edge[data-source-node=\"" + this.model.connectionId + "\"]"); | ||
try { | ||
@@ -51,0 +51,0 @@ for (var _a = __values(__spread(incomingEdges, outgoingEdges)), _b = _a.next(); !_b.done; _b = _a.next()) { |
@@ -27,4 +27,4 @@ "use strict"; | ||
var handler = this.onMouseWheel.bind(this); | ||
this.svg.addEventListener("mousewheel", handler, true); | ||
return function () { return _this.svg.removeEventListener("mousewheel", handler, true); }; | ||
this.svg.addEventListener("wheel", handler, true); | ||
return function () { return _this.svg.removeEventListener("wheel", handler, true); }; | ||
}; | ||
@@ -31,0 +31,0 @@ ZoomPlugin.prototype.onMouseWheel = function (event) { |
@@ -12,3 +12,3 @@ { | ||
"description": "A library for generating an interactive SVG visualization of CWL workflows", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"scripts": { | ||
@@ -30,3 +30,3 @@ "build": "rm -rf compiled && npx tsc", | ||
"peerDependencies": { | ||
"cwlts": "^1.15.17" | ||
"cwlts": "^1.15.30" | ||
}, | ||
@@ -40,3 +40,3 @@ "devDependencies": { | ||
"css-loader": "^0.28.7", | ||
"cwlts": "^1.15.18", | ||
"cwlts": "^1.15.30", | ||
"extract-text-webpack-plugin": "^3.0.2", | ||
@@ -43,0 +43,0 @@ "html-webpack-plugin": "^2.30.1", |
@@ -28,3 +28,3 @@ import {StepModel} from "cwlts/models"; | ||
const incomingEdges = this.svg.querySelectorAll(`.edge[data-destination-node="${this.model.connectionId}"]`); | ||
const outgoingEdges = this.svg.querySelectorAll(`.edge[data-source-node="${this.model.connectionId}"`); | ||
const outgoingEdges = this.svg.querySelectorAll(`.edge[data-source-node="${this.model.connectionId}"]`); | ||
@@ -31,0 +31,0 @@ for (const edge of [...incomingEdges, ...outgoingEdges]) { |
@@ -17,4 +17,4 @@ import {Workflow} from "../../"; | ||
const handler = this.onMouseWheel.bind(this); | ||
this.svg.addEventListener("mousewheel", handler, true); | ||
return () => this.svg.removeEventListener("mousewheel", handler, true); | ||
this.svg.addEventListener("wheel", handler, true); | ||
return () => this.svg.removeEventListener("wheel", handler, true); | ||
} | ||
@@ -49,2 +49,2 @@ | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9088403
200
19825
1