infra wasm: up-to-date wasm build

This commit is contained in:
Hermet Park 2023-07-29 16:21:50 +09:00 committed by Hermet Park
parent 816f179c74
commit 5325ebcba5
2 changed files with 3 additions and 3 deletions

View file

@ -144,7 +144,7 @@ public:
mErrorMsg = "None";
auto saver = tvg::Saver::gen();
auto duplicate = tvg::Cast<tvg::Picture>(mPicture->duplicate());
auto duplicate = tvg::cast<tvg::Picture>(mPicture->duplicate());
if (!saver || !duplicate) {
mErrorMsg = "Saving initialization failed";
return false;
@ -180,7 +180,7 @@ public:
Array<const Paint *> parents;
const Paint* paint = findPaintById(mPicture, paintId, &parents);
if (!paint) return val(typed_memory_view<float>(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)

View file

@ -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