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

Converting complex bbox coordinates to ViewBox relative points #49

Open
ddurgaprasad opened this issue Apr 6, 2018 · 0 comments
Open

Comments

@ddurgaprasad
Copy link

Hello,
I have an svg with viewbox(0,0,612,792) . bbox on any path elements gives complex numbers .Is there a way to convert them into coordinates with respect to top left corner of viewbox?
Path(Line(start=(790.996+1827j), end=(790.996+1804j)))
I am using path[0].length() to find lines with certain length and replace them with lines across/along the viewbox at same locations.

If line1= x1,y1,x1,y2 then replacement would be x1,y1,x1,612

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

1 participant