New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cwl-svg

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cwl-svg - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

10

compiled/src/graph/workflow.js

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

4

compiled/src/plugins/selection/selection.js

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

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