ngx-workflow 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/fesm2022/ngx-workflow.mjs +97 -20
- package/fesm2022/ngx-workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-workflow.d.ts +23 -2
- package/types/ngx-workflow.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ A powerful, highly customizable Angular library for building interactive node-ba
|
|
|
36
36
|
|
|
37
37
|
### Built-in UI Components
|
|
38
38
|
- **Search Bar**: Press `Ctrl+F` to search nodes by label/id.
|
|
39
|
-
- **Properties Panel**: Sidebar for editing node properties (auto-shows on selection).
|
|
39
|
+
- **Properties Panel**: Sidebar for editing node and edge properties (auto-shows on selection/double-click).
|
|
40
40
|
- **Context Menu**: Right-click canvas/nodes/edges for actions.
|
|
41
41
|
- **Layout Alignment**: Auto-align selected nodes (if `showLayoutControls` is true).
|
|
42
42
|
- **Minimap**: Navigable overview of complex flows.
|
|
@@ -242,11 +242,14 @@ interface Edge {
|
|
|
242
242
|
sourceHandle?: string; // ID of source handle (optional)
|
|
243
243
|
targetHandle?: string; // ID of target handle (optional)
|
|
244
244
|
label?: string; // Label text displayed on the edge
|
|
245
|
-
type?: 'bezier' | 'straight' | 'step'; // Path type
|
|
246
|
-
animated?: boolean; // Show animation
|
|
245
|
+
type?: 'bezier' | 'straight' | 'step' | 'dashed'; // Path type
|
|
246
|
+
animated?: boolean; // Show animation?
|
|
247
|
+
animationType?: 'flow' | 'dot' | 'both'; // Type of animation
|
|
248
|
+
animationDuration?: string; // CSS duration (e.g., '2s')
|
|
249
|
+
animationStyle?: object; // Style for animation element (e.g., { fill: 'red' })
|
|
247
250
|
markerStart?: string; // Start marker ID (e.g., 'arrow', 'dot')
|
|
248
251
|
markerEnd?: string; // End marker ID
|
|
249
|
-
style?: object; // SVG styles (stroke, stroke-width, etc.)
|
|
252
|
+
style?: object; // SVG styles (stroke, stroke-width, strokeDasharray, etc.)
|
|
250
253
|
}
|
|
251
254
|
```
|
|
252
255
|
|