This guide shows how to zoom in and zoom out of the canvas using:
To enable zooming, add the fZoom directive to the f-canvas.
Zoom is a core interaction for any serious node editor. It helps users move from a high-level overview to fine-grained editing without losing orientation on large canvases.
It becomes even more important when the editor supports minimaps, large graphs, or touch-friendly interactions on trackpads and tablets. Good zoom behavior is one of the easiest ways to improve perceived editor quality.
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/zoom/zoom.component.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/zoom/zoom.component.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/zoom/zoom.component.scss [common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/_flow-common.scss