flowgram.ai/CHANGELOG.md
小智 02e48ebdd9
feat(core): add flowing field to LineColor interface (#370)
Co-authored-by: husky-dot <xiaozhi@xiaozhideMacBook-Pro.local>
2025-06-12 11:18:12 +00:00

1.0 KiB

Changelog

[Unreleased]

Added

  • Add flowing field to LineColor interface for configuring flowing line colors
    • Added flowing: string field to LineColor interface
    • Added LineColors.FLOWING enum value with default color
    • Updated WorkflowLinesManager.getLineColor() to support flowing state
    • Updated demo configurations to include flowing color examples
    • Added comprehensive test coverage for flowing line functionality

Features

  • Lines can now be colored differently when in flowing state (e.g., during workflow execution)
  • Priority order: hidden > error > highlight > drawing > hovered > selected > flowing > default
  • Backward compatible with existing line color configurations

Demo Updates

  • Updated apps/demo-free-layout to include flowing color configuration
  • Added CSS variable support: var(--g-workflow-line-color-flowing,#4d53e8)

Tests

  • Added test cases for flowing line color functionality
  • Verified priority ordering with other line states
  • Ensured backward compatibility