How atomiks/tippyjs works
Main Components
a) Core Components:
• Tippy Core Engine
• Popper.js Integration (external dependency)
• Animation System
• Theme System
• Plugin System
• DOM Event Handlers
b) -ons and Extensions:
• Singleton Manager
• Delegate System
• Headless Mode
┌─ Application Layer ─────────────────────┐
• (Consumer Applications) │
• ┤
• Integration Layer │
• ┤
• Core Layer │
• ┘
Component Relationships
a) Core Layer:
• Center the Tippy Core Engine
• It to Popper.js for positioning
• Bidirectional connections to:
• DOM Utils
• Props Manager
• Template Engine
• CSS/Theme Manager
b) Integration Layer:
• Plugin System with connections to:
• AnimateFill
• FollowCursor
• InlinePositioning
• Sticky
• Add-ons with connections to:
• Singleton Manager
• Delegate System
Data Flow
• Event propagation from DOM to Tippy instance
• Positioning calculations through Popper.js
• Theme and animation application flow
• Plugin hook execution flow
Specific Implementation Notes
• The modular nature of the codebase (src/addons, src/plugins)
• The separation of concerns (core logic vs styling)
• The build output flexibility (different bundles)
• The test coverage architecture (unit, integration, visual)