vtracer
vtracer copied to clipboard
Standalone Javascript module?
Are you planning to bundle or release a standalone Javascript module that can be included directly in the browser?
Well I could not figure out how to actually ship a wasm module in npm, I'd do so if there is a standardized method. Otherwise, for now, you can simply use the binary in docs.
Sorry for the late response, I had to put my experiments with vtracer on hold.
I was able to create a build using wasm-pack build --target web
which is currently hosted in a gist. I'm also in the process of porting the demo to Observable and plan to document any perceived shortcomings in the API (e.g. reliance on IDs instead of passing in Element
objects, errors due to parallel lines etc). Will keep you posted once I get a chance to continue work.
Nice! Yes it is actually quite easy if you install the Rust toolchain
https://github.com/ssssota/svg2png-wasm is also using wasm-pack to publish rust module as npm package. Check it out if you are intending to do so.
Thanks for the suggestion. The project looks interesting indeed.