Comparing version 2.1.4 to 2.1.5
@@ -356,3 +356,2 @@ "use strict"; | ||
Workflow.prototype.addEventListeners = function () { | ||
var _this = this; | ||
/** | ||
@@ -379,11 +378,2 @@ * Attach canvas panning | ||
} | ||
/** | ||
* On mouse over node, bring it to the front | ||
*/ | ||
this.domEvents.on("mouseover", ".node", function (ev, target, root) { | ||
if (_this.workflow.querySelector(".edge.dragged")) { | ||
return; | ||
} | ||
target.parentElement.appendChild(target); | ||
}); | ||
}; | ||
@@ -390,0 +380,0 @@ Workflow.prototype.clearCanvas = function () { |
@@ -208,2 +208,6 @@ "use strict"; | ||
SelectionPlugin.prototype.selectNode = function (element) { | ||
/** | ||
* Bring it to the front (there is no Z-index in svg so top element is the one latest in DOM) | ||
*/ | ||
element.parentElement.appendChild(element); | ||
// Fade everything on canvas so we can highlight only selected stuff | ||
@@ -210,0 +214,0 @@ this.svg.classList.add(this.css.fade); |
@@ -12,3 +12,3 @@ { | ||
"description": "A library for generating an interactive SVG visualization of CWL workflows", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"scripts": { | ||
@@ -15,0 +15,0 @@ "build": "rm -rf compiled && npx tsc", |
@@ -423,13 +423,2 @@ import {WorkflowStepInputModel} from "cwlts/models/generic"; | ||
} | ||
/** | ||
* On mouse over node, bring it to the front | ||
*/ | ||
this.domEvents.on("mouseover", ".node", (ev, target, root) => { | ||
if (this.workflow.querySelector(".edge.dragged")) { | ||
return; | ||
} | ||
target.parentElement.appendChild(target); | ||
}); | ||
} | ||
@@ -436,0 +425,0 @@ |
@@ -166,2 +166,8 @@ import {Workflow} from "../../"; | ||
private selectNode(element: SVGElement): void { | ||
/** | ||
* Bring it to the front (there is no Z-index in svg so top element is the one latest in DOM) | ||
*/ | ||
element.parentElement.appendChild(element); | ||
// Fade everything on canvas so we can highlight only selected stuff | ||
@@ -168,0 +174,0 @@ this.svg.classList.add(this.css.fade); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9087918
19813