mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
* feat(free-container-plugin): add sub-canvas background support with inversify - Add inversify dependency injection support for sub-canvas background - Use useService to get BackgroundConfig from IoC container - Support all background options: backgroundColor, dotColor, dotSize, etc. - Add graceful fallback when BackgroundConfig is not registered - Generate unique SVG pattern IDs to avoid conflicts - Remove hardcoded background color from styles - Add @flowgram.ai/background-plugin dependency The sub-canvas now automatically inherits background configuration from the main canvas. * feat(background-plugin): export BackgroundConfig and bind to IoC container - Export BackgroundConfig symbol for use by other plugins - Add onBind method to register BackgroundConfig in IoC container - Enable dependency injection pattern for background configuration access This allows sub-canvas components to access background configuration through inversify container. * chore: update pnpm-lock.yaml after adding background-plugin dependency - Update lock file to include @flowgram.ai/background-plugin dependency - Ensures consistent dependency versions across environments --------- Co-authored-by: husky-dot <xiaozhi@172-0-8-36.lightspeed.rcsntx.sbcglobal.net>