Skip to content

fix: View Hierarchy positioning is relative #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions text/0033-view-hierarchy.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Some remarks on the example:
* `windows`: contains all visible windows, on mobile it's typically just one or two (e.g. if a dialog is open)
* `type`: The fully qualified widget class name, this name may be obfuscated on certain platforms (e.g. Android release builds with proguard enabled)
* `children` nests all child UI widgets, which then builds up the whole UI tree
* Positioning attributes (`x`, `y`, `z`) are relative to the parent window. To enable absolute positioning, the `rendering_system` should contain `absolute`

A typical Android/iOS view hierarchy for a single window consists of around 100-200 objects. Taking the attributes from the example above this generates a raw JSON file with a size of around 50KB. More complex view hierarchies, for example a Unity game, may hold 1000-2000 objects, producing a JSON file of around 500KB.

Expand Down