How jwmcglynn/donner works
Main Components
a. Core Components:
• SVG Parser System
• CSS Parser System
• DOM Tree Management (ECS-based)
• Rendering Pipeline
• Resource Management
• Component Systems (Layout, Paint, Filter, etc.)
b. External Dependencies:
• Skia Rendering Engine
• EnTT (ECS Framework)
• Third-party utilities
Architectural Layers (from top to bottom)
Layer 1: Public API
• SVGDocument Interface
• Element Manipulation API
• Rendering Interface
Layer 2: Document Management
• ECS Registry
• Component Systems
• DOM Tree Management
Layer 3: Processing Systems
• Parser Systems (SVG/CSS)
• Layout System
• Paint System
• Resource Management
Layer 4: Rendering
• Skia Integration
• Rendering Pipeline
• Output Management
Key Relationships
• Data flow between parser and DOM tree
• Component system interactions
• Rendering pipeline stages
• Resource loading and caching paths
• Error handling flows
Specific Implementation Details
donner/
• base/ (Core utilities and basic types)
• css/ (CSS parsing and handling)
• svg/ (SVG element implementation)
• renderer/ (Rendering pipeline)
Special Features
• Security-first architecture
• CSS3 parsing and cascading
• Two-phase rendering system
• ECS-based document tree
• Validation and diagnostics system
Additional Elements
• Version information and supported feature indicators
• Error handling paths
• Async vs. sync operations
• Security boundaries
Implementation Notes
• Numbered sequence indicators for multi-step processes
• Caching mechanisms with appropriate symbols