Installation
Install the package using your preferred package manager:Requirements
Peer Dependencies
The package requires React 18 or higher:Browser Requirements
The component works in all modern browsers that support:- HTML5 Canvas 2D API: For rendering the graph
- ES2020+: Modern JavaScript features
- Touch Events: For mobile gesture support (optional)
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
- Mobile browsers (iOS Safari, Chrome Mobile)
Setup
Automatic CSS Injection (Recommended)
The component automatically injects its styles at runtime - no additional setup needed!The CSS is embedded in the JavaScript bundle and injected only once, even if you use multiple graph components.
Manual CSS Import (Alternative)
If you prefer to import CSS manually through your bundler:Verification
Verify the installation by importing the component and types:Universal Bundler Support
The package works with all modern bundlers:- Vite: ✅ Works out of the box
- webpack: ✅ Works out of the box
- Next.js: ✅ Supports both App Router and Pages Router
- Turbopack: ✅ Fully compatible
- Parcel: ✅ Works out of the box