An Interactive SVG Wrapper to view SVG Elements with features including Zoom-in, Zoom-out, and Panning.
- Wrap a single or multiple SVG element(s) within the wrapper component.
- Operations Available: Zoom-in, Zoom-out, and Panning.
- Single SVG Element:
<SVGViewer> <circle cx="50" cy="25" r="20" /> </SVGViewer>
- Multiple SVG Elements:
<SVGViewer> <svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="25" r="20" /> </svg> <svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="55" r="20" fill="grey" /> </svg> </SVGViewer>
- Convert the project into a package.
- React + TypeScript
- D3.js