Foblex Flow
Introduction
Overview
Nodes
Custom Nodes
Drag Handle
Node Selection
Resize Handle
Rotate Handle
Grouping
Drag to Group
Connectors
Node as Connector
Connector Inside Node
Connector Outlet
Limiting Connections
Connection Rules
Connectable Side
Updated
Connections
Drag to Connect
Drag to Reassign
Create Node on Connection Drop
Remove Connection on Drop
Assign Node to Connection on Drop
Auto Snap
Connection Types (Straight, Segment, Bezier, Adaptive Curve)
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Content
New
Connection Waypoints
New
Connection Gradients
Updated
Connection Connectable Side
New
Extensions
Auto Pan
New
Add Node from Palette
Selection Area
Help in Positioning (Legacy)
Deprecated
Magnetic Lines
New
Magnetic Rects
New
Grid System
Minimap
Zoom
Updated
Background
Updated
Advanced
Large Scene Performance
Updated
Connection Redraw Performance
Updated
Cut/Copy/Paste
New
Undo/Redo
Undo/Redo V2
New
Dagre Layout (Directed Graph)
ELKJS Layout (Directed Graph)
Drag Start/End Events
Custom Event Triggers
Reference Apps
AI Low-Code Platform
New
DB Management
UML Diagram
Tournament Bracket
Foblex Flow

Auto Pan

Description

This example shows how to keep drag interactions moving when the pointer reaches the edge of f-flow. Instead of forcing users to drop, pan manually, and start over, the viewport continues to scroll while the drag session stays active.

The demo enables auto-pan through <f-auto-pan /> and combines the supported drag kinds in one place: connection creation, connection reassignment, node dragging, and selection area.

Example

[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/auto-pan/auto-pan.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/auto-pan/auto-pan.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/auto-pan/auto-pan.scss

What to try

  • Drag the source node connector toward the off-screen input.
  • Reassign the existing connection to the far target.
  • Drag the lower node and keep the pointer near the right edge.
  • Hold Shift and extend the selection rectangle until it reaches the off-screen node.
  • Toggle <f-auto-pan /> on and off with the checkbox in the toolbar.
  • Adjust fEdgeThreshold, fSpeed, and fAcceleration in the toolbar.

Related docs

Edit this page on GitHub