Foblex Flow
Introduction
Overview
Nodes
Custom Nodes
Drag Handle
Updated
Node Selection
Updated
Resize Handle
Rotate Handle
Grouping
Drag to Group
Stress Test
Stress Test with Connections
Connectors
Node as Connector
Connector Inside Node
Connector Outlet
Limiting Connections
Connectability Check
New
Connectable Side
Connections
Drag to Connect
Drag to Reassign
Create Node on Connection Drop
Remove Connection on Drop
Assign Node to Connection on Drop
Updated
Auto Snap
Updated
Connection Types
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Text
New
Connection Center
New
Custom Connections
Extensions
Add Node from Palette
New
Selection Area
Help in Positioning
Grid System
Updated
Minimap
Updated
Zoom
Updated
Background
Advanced
Undo/Redo
Updated
Dagre Layout
ELKJS Layout
Drag Start/End Events
New
Custom Event Triggers
New
Pro Examples
Visual Programming
DB Management
UML Diagram
Tournament Bracket
Foblex Flow

Minimap

Description

This guide shows how to create a minimap that shows the entire canvas and allows you to navigate the canvas by dragging the minimap.

You can set custom class for each node and group in the minimap using fMinimapClass: string | string[]; node property.

The minimap can be wrapped in any container, but it must remain inside the main flow component. This allows you to add action buttons or other UI controls around it. We recommend applying the fDragBlocker directive to any controls in the action panel to prevent unintentional canvas dragging when interacting with those buttons.

Example

[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/minimap-example/minimap-example.component.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/minimap-example/minimap-example.component.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/minimap-example/minimap-example.component.scss [common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/_flow-common.scss