How daybrush/moveable works
Main Components Structure
a) Core Layer
• Main event management system
• Base transformation calculations engine
• Gesture detection system
b) Framework Adapters Layer
• Connections to all supported frameworks:
• React
• Preact
• Angular
• Vue (2 & 3)
• Svelte
• Lit
• Vanilla JS
c) Features Layer
• Main features into logical sections:
• Transform Operations (Drag, Resize, Scale, Rotate)
• Advanced Transformations (Warp, Pinch)
• Grouping Features (Group, Individual)
• Helper Features (Snap, Guidelines)
• UI Features (Controls, Handles)
Component Relationships
[Core Engine] → [Event System] → [Framework Adapters]
• ↓
• [Feature Modules]
• ↓
• [DOM Manipulation Layer]
Detailed Components
Specific components:
Core:
• MoveableManager
• EventManager
• GestoManager
• TransformManager
Features:
• Draggable
• Resizable
• Scalable
• Rotatable
• Warpable
• Pinchable
• Groupable
• Snappable
Integration Points
Integration points for:
• External event systems
• DOM manipulation
• Framework-specific bindings
• Custom feature plugins
Technical Details
Annotations for:
• TypeScript interfaces
• Event system architecture
• Framework binding mechanisms
• DOM update strategy
• Performance optimization points