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

Height setting doesn't work after creating an SvgCanvas #927

Closed
deemaagog opened this issue Nov 3, 2024 · 0 comments · Fixed by #928
Closed

Height setting doesn't work after creating an SvgCanvas #927

deemaagog opened this issue Nov 3, 2024 · 0 comments · Fixed by #928

Comments

@deemaagog
Copy link

deemaagog commented Nov 3, 2024

It works for Canvas

const canvas = createCanvas(containerWidth, 0) 
canvas.height = 400 // fine, the height of rendered image is 400

But for SvgCanvas setter does not work

const canvas = createCanvas(containerWidth, 0, SvgExportFlag.ConvertTextToPaths) 
canvas.height = 400 // doesn't work, the height is default 150

Can we add a setter to SvgCanvas to match Canvas api?

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 a pull request may close this issue.

1 participant