• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..12-Nov-2020-

npm-asmjs/H03-May-2022-214169

npm-wasm/H03-May-2022-215169

perf/H03-May-2022-

CHANGELOG.mdH A D07-Nov-2020809 3320

MakefileH A D07-Nov-20205.6 KiB146114

README.mdH A D07-Nov-2020847 3119

compile.shH A D07-Nov-20204 KiB13597

package.jsonH A D07-Nov-2020524 2524

pathkit_wasm_bindings.cppH A D07-Nov-202023.7 KiB643439

serve.pyH A D07-Nov-2020508 219

README.md

1PathKit WASM API
2================
3
4This library lets you use Skia's feature-rich PathOps API in the browser.
5
6
7Compiling the source
8--------------------
9
10Download the [Enscriptem SDK](https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html).
11
12Set the EMSDK environment variable to the directory you installed it to.
13
14Run `./compile.sh` to compile a production, WASM build to `$SKIA_HOME/out/pathkit`.
15Add "--help" for more options.
16
17
18Deploying to npm
19----------------
20
21    # Build all 3 versions (release, test, debug) for both asmjs and WASM
22    # These binaries will be placed in the proper places of npm-*/bin
23    # This takes 5-10 minutes.
24    make npm
25
26    # Update the package.json files of both npm-asmjs and npm-wasm
27    make update-patch  # or update-minor or update-major
28
29    # Publish both repos
30    make publish
31