mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-19 07:46:13 +00:00
Update interface-status.ts
This commit is contained in:
parent
4125c98e82
commit
141fc9cae5
@ -27,10 +27,10 @@ export class InterfaceStatusWidget implements Widget {
|
||||
|
||||
let statuses = [];
|
||||
if (link_path.node()) {
|
||||
const start_point: SVGPoint = link_path.node().getPointAtLength(100);
|
||||
const end_point: SVGPoint = link_path.node().getPointAtLength(link_path.node().getTotalLength() - 100);
|
||||
const start_point: SVGPoint = link_path.node().getPointAtLength(80);
|
||||
const end_point: SVGPoint = link_path.node().getPointAtLength(link_path.node().getTotalLength() - 80);
|
||||
|
||||
if (link_path.node().getTotalLength() > 2 * 45 + 170) {
|
||||
if (link_path.node().getTotalLength() > 2 * 45 + 130) {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user