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.
[example.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/zoom/example.html [example.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/zoom/example.ts [example.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/zoom/example.scss