Comparing version 2.1.9 to 2.1.10
@@ -78,3 +78,3 @@ "use strict"; | ||
var portClass = type === "input" ? "input-port" : "output-port"; | ||
var label = port.label || port.id; | ||
var label = html_utils_1.HtmlUtils.escapeHTML(port.label || port.id); | ||
return "\n <g class=\"port " + portClass + "\" transform=\"" + (transform || "matrix(1, 0, 0, 1, 0, 0)") + "\"\n data-connection-id=\"" + html_utils_1.HtmlUtils.escapeHTML(port.connectionId) + "\"\n data-port-id=\"" + html_utils_1.HtmlUtils.escapeHTML(port.id) + "\"\n >\n <g class=\"io-port\">\n <circle cx=\"0\" cy=\"0\" r=\"7\" class=\"port-handle\"></circle>\n </g>\n <text x=\"0\" y=\"0\" transform=\"matrix(1,0,0,1,0,0)\" class=\"label unselectable\">" + label + "</text>\n </g>\n \n "; | ||
@@ -81,0 +81,0 @@ }; |
@@ -12,3 +12,3 @@ { | ||
"description": "A library for generating an interactive SVG visualization of CWL workflows", | ||
"version": "2.1.9", | ||
"version": "2.1.10", | ||
"scripts": { | ||
@@ -15,0 +15,0 @@ "build": "rm -rf compiled && npx tsc", |
@@ -159,3 +159,3 @@ import {ParameterTypeModel, StepModel, WorkflowInputParameterModel, WorkflowOutputParameterModel} from "cwlts/models"; | ||
const portClass = type === "input" ? "input-port" : "output-port"; | ||
const label = port.label || port.id; | ||
const label = HtmlUtils.escapeHTML(port.label || port.id); | ||
@@ -162,0 +162,0 @@ return ` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
8930511
200
19816