mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-14 22:43:43 +00:00
Links on different layer
This commit is contained in:
parent
694e819274
commit
660b659f78
@ -1,11 +1,3 @@
|
|||||||
export class LinkStatus {
|
export class LinkStatus {
|
||||||
x: number;
|
public constructor(public x: number, public y: number, public status: string) {}
|
||||||
y: number;
|
|
||||||
status: string;
|
|
||||||
|
|
||||||
public constructor(x: number, y: number, status: string) {
|
|
||||||
this.x = x;
|
|
||||||
this.y = y;
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -101,8 +101,14 @@ export class LinksWidget implements Widget {
|
|||||||
|
|
||||||
this.multiLinkCalculatorHelper.assignDataToLinks(links);
|
this.multiLinkCalculatorHelper.assignDataToLinks(links);
|
||||||
|
|
||||||
const link = view
|
const linksLayer = view.selectAll("g.links").data([{}]);
|
||||||
.selectAll("g.link")
|
linksLayer
|
||||||
|
.enter()
|
||||||
|
.append<SVGGElement>('g')
|
||||||
|
.attr("class", "links");
|
||||||
|
|
||||||
|
const link = linksLayer
|
||||||
|
.selectAll<SVGGElement, Link>("g.link")
|
||||||
.data(links.filter((l: Link) => {
|
.data(links.filter((l: Link) => {
|
||||||
return l.target && l.source;
|
return l.target && l.source;
|
||||||
}));
|
}));
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<span [matMenuTriggerFor]="selectInterfaceMenu"></span>
|
<span [matMenuTriggerFor]="selectInterfaceMenu"></span>
|
||||||
<mat-menu #selectInterfaceMenu="matMenu">
|
<mat-menu #selectInterfaceMenu="matMenu">
|
||||||
<button mat-menu-item *ngFor="let port of node.ports" (click)="chooseInterface(port)">
|
<button mat-menu-item *ngFor="let port of node.ports" (click)="chooseInterface(port)">
|
||||||
<mat-icon>info</mat-icon>
|
<mat-icon>add_circle_outline</mat-icon>
|
||||||
<span>{{ port.name }}</span>
|
<span>{{ port.name }}</span>
|
||||||
</button>
|
</button>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user