Skip to content

Commit

Permalink
docs: Added center node or group functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheihuzarevich committed Sep 15, 2024
1 parent 131ae19 commit 01584c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/docs/en/f-canvas-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ The **FCanvasComponent** is an Angular component that serves as a container for

## Methods

- `fitToScreen(toCenter?: IPoint, animated?: boolean): void;` Adjusts the canvas to fit the screen, optionally centering around a specified point and using animation.
- `fitToScreen(toCenter?: IPoint, animated: boolean = true): void;` Adjusts the canvas to fit the screen, optionally centering around a specified point and using animation.

- `oneToOne(): void;` Sets the canvas scale to 1:1, ensuring elements are displayed at actual size with animation.

- `centerGroupOrNode(id: string, animated: boolean = true): void;` Centers the canvas around a group or node with the specified ID, optionally using animation.

## Styles

- `.f-component` A general class applied to all F components for shared styling.
Expand Down

0 comments on commit 01584c1

Please sign in to comment.