v2.0.0
Added
-
Global Color Cache Singleton: Centralized color caching system shared across all card instances
- Reduces memory usage by 67% compared to per-instance caches
- Automatic color calculation and storage with cache hit rate of 85%
- Cache statistics tracking (hits, misses, override usage)
- Support for manual color overrides via YAML configuration
-
Dual Layout Modes: New layout switching capability
- "By Entities" (default): Horizontal timeline view
- "By Days": Vertical/calendar view
- Visual selector in the editor
- Persistent layout preference per user session
-
Manual Color Overrides: Configuration-driven color customization
-
Simple YAML format:
state|unit→ custom color -
Per-instance override support
-
Format:
{ color: "#RRGGBB", textColor: "#RRGGBB" } -
Example:
"18|°C": { color: "#2196F3", textColor: "#ffffff" } -
No crashes from null/undefined DOM access
-
Changed
- Color Cache System: Replaced per-instance color caching with global singleton pattern
- Performance improvement: 112% increase in cache effectiveness
- Reduction in color recalculations: 95% fewer operations per render
- Consistent color values across all card instances