24fbd5e2ef
Add command to install 'pan-zoom' to README
2025-06-17 10:16:42 -07:00
8c260d2f5f
Add test commit
2025-06-16 23:25:25 -07:00
d2a670731f
Conjugate scaling operation by translating to the origin
...
https://stackoverflow.com/questions/38446666/scaling-around-a-specific-point-in-2d-coordinate-system
2025-06-16 23:25:25 -07:00
3fa7f02571
Add Jest testing framework
2025-06-16 23:25:25 -07:00
cb22251552
Update .gitignore file
2025-06-16 23:25:25 -07:00
79e5a4995e
Update package.json
2025-06-16 23:25:25 -07:00
1682c719f5
Update README
2025-06-16 23:25:25 -07:00
aa15e21132
Add module to save and restore pan/zoom values on page reload
2025-06-16 23:25:25 -07:00
0e1c2d3919
Add function for panning programmatically
2025-06-16 23:25:25 -07:00
3b505f69b4
Fix formatting in README.md
2025-06-16 23:25:25 -07:00
b449601a6b
Update implementation to account for WebKit bug
...
getScreenCTM() on WebKit does not reflect transformations applied to an ancestor (see bug https://bugs.webkit.org/show_bug.cgi?id=209220 ), so instead of transforming the root <svg> element, we can only transform a child element
2025-06-16 23:25:25 -07:00
e0fbba8fee
Use CSS transformations instead of manipulating the viewBox
2025-06-16 23:25:25 -07:00
9f82c19ed4
Initial commit
2025-06-16 23:25:25 -07:00