zeronote
react-svg-pan-zoom
zeronote | react-svg-pan-zoom | |
---|---|---|
5 | 3 | |
82 | 675 | |
- | - | |
5.5 | 0.0 | |
about 1 year ago | about 1 year ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zeronote
react-svg-pan-zoom
-
Skill Tree Update 4/11/2022
One of the goals of this week was to add statefulness to the skill tree app. Fortunately, pan and zoom works perfectly fine out of the box. Event listeners for keyboard shortcuts were actually pretty easy to add. One portion that I struggled with was experimenting with PUT, PATCH, and POST methods using RTK Query on the frontend. Despite understanding how it all works, there's that nagging feeling in the back my head that's like, there's no way this is going to work. But it did work. I have CRUD functionality now!
-
I wasted two days jerry-rigging a package when the solution was one search away
At first, I was going to use react-indiana-drag-scroll to solve the first problem. And it worked. But I had a feeling that there might be a solution that solved both of these problems at the same time. Searching on libhunt, openbase, and duckduckgo, I found out that this problem is actually very old and the term that better fit my problem was "pan and zoom". Searching with this term, I stumbled upon react-pan-and-zoom-hoc, which helped solve my problem, but it was difficult to fidget with because rather than having a simple component, the component spit out the correct x, y axes translation that would need to be worked into the component's CSS. No bueno. I attempted to jerry-rig this package for two days before giving up and switching to react-svg-pan-zoom, which worked pretty much instantly and was exactly what I needed.
-
What components are you most afraid of building?
Any components that require zoom & pan. I've tried rolling my own for an SVG application but handling the screen-view matrices was too difficult ._. Went with a library instead (https://www.npmjs.com/package/react-svg-pan-zoom).
What are some alternatives?
paintz - A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
react-image-lightbox - React lightbox component
react-photo-gallery - React Photo Gallery
react-compare-image - React component to compare two images with a slider
react-images - 🌄 A mobile-friendly, highly customizable, carousel component for displaying media in ReactJS
react-imgix - React component to display imgix images
react-lightgallery - React wrapper for lightgallery.js
react-image-gallery - React carousel image gallery component with thumbnail support 🖼
react-intense - A React component for viewing large images up close 🔍
react-instagram-zoom-slider - 🌄↔️ A slider component with pinch to zoom capabilities inspired by Instagram
react-hexgrid - Build interactive hexagon grids with React
react-photo-album - Responsive photo gallery component for React