Compare commits

..

No commits in common. "a9ceff8f6f1680e0a53e18c795f5ba1f66ad7cc6" and "0b371ecd3f20ad4cd4074045c008b604e8f93595" have entirely different histories.

4 changed files with 12 additions and 20 deletions

View File

@ -15,9 +15,7 @@ Canvas {
function animateToNewData() function animateToNewData()
{ {
chartAnimationProgress = 0.1; chartAnimationProgress = 0.1;
if (d.jsChart) { d.jsChart?.update();
d.jsChart.update();
}
chartAnimator.restart(); chartAnimator.restart();
} }
QtObject{ QtObject{

View File

@ -41,18 +41,16 @@ ProgressBar{
height: parent.height height: parent.height
radius: d._radius radius: d._radius
color: control.color color: control.color
SequentialAnimation on x { PropertyAnimation on x {
id: animator_x id:animator_x
running: control.indeterminate && control.visible running: control.indeterminate && control.visible
loops: Animation.Infinite
PropertyAnimation {
from: -rect_progress.width from: -rect_progress.width
to: control.width + rect_progress.width to:control.width+rect_progress.width
loops: Animation.Infinite
duration: control.duration duration: control.duration
} }
} }
} }
}
FluText{ FluText{
text:(control.visualPosition * 100).toFixed(0) + "%" text:(control.visualPosition * 100).toFixed(0) + "%"
visible: { visible: {

View File

@ -14,9 +14,7 @@ Canvas {
function animateToNewData() function animateToNewData()
{ {
chartAnimationProgress = 0.1; chartAnimationProgress = 0.1;
if (d.jsChart) { d.jsChart?.update();
d.jsChart.update();
}
chartAnimator.restart(); chartAnimator.restart();
} }
QtObject{ QtObject{

View File

@ -42,18 +42,16 @@ ProgressBar{
height: parent.height height: parent.height
radius: d._radius radius: d._radius
color: control.color color: control.color
SequentialAnimation on x { PropertyAnimation on x {
id: animator_x id:animator_x
running: control.indeterminate && control.visible running: control.indeterminate && control.visible
loops: Animation.Infinite
PropertyAnimation {
from: -rect_progress.width from: -rect_progress.width
to: control.width + rect_progress.width to:control.width+rect_progress.width
loops: Animation.Infinite
duration: control.duration duration: control.duration
} }
} }
} }
}
FluText{ FluText{
text:(control.visualPosition * 100).toFixed(0) + "%" text:(control.visualPosition * 100).toFixed(0) + "%"
visible: { visible: {