Update interface-status.ts

This commit is contained in:
piotrpekala7 2020-07-16 17:21:18 +02:00
parent 695ca81cc0
commit 801c10feff

View File

@ -30,7 +30,7 @@ export class InterfaceStatusWidget implements Widget {
const start_point: SVGPoint = link_path.node().getPointAtLength(100);
const end_point: SVGPoint = link_path.node().getPointAtLength(link_path.node().getTotalLength() - 100);
if (link_path.node().getTotalLength() > 2 * 45 + 10) {
if (link_path.node().getTotalLength() > 2 * 45 + 170) {
if (l.source && l.target) {
let sourcePort = l.nodes.find(node => node.nodeId === l.source.id).label.text;
let destinationPort = l.nodes.find(node => node.nodeId === l.target.id).label.text;
@ -70,7 +70,7 @@ export class InterfaceStatusWidget implements Widget {
status_started
.merge(status_started_enter)
.attr('class', 'status_started')
.attr('width', 40)
.attr('width', 60)
.attr('height', 20)
.attr('x', (ls: LinkStatus) => ls.x - 10)
.attr('y', (ls: LinkStatus) => ls.y - 10)
@ -100,7 +100,7 @@ export class InterfaceStatusWidget implements Widget {
status_stopped
.merge(status_stopped_enter)
.attr('class', 'status_stopped')
.attr('width', 40)
.attr('width', 60)
.attr('height', 20)
.attr('x', (ls: LinkStatus) => ls.x - 10)
.attr('y', (ls: LinkStatus) => ls.y - 10)
@ -130,7 +130,7 @@ export class InterfaceStatusWidget implements Widget {
status_suspended
.merge(status_suspended_enter)
.attr('class', 'status_suspended')
.attr('width', 40)
.attr('width', 60)
.attr('height', 20)
.attr('x', (ls: LinkStatus) => ls.x - 10)
.attr('y', (ls: LinkStatus) => ls.y - 10)