fix: graph jitter on load + format

This commit is contained in:
2026-11-09 20:20:27 +01:00
parent d69a6bcafd
commit e49ecabf62
13 changed files with 181 additions and 320 deletions
+3 -3
View File
@@ -64,7 +64,8 @@ class ZUtils : public QObject {
// (exact halves when `alignWhenCentered` is true, the rounded half of the
// anchor target when it is false).
Q_INVOKABLE static qreal snap(qreal value, QQuickItem* item);
Q_INVOKABLE static qreal snapCeil(qreal value, QQuickItem* item); // text-derived sizes
Q_INVOKABLE static qreal snapCeil(
qreal value, QQuickItem* item); // text-derived sizes
Q_INVOKABLE static qreal snapFloor(qreal value, QQuickItem* item);
// Logs where an item sits in device pixels and whether it is aligned.
// Returns true if aligned. `tag` is an optional label for the log line.
@@ -72,8 +73,7 @@ class ZUtils : public QObject {
// (whole device size, plus the offset the anchor produces), which is
// detected from the item's anchors and Layout alignment.
Q_INVOKABLE static bool logPlacement(
QQuickItem* item,
const QString& tag = QString());
QQuickItem* item, const QString& tag = QString());
// Walks a stroked curve path (flat x,y pairs in the item's logical coords,
// every point along the curve, not just its defined points) and checks