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

Rendering issue when compiling document to a SVG #2

Open
T1mVo opened this issue Apr 9, 2024 · 0 comments
Open

Rendering issue when compiling document to a SVG #2

T1mVo opened this issue Apr 9, 2024 · 0 comments

Comments

@T1mVo
Copy link

T1mVo commented Apr 9, 2024

While using the shadow-box with Typst Preview, I noticed that the shadow SVG does not render correctly. The original issue can be found here.

SVG:
image

PDF:
image

@Enter-tainer figured out that stdDeviation expects a number, e.g., 5 5, and not 5pt 5pt.

This might be fixed by converting blur.x and blur.y to a float with .pt() when assigning to blur-x and blur-y?!

// ...
let opts = (blur-x: blur.x.pt(), blur-y: blur.y.pt(), radius: radius)
// ...
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