Koala - Adjust Energy flowchart animation #2927
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Die Animationsgeschwindigkeit der Linien im Energieflussdiagramm ist jetzt dynamisch direkt von der aktuellen Leistung des jeweiligen Systems abhängig. Der Wertebereich für die Geschwindigkeit wird dabei automatisch an die jeweils höchste aktuelle Leistungsaufnahme im System angepasst. Die Animation selbst wird nicht mehr über CSS, sondern vollständig im Script-Bereich der Komponente gesteuert.
Diese Umstellung war notwendig, da mit CSS-Animationen keine stufenlose und dynamische Anpassung der Animationsgeschwindigkeit möglich ist. Durch die Steuerung per JavaScript bleibt die Animation auch bei abrupten Leistungsänderungen jederzeit flüssig und synchron, ohne sichtbare Sprünge oder Neustarts, wie sie bei CSS-Animationen auftreten würden.
Forum topic: https://forum.openwb.de/viewtopic.php?p=135517#p135517