diff --git a/network-area-diagram/src/test/java/com/powsybl/nad/AbstractTest.java b/network-area-diagram/src/test/java/com/powsybl/nad/AbstractTest.java index 4a6f3025d..accb00cf9 100644 --- a/network-area-diagram/src/test/java/com/powsybl/nad/AbstractTest.java +++ b/network-area-diagram/src/test/java/com/powsybl/nad/AbstractTest.java @@ -32,7 +32,7 @@ */ public abstract class AbstractTest { - protected boolean debugSvg = false; + protected boolean debugSvg = true; protected boolean overrideTestReferences = false; private SvgParameters svgParameters; diff --git a/single-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/HighlightLineStateStyleProvider.java b/single-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/HighlightLineStateStyleProvider.java index 624d72085..bfe65914f 100644 --- a/single-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/HighlightLineStateStyleProvider.java +++ b/single-line-diagram/single-line-diagram-core/src/main/java/com/powsybl/sld/svg/styles/iidm/HighlightLineStateStyleProvider.java @@ -52,7 +52,8 @@ public List getNodeStyles(VoltageLevelGraph graph, Node node, ComponentL return List.of(StyleClassConstants.BUS_DISCONNECTED); } - if (node instanceof EquipmentNode equipmentNode && equipmentNode.isOverloaded()) { +// if (node instanceof EquipmentNode equipmentNode && equipmentNode.isOverloaded()) { + if (node.isOverloaded()) { return List.of(StyleClassConstants.OVERLOAD_STYLE_CLASS); } return Collections.emptyList(); diff --git a/single-line-diagram/single-line-diagram-core/src/main/resources/animations.css b/single-line-diagram/single-line-diagram-core/src/main/resources/animations.css index 40aa1643f..c1da64468 100644 --- a/single-line-diagram/single-line-diagram-core/src/main/resources/animations.css +++ b/single-line-diagram/single-line-diagram-core/src/main/resources/animations.css @@ -45,5 +45,5 @@ } .sld-overload { - animation: sld-overload-blink 3s infinite; + animation: sld-overload-blink-animation 3s infinite; } diff --git a/single-line-diagram/single-line-diagram-core/src/test/resources/Test3WTFeederInfoOverLoad.svg b/single-line-diagram/single-line-diagram-core/src/test/resources/Test3WTFeederInfoOverLoad.svg index 55388c5f1..b7c8d5d0b 100644 --- a/single-line-diagram/single-line-diagram-core/src/test/resources/Test3WTFeederInfoOverLoad.svg +++ b/single-line-diagram/single-line-diagram-core/src/test/resources/Test3WTFeederInfoOverLoad.svg @@ -226,10 +226,10 @@ -400 - + - + @@ -237,10 +237,10 @@ - + 3WT - + 3WT diff --git a/single-line-diagram/single-line-diagram-core/src/test/resources/TestAnimatedFeederInfos.svg b/single-line-diagram/single-line-diagram-core/src/test/resources/TestAnimatedFeederInfos.svg index 3526cba81..a93c20a53 100644 --- a/single-line-diagram/single-line-diagram-core/src/test/resources/TestAnimatedFeederInfos.svg +++ b/single-line-diagram/single-line-diagram-core/src/test/resources/TestAnimatedFeederInfos.svg @@ -133,7 +133,7 @@ } .sld-overload { - animation: sld-overload-blink 3s infinite; + animation: sld-overload-blink-animation 3s infinite; } /* ----------------------------------------------------------------------- */ /* File : components.css ------------------------------------------------- */ diff --git a/single-line-diagram/single-line-diagram-core/src/test/resources/TestLineFeederInfoOverLoad.svg b/single-line-diagram/single-line-diagram-core/src/test/resources/TestLineFeederInfoOverLoad.svg index 266333cb2..76e642602 100644 --- a/single-line-diagram/single-line-diagram-core/src/test/resources/TestLineFeederInfoOverLoad.svg +++ b/single-line-diagram/single-line-diagram-core/src/test/resources/TestLineFeederInfoOverLoad.svg @@ -177,13 +177,13 @@ 150 - + - + diff --git a/single-line-diagram/single-line-diagram-core/src/test/resources/TestTransformerFeederInfoOverLoad.svg b/single-line-diagram/single-line-diagram-core/src/test/resources/TestTransformerFeederInfoOverLoad.svg index 09f3b3645..7ff3d8d88 100644 --- a/single-line-diagram/single-line-diagram-core/src/test/resources/TestTransformerFeederInfoOverLoad.svg +++ b/single-line-diagram/single-line-diagram-core/src/test/resources/TestTransformerFeederInfoOverLoad.svg @@ -177,13 +177,13 @@ - + - +