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

SVG can't get the size if it doesn't have width/height or viewbox #374

Open
yisibl opened this issue Jul 13, 2022 · 0 comments
Open

SVG can't get the size if it doesn't have width/height or viewbox #374

yisibl opened this issue Jul 13, 2022 · 0 comments

Comments

@yisibl
Copy link

yisibl commented Jul 13, 2022

Thanks for creating this great library, I have a common use case where I can't get the dimensions.

<svg xmlns="http://www.w3.org/2000/svg">
  <rect width="100px" height="50px"/>
</svg>

The actual size of this SVG is 100px * 50px

A mechanism may be needed to obtain the dimensions inherent in the SVG, similar to the browser's SVGGraphicsElement.getBBox() API.

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