Latestv1.0.30
Flow Plugin System
Flow provides a standardized plugin interface (FlowPlugin / PluginManager) for extending capabilities like Minimap, Controls, Grid, Snap, and Export.
Using Plugins
Plugins can be registered using the usePlugin method. Most built-in features have been migrated to the plugin system.
Basic Plugin Usage
Built-in Plugins
| Plugin Name | Factory Function | Description |
|---|---|---|
| Minimap | createMiniMapPlugin(options) | Shows a minimap of the flow chart, supports click-to-pan |
| Controls | createControlsPlugin(options) | Provides a toolbar for zooming, fitting view, and locking |
| Grid | createGridPlugin(options) | Provides dots or grid background styles |
| Snap | createSnapPlugin(options) | Enables node snapping and alignment guide lines |
| Export | createExportPlugin(options) | Provides methods to export the flow as JSON or Image |
Custom Plugins
You can develop custom plugins by implementing the FlowPlugin interface. Plugins can listen to events, modify state, or even provide their own UI components.
Custom Plugin