potrace-wasm
v1.0.4
Published
Potrace Porting in Web Assembly
Readme
potrace-wasm
Potrace Porting in Web Assembly.
Example
Usage
Add potrace-wasm dependency
npm install potrace-wasmCall the helper methods
import { loadFromCanvas } from "potrace-wasm";
loadFromCanvas(imgCanvas)
.then(svg => drawSVG(svg))
.catch(err => console.log(err));Build
Install emsdk
Build the wasm and js
./build.shLicense
The GNU General Public License version 2 (GPLv2).
