You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<DragerclassName="drager-element"style={{width: '200px',height: '150px'}}rotatablescalablerotation={45}minScale={0.5}maxScale={2}onRotate={angle=>console.log('rotated to:',angle)}onScale={scale=>console.log('scaled to:',scale)}>
Rotatable and scalable
</Drager>
With Connections
<Dragerid="drager1"className="drager-element"style={{width: '200px',height: '150px'}}connectableonConnect={(connection)=>{console.log('Connected:',connection)}}>
Connectable element
</Drager>
With Position Limits
<DragerclassName="drager-element"style={{width: '200px',height: '150px'}}limit={{minX: 0,maxX: 500,minY: 0,maxY: 500}}showGuidessnapToElementssnapThreshold={10}>
Element with movement constraints
</Drager>
🔨 Development
# Install dependencies
bun install
# Start development
bun dev
# Build package
bun build
🤝 Contributing
We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.