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 5ce6ba2fc..43f9adf39 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 @@ -1,24 +1,24 @@ /* ----------------------------------------------------------------------- */ /* File : animations.css ------------------------------------------------- */ /* feeder info */ -.sld-cell-direction-top .sld-arrow-in { +.sld-cell-direction-top :not(.sld-arrow-animation-no-speed) .sld-arrow-in { offset-rotate: 0deg; - offset-path: var(--sld-arrow-offset-path, path('M 0,-10 0,10')); + offset-path: path('M 0,-10 0,10'); animation: move var(--sld-arrow-animation-parameters, 0s); } -.sld-cell-direction-top .sld-arrow-out { +.sld-cell-direction-top :not(.sld-arrow-animation-no-speed) .sld-arrow-out { offset-rotate: 0deg; - offset-path: var(--sld-arrow-offset-path, path('M 0,10 0,-10')); + offset-path: path('M 0,10 0,-10'); animation: move var(--sld-arrow-animation-parameters, 0s); } -.sld-cell-direction-bottom .sld-arrow-in { +.sld-cell-direction-bottom :not(.sld-arrow-animation-no-speed) .sld-arrow-in { offset-rotate: 0deg; - offset-path: var(--sld-arrow-offset-path, path('M 0,10 0,-10')); + offset-path: path('M 0,10 0,-10'); animation: move var(--sld-arrow-animation-parameters, 0s); } -.sld-cell-direction-bottom .sld-arrow-out { +.sld-cell-direction-bottom :not(.sld-arrow-animation-no-speed) .sld-arrow-out { offset-rotate: 0deg; - offset-path: var(--sld-arrow-offset-path, path('M 0,-10 0,10')); + offset-path: path('M 0,-10 0,10'); animation: move var(--sld-arrow-animation-parameters, 0s); } @keyframes move { @@ -31,4 +31,3 @@ .sld-arrow-animation-low-speed { --sld-arrow-animation-parameters: 3s infinite linear } .sld-arrow-animation-average-speed { --sld-arrow-animation-parameters: 2s infinite linear } .sld-arrow-animation-high-speed { --sld-arrow-animation-parameters: 1s infinite linear } -.sld-arrow-animation-no-speed { --sld-arrow-offset-path: path('') } diff --git a/single-line-diagram/single-line-diagram-core/src/test/java/com/powsybl/sld/iidm/TestFeederInfos.java b/single-line-diagram/single-line-diagram-core/src/test/java/com/powsybl/sld/iidm/TestFeederInfos.java index c2d825dab..4d043680f 100644 --- a/single-line-diagram/single-line-diagram-core/src/test/java/com/powsybl/sld/iidm/TestFeederInfos.java +++ b/single-line-diagram/single-line-diagram-core/src/test/java/com/powsybl/sld/iidm/TestFeederInfos.java @@ -122,8 +122,7 @@ public void testAnimation() { network.getLoad("l2").getTerminal().setQ(0.0); // Enable animation - layoutParameters.setFeederInfosIntraMargin(20) - .setEnableFeederInfosAnimation(true); + layoutParameters.setFeederInfosIntraMargin(20); DiagramLabelProvider labelProvider = new DefaultDiagramLabelProvider(network, componentLibrary, layoutParameters) { @Override