Skip to content

Commit

Permalink
Add a transparent fill to unknown buses and three windings transforme…
Browse files Browse the repository at this point in the history
…rs in network area diagram

Signed-off-by: massimo.ferraro <massimo.ferraro@soft.it>
  • Loading branch information
massimo-ferraro committed Jun 19, 2024
1 parent cb17499 commit 6eab5a3
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,17 @@ export class NetworkAreaDiagramViewer {
firstChild.removeAttribute('viewBox');
firstChild.removeAttribute('width');
firstChild.removeAttribute('height');

if (enableNodeMoving) {
// fill empty elements: unknown buses and three windings transformers
const emptyElements: NodeListOf<SVGGraphicsElement> =
this.container.querySelectorAll(
'.nad-unknown-busnode, .nad-3wt-nodes .nad-winding'
);
emptyElements.forEach((emptyElement) => {
emptyElement.style.fill = '#0000';
});
}
}

public getDimensionsFromSvg(): DIMENSIONS | null {
Expand Down

0 comments on commit 6eab5a3

Please sign in to comment.