How kaliedarik/scrawl-canvas works
Main Components
a) Core System Components:
• Core Module System
• Animation Loop
• Cycle
• Event Handling
• User Interaction
• Library Management
• Snippets System
b) Factory System:
• Element Factories
• Animation Factories
• Pattern & Gradient Factories
• Particle System Factories
c) Asset Management System:
• Image Assets
• Video Assets
• Sprite Assets
• Noise Assets
• Raw Assets
d) Mixin System:
• Base Mixins
• Asset Mixins
• DOM Mixins
• Animation Mixins
[User Application]
• ↓
[Scrawl-canvas API Layer]
• ↓
┌─────────────────────────────────────┐
• Core System │
• ┬──────────┬───────────┤
• Animation │ Display │ Event │
• Loop │ Cycle │ Handling │
• ┴──────────┴───────────┘
• ↓ ↓ ↓
┌─────────────────────────────────────┐
• Factory System │
• ┬─────────────┬────────────┤
• Patterns │ Particles │ Gradients │
• ┴─────────────┴────────────┘
• ↓ ↓ ↓
┌─────────────────────────────────────┐
• Asset Management System │
• ┬─────────────┬────────────┤
• Images │ Videos │ Sprites │
• Noise │ Raw │ │
• ┴─────────────┴────────────┘
• ↓ ↓ ↓
┌─────────────────────────────────────┐
• Mixin System │
• ┬─────────────┬────────────┤
• DOM │ Animation │ │
• ┴─────────────┴────────────┘
• ↓ ↓ ↓
[HTML5 Canvas Element]
Additional Elements
• Documentation generation flow
• TypeScript support indication
• Testing and Demo system relationship
Important Notes
• Modular nature of the system
• Accessibility and responsiveness features
• Event handling and user interaction flows
• Relationship with the DOM and canvas API