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

Fixing SVG viewBox animations #1809

Merged
merged 7 commits into from Dec 5, 2022
Merged

Fixing SVG viewBox animations #1809

merged 7 commits into from Dec 5, 2022

Conversation

mattgperry
Copy link
Collaborator

Fixes #1807

@@ -67,4 +70,9 @@ export class SVGVisualElement extends DOMVisualElement<
): void {
renderSVG(instance, renderState, styleProp, projection)
}

mount(instance: SVGElement) {
this.isSVGTag = instance.tagName.toLowerCase() === "svg"
Copy link
Collaborator

@adamseckel adamseckel Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm on the fence about this suggestion but should we make a helper:

isSVGTag(tag: string): boolean? We do use it in 3 places 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah why not

@mattgperry mattgperry added the automerge Land this PR label Dec 5, 2022
@mergetron mergetron bot merged commit f979393 into main Dec 5, 2022
@mergetron mergetron bot deleted the fix/svg-viewbox branch December 5, 2022 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Land this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] svg viewBox property no longer animates after 7.6.11
2 participants