diff --git a/src/app/cartography/shared/models/link-status.model.ts b/src/app/cartography/shared/models/link-status.model.ts index b2572851..b1bd66a6 100644 --- a/src/app/cartography/shared/models/link-status.model.ts +++ b/src/app/cartography/shared/models/link-status.model.ts @@ -1,11 +1,3 @@ export class LinkStatus { - x: number; - y: number; - status: string; - - public constructor(x: number, y: number, status: string) { - this.x = x; - this.y = y; - this.status = status; - } + public constructor(public x: number, public y: number, public status: string) {} } diff --git a/src/app/cartography/shared/widgets/links.widget.ts b/src/app/cartography/shared/widgets/links.widget.ts index db7167ce..57bad9da 100644 --- a/src/app/cartography/shared/widgets/links.widget.ts +++ b/src/app/cartography/shared/widgets/links.widget.ts @@ -101,8 +101,14 @@ export class LinksWidget implements Widget { this.multiLinkCalculatorHelper.assignDataToLinks(links); - const link = view - .selectAll("g.link") + const linksLayer = view.selectAll("g.links").data([{}]); + linksLayer + .enter() + .append('g') + .attr("class", "links"); + + const link = linksLayer + .selectAll("g.link") .data(links.filter((l: Link) => { return l.target && l.source; })); diff --git a/src/app/shared/node-select-interface/node-select-interface.component.html b/src/app/shared/node-select-interface/node-select-interface.component.html index b44826b0..d912c26b 100644 --- a/src/app/shared/node-select-interface/node-select-interface.component.html +++ b/src/app/shared/node-select-interface/node-select-interface.component.html @@ -2,7 +2,7 @@