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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dynamic SVG size #2

Merged
merged 2 commits into from Feb 9, 2022
Merged

feat: dynamic SVG size #2

merged 2 commits into from Feb 9, 2022

Conversation

mattrothenberg
Copy link
Owner

We need to recalculate the width, height, and viewBox of the SVG anytime a user changes an inner property (such as tick length, arc strokeWidth, etc.)

This PR adds a private, imperative API for doing so. Unclear whether it impacts perf too badly 馃し

@github-actions
Copy link

github-actions bot commented Feb 9, 2022

size-limit report 馃摝

Path Size
dist/use-gauge.cjs.production.min.js 1.36 KB (+24.65% 馃敽)
dist/use-gauge.esm.js 1.3 KB (+25.85% 馃敽)

@mattrothenberg mattrothenberg merged commit bc0b1ab into main Feb 9, 2022
@mattrothenberg mattrothenberg deleted the mr/dynamic-svg-size branch February 9, 2022 13:15
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

1 participant