Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function drawLine(p, waypoints, attrs) {
attrs = computeStyle(attrs, [ 'no-fill' ], {
stroke: 'black',
strokeWidth: 2,
fill: 'none'
});
var line = createLine(waypoints, attrs);
svgAppend(p, line);
return line;
}
function drawLine(parentGfx, waypoints, attrs) {
attrs = computeStyle(attrs, [ 'no-fill' ], {
stroke: 'black',
strokeWidth: 2,
fill: 'none'
});
var line = createLine(waypoints, attrs);
svgAppend(parentGfx, line);
return line;
}
function drawLine(parentGfx, waypoints, attrs) {
attrs = computeStyle(attrs, [ 'no-fill' ], {
stroke: 'black',
strokeWidth: 2,
fill: 'none'
});
var line = createLine(waypoints, attrs);
svgAppend(parentGfx, line);
return line;
}
this.drawCustomConnection = function(p, element) {
var attrs = computeStyle(attrs, {
stroke: '#ff471a',
strokeWidth: 2
});
return svgAppend(p, createLine(element.waypoints, attrs));
};
this.drawCustomConnection = function(p, element) {
var attrs = computeStyle(attrs, {
stroke: '#ff471a',
strokeWidth: 2
});
return createLine(element.waypoints, attrs).appendTo(p);
};
this.drawDSConnection = function(p, element) {
let attrs = computeStyle(attrs, {
stroke: '#000000',
strokeWidth: 1.5,
strokeLinejoin: 'round',
strokeDasharray: '5, 5',
});
return svgAppend(p, createLine(element.waypoints, attrs));
};