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

fix(SvgCanvas): allow canvas size modification #928

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

twlite
Copy link
Contributor

@twlite twlite commented Nov 4, 2024

closes #927

@twlite twlite marked this pull request as ready for review November 4, 2024 02:21
@@ -298,7 +298,7 @@ impl Path {
#[napi(js_name = "toSVGString")]
pub fn to_svg_string(&self, env: Env) -> Result<JsString> {
let sk_string = self.inner.to_svg_string();
unsafe { env.create_string_from_c_char(sk_string.ptr, sk_string.length) }
unsafe { env.create_string_from_c_char(sk_string.ptr, sk_string.length as isize) }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't build without this

@Brooooooklyn Brooooooklyn merged commit 15c7eab into Brooooooklyn:main Nov 6, 2024
29 checks passed
@twlite twlite deleted the patch-2 branch November 6, 2024 14:06
@twlite
Copy link
Contributor Author

twlite commented Nov 6, 2024

@Brooooooklyn i'm so sorry there's some issue in this 😓
this is not creating svg context I'll make another pr.

Edit: I have opened a new pr #932

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.

Height setting doesn't work after creating an SvgCanvas
2 participants