Foblex Flow
Introduction
Overview
Nodes
Custom Nodes
Drag Handle
Node Selection
Resize Handle
Rotate Handle
Grouping
Updated
Drag to Group
Updated
Stress Test
Stress Test with Connections
Connectors
Node as Connector
Connector Inside Node
Connector Outlet
Limiting Connections
Connection Rules
New
Connectable Side
Updated
Connections
Drag to Connect
Drag to Reassign
Updated
Create Node on Connection Drop
Remove Connection on Drop
Assign Node to Connection on Drop
Auto Snap
Connection Types (Straight, Segment, Bezier, Adaptive Curve)
Updated
Custom Connection Type
Connection Behaviours
Connection Markers
Connection Text
Deprecated
Connection Center
Deprecated
Connection Content
New
Custom Connections
Connection Connectable Side
New
Extensions
Add Node from Palette
Selection Area
Help in Positioning
Grid System
Minimap
Zoom
Background
Updated
Advanced
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
Pro Examples
Visual Programming
DB Management
UML Diagram
Tournament Bracket
Foblex Flow

Background

Description

The background feature allows you to render an SVG pattern underneath all nodes and connections on the canvas.
It is useful for creating grids, subtle textures, or branded backgrounds that stay fixed while the user interacts with the flow.

To enable a background, place the f-background component inside the f-flow component.
The f-background component is responsible for defining and attaching the SVG pattern that will be used as the canvas background.

Backgrounds can work in three modes:

  • rect – built-in rectangular pattern (useful for grid-like backgrounds);
  • circle – built-in circular pattern;
  • custom – a mode that lets you provide your own SVG pattern, so you can build complex or branded backgrounds (multiple patterns, custom shapes, textures, etc.).

The custom mode is configured via standard SVG <pattern> elements and a custom component.
Detailed instructions and API for creating custom patterns are described in the f-background documentation.

Example

The example below shows how to:

  • wrap f-canvas with f-flow;
  • add f-background to enable a background;
  • switch between the built-in rect and circle patterns;
  • use the new custom mode with a custom background implementation.

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

Edit this page on GitHub
In this article