kleisauke / wasm-vips

libvips for the browser and Node.js, compiled to WebAssembly with Emscripten.
https://kleisauke.github.io/wasm-vips/
MIT License
463 stars 25 forks source link

Playground: Add UI for dynamic modules #42

Closed atjn closed 1 year ago

atjn commented 1 year ago

Adds controls to the playground which allow you to enable/disable the dynamic modules. Builds on the work done in 5f2af119c1400f46102af9498d69deceed23200a.

image

I was trying to test the new SVG support, and it took me a few hours to figure out why it didn't work. This UI would have saved me a lot of time 😅

It's a little rough around the edges, but I think it's fine at least as a v1. LMK if there is something you really want me to fix before merging. Another note: I was not able to import dynamicModules from samples.js in playground-runner.html, so I have manually copied part of the object into the file. It isn't a great solution, but it isn't worse than the existing one.

atjn commented 1 year ago

The test errors seem unrelated to the changes in this PR. Not sure what's going on there :eyes: