Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-202438

chaining.jsH A D25-Oct-20246.1 KiB

CHANGELOG.mdH A D25-Oct-20241 KiB

compile.shH A D25-Oct-20243.8 KiB

externs.jsH A D25-Oct-20244.5 KiB

helper.jsH A D25-Oct-20243.7 KiB

karma.bench.conf.jsH A D25-Oct-20242.9 KiB

karma.conf.jsH A D25-Oct-20243 KiB

MakefileH A D25-Oct-20245.6 KiB

npm-asmjs/H25-Oct-20244 KiB

npm-wasm/H25-Oct-20244 KiB

package-lock.jsonH A D25-Oct-202471.5 KiB

package.jsonH A D25-Oct-2024502

pathkit_wasm_bindings.cppH A D25-Oct-202423.4 KiB

perf/H25-Oct-20244 KiB

README.mdH A D25-Oct-2024847

tests/H25-Oct-20244 KiB

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