fix: graph jitter on load + format
This commit is contained in:
@@ -61,8 +61,8 @@ Item {
|
||||
implicitHeight: mainLayout.implicitHeight + mainLayout.anchors.margins * 2
|
||||
|
||||
SnapLayout {
|
||||
orientation: Qt.Vertical
|
||||
id: mainLayout
|
||||
orientation: Qt.Vertical
|
||||
anchors.fill: parent
|
||||
anchors.margins: Tokens.padding.large
|
||||
spacing: 0
|
||||
@@ -102,31 +102,6 @@ orientation: Qt.Vertical
|
||||
line1FillAlpha: 0.15
|
||||
maxValue: 1.0
|
||||
slideInterval: Config.dashboard.resourceUpdateInterval
|
||||
slideProgress: 1
|
||||
|
||||
Connections {
|
||||
function onValuesChanged(): void {
|
||||
slideAnim.restart();
|
||||
}
|
||||
|
||||
target: card.buffer
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
id: slideAnim
|
||||
|
||||
// Only drives frames; the slide phase is the sample
|
||||
// clock inside SparklineItem. It must not stop at the
|
||||
// end of a cycle, or the newest value is held on the
|
||||
// clipped edge until the next sample arrives.
|
||||
duration: Config.dashboard.resourceUpdateInterval
|
||||
easing.type: Easing.Linear
|
||||
from: 0
|
||||
loops: Animation.Infinite
|
||||
property: "slideProgress"
|
||||
target: sparkline
|
||||
to: 1
|
||||
}
|
||||
}
|
||||
|
||||
// "Collecting data" placeholder
|
||||
@@ -139,8 +114,8 @@ orientation: Qt.Vertical
|
||||
}
|
||||
|
||||
SnapLayout {
|
||||
orientation: Qt.Vertical
|
||||
id: infoColumn
|
||||
orientation: Qt.Vertical
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
width: {
|
||||
|
||||
Reference in New Issue
Block a user