Skip to content
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

Absolute position #530

Open
Dvisik opened this issue Jun 22, 2022 · 1 comment
Open

Absolute position #530

Dvisik opened this issue Jun 22, 2022 · 1 comment

Comments

@Dvisik
Copy link

Dvisik commented Jun 22, 2022

Hello! I can't find an answer to a simple question.
How I can get the absolute coordinates a center of arc?

model.top.paths.arc.origin - gives me only relative coordinates

@danmarshall
Copy link
Contributor

danmarshall commented Jun 22, 2022

Hello, good question. You'll need to walk your model tree. This will accumulate the nested offsets and give you a final absolute position. Here's an example: https://maker.js.org/docs/model-trees/#Walking%20a%20model%20tree

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

No branches or pull requests

2 participants