DioxusLabs / DioxusLabs/taffy

Is it possible to get a node layout relative to the root node?

Open
#660 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
3.6k
Forks
222
Avg merge
10h 41m
Merged PRs (30d)
40

Description

Hi I have a question about using this library, in my application I need random access to any node's layout relative to a root node. It seems that the `TaffyTree::layout()` method only gives you the layout relative to the parent node. Is it possible to do a second pass to resolve all layouts relative to a root node or something like that? Will I have to roll my own tree using the low level API to do this?

Thanks

Contributor guide

Open the contributing guide

Research direction

Start with the TaffyTree::layout() API and the low-level API mentioned in the issue, then inspect how layout coordinates are represented relative to parent nodes. Determine whether a root-relative second pass is supported or would require a new API; done means a clear supported approach or a scoped API change with accompanying tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.