Set center

Summary

Sets the React Flow viewport center to the specified x and y coordinates.

Action fields

Specify the target coordinates for the viewport center.

Name
Type
Summary

number

The x-coordinate to center the viewport on.

number

The y-coordinate to center the viewport on.


Action fields

Specify the target coordinates for the viewport center.

X position

Type: number

The x-coordinate to center the viewport on.


Y position

Type: number

The y-coordinate to center the viewport on.


Last updated