Lines Matching full:wasm
1 A WASM version of Skia's PathOps toolkit.
3 To use the library, run `npm install pathkit-wasm` and then simply include it:
5 <script src="/node_modules/pathkit-wasm/bin/pathkit.js"></script>
7 locateFile: (file) => '/node_modules/pathkit-wasm/bin/'+file,
12 PathKit comes in two parts, a JS loader and the actual WASM code. The JS loader creates
13 a global `PathKitInit` that can be called to load the WASM code. The `locateFile` function
14 is used to tell the JS loader where to find the .wasm file. By default, it will
15 look for /pathkit.wasm, so if this is not the case, use `locateFile` to configure
20 [example.html](https://github.com/google/skia/blob/master/modules/pathkit/npm-wasm/example.html)
26 WebPack's support for WASM is still somewhat experimental, but PathKit can be
31 const PathKitInit = require('pathkit-wasm/bin/pathkit.js')
37 packages only the needed pieces, we have to copy pathkit.wasm into the build directory.
43 { from: 'node_modules/pathkit-wasm/bin/pathkit.wasm' }
49 ERROR in ./node_modules/pathkit-wasm/bin/pathkit.js