wasm: intoduce saveTvg via File System API
authorMichal Maciola <m.maciola@samsung.com>
Wed, 25 Aug 2021 12:36:35 +0000 (14:36 +0200)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 30 Aug 2021 00:44:59 +0000 (09:44 +0900)
commit383772f61d9a918e366e801e4f0c7df8895ebb9a
treeb49f373c66780d34f62d07968b1584d782b475b6
parent19493d081fc1f0630228826c839d231af72bfa67
wasm: intoduce saveTvg via File System API

This patch adds saveTvg() function into thorvgwasm.cpp.
Functions saves tvg using File System API.
To enable fs, changed build flag: -s FORCE_FILESYSTEM=1.
Increase in result thorvg-wasm.js size: about 68kB to about 125kB.
src/wasm/thorvgwasm.cpp
wasm_cross.txt