4 ms·
It’s worth mentioning here that this works well with D3, and examples are provided on the page. The author says it handles “almost all” of the D3 gallery, whic
by filoeleven 9y ago
It’s worth mentioning here that this works well with D3, and examples are provided on the page.
The author says it handles “almost all” of the D3 gallery, which makes sense because some of those have very fancy zoom behaviors on them. I’ve written a few D3 visualizations, and while I enjoy the flexibility of the framework, the pan and zoom behaviors have always been a little tricky to work with.
Being able to skip all that and instead write
<svg easypz=‘{“applyTransformTo": "svg > *"}’>
to get universal zoom is very helpful!
- michaschwab 9y agoThank you! Yeah that's right. I put up part of the official D3 gallery here, automatically applying EasyPZ: https://demos.easypz.io https://demos.easypz.io In addition, you can get a EasyPZ demo of any visualization posted on GitHub gist / blocks by navigating to demos.easypz.io/[blockid]. Example: https://bl.ocks.org/027e163073864ef2ac4ceb5c2c0bf616/ https://bl.ocks.org/027e163073864ef2ac4ceb5c2c0bf616/ becomes https://demos.easypz.io/027e163073864ef2ac4ceb5c2c0bf616 https://demos.easypz.io/027e163073864ef2ac4ceb5c2c0bf616 with automatic EasyPZ! Try it out on any block you like, and let me know if anything doesn't work that you think should work!