diff --git a/src/wasm/thorvgwasm.cpp b/src/wasm/thorvgwasm.cpp index 74568e6c..8634abc5 100644 --- a/src/wasm/thorvgwasm.cpp +++ b/src/wasm/thorvgwasm.cpp @@ -144,7 +144,7 @@ public: mErrorMsg = "None"; auto saver = tvg::Saver::gen(); - auto duplicate = tvg::Cast(mPicture->duplicate()); + auto duplicate = tvg::cast(mPicture->duplicate()); if (!saver || !duplicate) { mErrorMsg = "Saving initialization failed"; return false; @@ -180,7 +180,7 @@ public: Array parents; const Paint* paint = findPaintById(mPicture, paintId, &parents); if (!paint) return val(typed_memory_view(0, nullptr)); - paint->bounds(&mBounds[0], &mBounds[1], &mBounds[2], &mBounds[3]); + paint->bounds(&mBounds[0], &mBounds[1], &mBounds[2], &mBounds[3], false); float points[8] = { //clockwise points mBounds[0], mBounds[1], //(x1, y1) diff --git a/wasm_build.sh b/wasm_build.sh index 424e4757..e77d5ea4 100755 --- a/wasm_build.sh +++ b/wasm_build.sh @@ -8,7 +8,7 @@ fi if [ ! -d "./builddir_wasm" ]; then sed "s|EMSDK:|$1|g" wasm_cross.txt > /tmp/.wasm_cross.txt - meson -Db_lto=true -Ddefault_library=static -Dstatic=true -Dloaders=all -Dsavers=tvg -Dvector=false -Dlog=true --cross-file /tmp/.wasm_cross.txt builddir_wasm + meson -Db_lto=true -Ddefault_library=static -Dstatic=true -Dloaders="all, lottie_beta" -Dsavers="all" -Dlog=true --cross-file /tmp/.wasm_cross.txt builddir_wasm cp ./test/wasm/wasm_test.html builddir_wasm/src/index.html fi