Flow Changelog
This document records all important updates for YH-UI Flow component library.
v1.0.0 (2024-03-17)
New Features
1. Node System
BPMN Node Library: Complete BPMN process node support
BpmnStartEvent/BpmnEndEvent- Start/End eventsBpmnTask/BpmnServiceTask/BpmnUserTask- Task nodesBpmnExclusiveGateway- Exclusive gatewayBpmnParallelGateway- Parallel gatewayBpmnInclusiveGateway- Inclusive gateway
AI Workflow Node Library: First Vue flow diagram component with native AI Agent workflow support
AiLlmNode- LLM call nodeAiPromptNode- Prompt engineering nodeAiAgentNode- Agent nodeAiToolNode- Tool call nodeAiConditionNode- Conditional branch nodeAiStartNode/AiEndNode- Start/End nodesAiMemoryNode- Memory storage node
Node Template System: Quickly create business-specific nodes
registerCustomNodeTemplate()- Register custom node templatecreateNodeFromTemplate()- Create node from template- Support default data and size configuration
2. Interaction Enhancements
- Node Resizer: Freely resize nodes
- Node Toolbar: Node operation quick menu
- Smart Alignment Lines: Auto-alignment hints
- Delete Confirmation: Confirm before deletion
- Drag & Drop: Drag nodes from sidebar
3. View & Navigation
- Interactive Minimap: Thumbnail navigation
- Viewport Smooth Transition: Animated view switching
- Teleport: Cross-level node connections
4. Export & Persistence
- Screenshot Export: Support PNG/SVG format
- Data Persistence: JSON format save/restore
- Export Plugin: Complete flow export functionality
5. Layout Algorithms
- Auto Layout (Dagre): Tree/Hierarchical layout
- Layout Animation: Transition effects during layout changes
6. Editor Experience
- Node Edit Panel: Double-click to edit node properties
- Edge Edit Panel: Edit edge style and labels
- AI Node Edit Panel: Dedicated AI node configuration
Architecture Updates
- Pinia State Management: State persistence and cross-component sharing
- Multi-instance Collaboration: Support multiple Flow instances
- SSR Support: Server-side rendering compatibility
- Performance Optimization:
- Graph algorithm optimization (shortest path, cycle detection, topological sort)
- Virtual rendering support
- Performance stress testing validation
Plugin System
Minimap- MinimapControls- Zoom controlsGrid- Grid backgroundSnap- Auto alignmentKeyboard- Keyboard shortcutsExport- Export functionalityLayout- Auto layout
v0.x Versions
Basic Features
- Core flow diagram rendering
- Basic nodes: Input / Output / Custom
- Basic edges: Bezier / Step / Smooth
- Viewport management: Pan/Zoom
- Box selection
- Undo/Redo history
- Custom node/edge rendering
Migration Guide
Upgrade from v0.x
- Update dependency version
- Check node/edge type compatibility
- If using custom renderers, may need to adapt to new APIs
BPMN Node Usage
vue
<script setup lang="ts">
import { registerBpmnNodes } from '@yh-ui/flow'
// Register BPMN nodes
registerBpmnNodes()
</script>
<template>
<yh-flow :nodes="bpmnNodes" :edges="bpmnEdges" />
</template>AI Workflow Node Usage
vue
<script setup lang="ts">
import { registerAiWorkflowNodes } from '@yh-ui/flow'
// Register AI workflow nodes
registerAiWorkflowNodes()
</script>
<template>
<yh-flow :nodes="aiNodes" :edges="aiEdges" />
</template>Roadmap
- [ ] BPMN 2.0 Process Execution Engine
- [ ] Real-time Collaboration (CRDT/WebSocket)
- [ ] React Version Adaptation
- [ ] Mobile Touch Optimization
- [ ] Enhanced Theme System