fix: graph jitter on load + format
This commit is contained in:
@@ -63,7 +63,6 @@ CustomRect {
|
||||
line2FillAlpha: 0.2
|
||||
maxValue: smoothMax
|
||||
slideInterval: Config.dashboard.resourceUpdateInterval
|
||||
slideProgress: 1
|
||||
|
||||
Behavior on smoothMax {
|
||||
Anim {}
|
||||
@@ -76,23 +75,10 @@ CustomRect {
|
||||
Connections {
|
||||
function onUpdateTriggered(): void {
|
||||
sparkline.targetMax = Math.max(NetworkUsage.downloadBuffer.maximum, NetworkUsage.uploadBuffer.maximum, 1024);
|
||||
slideAnim.restart();
|
||||
}
|
||||
|
||||
target: NetworkUsage
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
id: slideAnim
|
||||
|
||||
duration: Config.dashboard.resourceUpdateInterval
|
||||
easing.type: Easing.Linear
|
||||
from: 0
|
||||
loops: Animation.Infinite
|
||||
property: "slideProgress"
|
||||
target: sparkline
|
||||
to: 1
|
||||
}
|
||||
}
|
||||
|
||||
// "Collecting data" placeholder
|
||||
|
||||
Reference in New Issue
Block a user