mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
infra wasm: up-to-date wasm build
This commit is contained in:
parent
816f179c74
commit
5325ebcba5
2 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ public:
|
||||||
mErrorMsg = "None";
|
mErrorMsg = "None";
|
||||||
|
|
||||||
auto saver = tvg::Saver::gen();
|
auto saver = tvg::Saver::gen();
|
||||||
auto duplicate = tvg::Cast<tvg::Picture>(mPicture->duplicate());
|
auto duplicate = tvg::cast<tvg::Picture>(mPicture->duplicate());
|
||||||
if (!saver || !duplicate) {
|
if (!saver || !duplicate) {
|
||||||
mErrorMsg = "Saving initialization failed";
|
mErrorMsg = "Saving initialization failed";
|
||||||
return false;
|
return false;
|
||||||
|
@ -180,7 +180,7 @@ public:
|
||||||
Array<const Paint *> parents;
|
Array<const Paint *> parents;
|
||||||
const Paint* paint = findPaintById(mPicture, paintId, &parents);
|
const Paint* paint = findPaintById(mPicture, paintId, &parents);
|
||||||
if (!paint) return val(typed_memory_view<float>(0, nullptr));
|
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
|
float points[8] = { //clockwise points
|
||||||
mBounds[0], mBounds[1], //(x1, y1)
|
mBounds[0], mBounds[1], //(x1, y1)
|
||||||
|
|
|
@ -8,7 +8,7 @@ fi
|
||||||
|
|
||||||
if [ ! -d "./builddir_wasm" ]; then
|
if [ ! -d "./builddir_wasm" ]; then
|
||||||
sed "s|EMSDK:|$1|g" wasm_cross.txt > /tmp/.wasm_cross.txt
|
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
|
cp ./test/wasm/wasm_test.html builddir_wasm/src/index.html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue