• Home
Name Date Size #Lines LOC

..--

npm-asmjs/06-Mar-2025-587477

npm-wasm/06-Mar-2025-588477

perf/06-Mar-2025-705568

tests/06-Mar-2025-30,45730,243

.gitignoreD06-Mar-202538 33

CHANGELOG.mdD06-Mar-20251 KiB4327

MakefileD06-Mar-20255.6 KiB146112

README.mdD06-Mar-2025847 3119

chaining.jsD06-Mar-20256.1 KiB188132

compile.shD06-Mar-20253.8 KiB12991

externs.jsD06-Mar-20254.5 KiB15078

helper.jsD06-Mar-20253.7 KiB10960

karma.bench.conf.jsD06-Mar-20252.9 KiB9755

karma.conf.jsD06-Mar-20253 KiB9957

package-lock.jsonD06-Mar-202571.5 KiB1,9081,907

package.jsonD06-Mar-2025502 2322

pathkit_wasm_bindings.cppD06-Mar-202523.4 KiB630428

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