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

SVGLoader - Transforms don't apply to styles of a path #30268

Open
JoelBrenstrum opened this issue Jan 6, 2025 · 0 comments
Open

SVGLoader - Transforms don't apply to styles of a path #30268

JoelBrenstrum opened this issue Jan 6, 2025 · 0 comments
Labels

Comments

@JoelBrenstrum
Copy link

Description

When a path is scaled down with a transform the SVGLoader doesnt also scale the styles such as stroke-width

Reproduction steps

svg

Take this svg and load it into the webgl_loader_svg example

it should appear like
Screenshot 2025-01-06 at 4 25 49 PM

But actually appears like
Screenshot 2025-01-06 at 4 25 39 PM

As you can see the circle on the left is too thick

Code

Save the first svg from the repro steps into models/svg/svg.svg
add 'svg': 'models/svg/svg.svg' into the webgl_loader_svg example file

Live example

N/A

Screenshots

No response

Version

0.152.2

Device

No response

Browser

Chrome

OS

MacOS

@Mugen87 Mugen87 added the Loaders label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants