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

Fix SVG size retrieval logic #1188

Merged
merged 1 commit into from
Dec 31, 2024
Merged

Fix SVG size retrieval logic #1188

merged 1 commit into from
Dec 31, 2024

Conversation

nighca
Copy link
Collaborator

@nighca nighca commented Dec 31, 2024

In follow-up to #1186.

spx uses value of attribute width & height when attribute viewBox lacks a valid value. Details can be found at https://github.com/qiniu/oksvg/blob/917f53935572252ba3da8909ca4fbedec418bde1/svgd.go#L1015-L1049

We are replicating this logic for consistency.

Copy link

qiniu-prow bot commented Dec 31, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@nighca nighca marked this pull request as ready for review December 31, 2024 03:47
@qiniu-ci
Copy link

This PR has been deployed to the preview environment. You can explore it using the preview URL.

Warning

Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team.

@nighca nighca merged commit d5d5f13 into goplus:dev Dec 31, 2024
4 checks passed
@nighca nighca mentioned this pull request Jan 9, 2025
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

Successfully merging this pull request may close these issues.

None yet

3 participants