Selector: f-auto-pan
Class: FAutoPanComponent
FAutoPanComponent adds edge-based viewport scrolling to supported drag sessions inside f-flow.
Use f-auto-pan when dragged items or targets can move outside the visible viewport and users should be able to continue the same drag session without manually panning first.
Typical use cases:
If your flow always fits on screen, this plugin may be unnecessary.
The component registers itself as a flow plugin. During supported drag sessions, the drag runtime checks whether the pointer is inside the configured edge threshold. If it is, the canvas is panned with requestAnimationFrame while the active drag handler keeps receiving move updates.
fEdgeThreshold: number; Default: 20. Edge activation zone in viewport pixels.fSpeed: number; Default: 8. Maximum per-frame canvas delta in viewport pixels.fAcceleration: boolean; Default: false. When enabled, speed scales linearly as the pointer approaches the edge..f-component Base class for flow primitives..f-auto-pan Host class for the plugin element.fDraggable on the parent f-flow.<f-auto-pan />.drag-node, create-connection, reassign-connection, and selection-area.fEdgeThreshold and fSpeed are measured in viewport pixels, not in flow coordinates.[example.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/auto-pan/example.html [example.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/auto-pan/example.ts [example.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/auto-pan/example.scss