Skip to content

pkg/query: Introduce value-offset#5651

Merged
brancz merged 1 commit into
mainfrom
value-offset-backend
May 30, 2025
Merged

pkg/query: Introduce value-offset#5651
brancz merged 1 commit into
mainfrom
value-offset-backend

Conversation

@brancz
Copy link
Copy Markdown
Member

@brancz brancz commented May 30, 2025

Value offset allows each frame to be rendered in parallel by the frontend instead of recursively. Value offset determines the X offset, the depth of the frame the Y offset, and the cumulative the width.

This is the last piece missing that will allow the frontend to do this.

Value offset allows each frame to be rendered in parallel by the
frontend instead of recursively. Value offset determines the X offset,
the depth of the frame the Y offset, and the cumulative the width.

This is the last piece missing that will allow the frontend to do this.
@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous Bot commented May 30, 2025

✅ Meticulous spotted 0 visual differences across 426 screens tested: view results.

Meticulous evaluated ~4 hours of user flows against your PR.

Expected differences? Click here. Last updated for commit a4033a6. This comment will update as new commits are pushed.

parent: row,
valueOffset: valueOffset,
})
valueOffset += fb.builderCumulative.Value(cr)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. So the valueOffset is the offset from the other children relative to the parent's cumulative value, right?
I just wanted to verify that we're not passing the pixel from the frontend and performing some x-y axis math in the backend.
This makes sense to me.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct it's the value relative to the total, the frontend can then use that to calculate the position based on the available pixel space

@brancz brancz merged commit 566ad78 into main May 30, 2025
35 checks passed
@brancz brancz deleted the value-offset-backend branch May 30, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants