stevenpetryk / mafs

React components for interactive math
https://mafs.dev
MIT License
3.24k stars 90 forks source link

Add support for zooming #103

Closed stevenpetryk closed 1 year ago

stevenpetryk commented 1 year ago

Closes #98.

Allows zooming via:

This introduces a new matrix into Mafs' pile of matrices, camera, which is used to transform (xMin, yMin) and (xMax, yMax). This counterintuitively means that translations and scaling are reversed—if camera has a scale of 2, that's equivalent to being "zoomed 0.5x".

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
mafs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 25, 2023 at 5:57AM (UTC)