-
feat(free-container-plugin): 添加子画布背景支持,使用inversify依赖注入 (#420)
发布于
2025-06-27 06:34:44 +00: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
下载附件