skia2/modules/pathkit
Chris Dalton 999257d870 Convert pathkit's usage of SkPath::Iter to SkPatPriv::RangeIter
Change-Id: If940941a66c1fda508970a73d8433a2d2a292e1c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287894
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2020-05-06 14:26:19 +00:00
..
npm-asmjs [pathkit][canvaskit] roll versions 2019-02-25 21:53:53 +00:00
npm-wasm [pathkit][canvaskit] roll versions 2019-02-25 21:53:53 +00:00
perf [canvaskit] Roll chrome version for testing 2019-10-18 17:37:52 +00:00
tests Fixing a bug in SkOpEdgeBuilder::walk that causes pathOps to fail when cubic segment is reducable 2020-04-21 16:56:54 +00:00
.gitignore [PathKit] Move from experimental to modules 2018-08-31 14:18:16 +00:00
chaining.js [canvaskit] Expand canvas2d API 2018-11-20 18:39:43 +00:00
CHANGELOG.md [canvaskit] Update build script to support latest Emscripten 2020-01-28 15:41:58 +00:00
compile.sh Fix wasm builds 2020-01-28 19:03:49 +00:00
externs.js Add Perf jobs for PathKit 2018-10-12 19:50:04 +00:00
helper.js Add Perf jobs for PathKit 2018-10-12 19:50:04 +00:00
karma.bench.conf.js [canvaskit] Try some things to reduce GPU test flakiness 2019-11-21 20:56:42 +00:00
karma.conf.js [canvaskit] Try some things to reduce GPU test flakiness 2019-11-21 20:56:42 +00:00
Makefile [canvaskit] Update to build with emscripten 1.38.47 2019-10-09 15:08:10 +00:00
package.json Add Correctness tests for CanvasKit 2018-10-16 14:32:28 +00:00
pathkit_wasm_bindings.cpp Convert pathkit's usage of SkPath::Iter to SkPatPriv::RangeIter 2020-05-06 14:26:19 +00:00
README.md [PathKit] Remove experimental- from package names 2018-08-31 15:11:04 +00:00
ready.js [pathkit][canvaskit] roll versions 2019-02-25 21:53:53 +00:00
serve.py [PathKit] Move from experimental to modules 2018-08-31 14:18:16 +00:00

PathKit WASM API

This library lets you use Skia's feature-rich PathOps API in the browser.

Compiling the source

Download the Enscriptem SDK.

Set the EMSDK environment variable to the directory you installed it to.

Run ./compile.sh to compile a production, WASM build to $SKIA_HOME/out/pathkit. Add "--help" for more options.

Deploying to npm

# Build all 3 versions (release, test, debug) for both asmjs and WASM
# These binaries will be placed in the proper places of npm-*/bin
# This takes 5-10 minutes.
make npm

# Update the package.json files of both npm-asmjs and npm-wasm
make update-patch  # or update-minor or update-major

# Publish both repos
make publish