Comparing version 2.1.8-rc.1 to 2.1.8-rc.2
@@ -79,3 +79,3 @@ "use strict"; | ||
var label = port.label || port.id; | ||
return "\n <g class=\"port " + portClass + "\" transform=\"" + (transform || "matrix(1, 0, 0, 1, 0, 0)") + "\"\n data-connection-id=\"" + port.connectionId + "\"\n data-port-id=\"" + 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 "; | ||
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 "; | ||
}; | ||
@@ -82,0 +82,0 @@ GraphNode.createPortMatrix = function (totalPortLength, portIndex, radius, type) { |
@@ -12,3 +12,3 @@ { | ||
"description": "A library for generating an interactive SVG visualization of CWL workflows", | ||
"version": "2.1.8-rc.1", | ||
"version": "2.1.8-rc.2", | ||
"scripts": { | ||
@@ -15,0 +15,0 @@ "build": "rm -rf compiled && npx tsc", |
@@ -163,4 +163,4 @@ import {ParameterTypeModel, StepModel, WorkflowInputParameterModel, WorkflowOutputParameterModel} from "cwlts/models"; | ||
<g class="port ${portClass}" transform="${transform || "matrix(1, 0, 0, 1, 0, 0)"}" | ||
data-connection-id="${port.connectionId}" | ||
data-port-id="${port.id}" | ||
data-connection-id="${HtmlUtils.escapeHTML(port.connectionId)}" | ||
data-port-id="${HtmlUtils.escapeHTML(port.id)}" | ||
> | ||
@@ -167,0 +167,0 @@ <g class="io-port"> |
Sorry, the diff of this file is not supported yet
8930360