React Diagram - Zooming and Panning

Pan, Zoom, and Fit Diagrams to View

Try Our Live Demo

Explore React Diagram zooming and panning features

Navigate large diagram canvases with zoom, pan, reset, and fit-to-page controls. Bring specific content into view or move it to the viewport center, and use the Overview component to navigate distant regions while maintaining context.

React Diagram zoom-in, zoom-out, and reset controls

Zoom in, zoom out, and reset the view

Zoom in to inspect details, zoom out to view a broader area, and reset the view to restore its default zoom and position. Zoom controls are suitable for examining specific elements, reviewing surrounding context, and returning to the initial diagram view.

React Diagram panning across a large canvas

Pan across the canvas

Pan across the diagram canvas while keeping the current zoom level unchanged. Canvas panning is suitable for navigating large diagrams, following connections, and moving between areas that extend beyond the viewport.

React Diagram fitting content within the viewport

Fit diagram content to the viewport

Fit-to-page navigation adjusts the zoom level so the diagram content fits within the available viewport. Full-view navigation is suitable for reviewing the overall structure of wide, tall, or detailed diagrams after zooming or panning.

React Diagram bringing specific content into view

Bring specific content into view

Bring a specific diagram region into the viewport without manually searching or panning across the canvas. Applications can identify a diagram element or known area and reveal it quickly, making important content easier to find. Use this option when users need to navigate directly to a particular part of a large diagram.

React Diagram bringing specific content to the viewport center

Bring specific content to the center

Move a specific diagram region to the center of the viewport for focused review. Applications can identify an element or known area and position it centrally, making the content easier to inspect or present. Use this option when a diagram area must be highlighted during a review, presentation, or discussion.

React Diagram Overview component for large-canvas navigation

The Overview component displays a miniature version of the full diagram with an indicator for the current viewport. Overview navigation is suitable for large diagrams that span multiple regions and require movement between distant areas while preserving spatial context.

See Why Developers Love Syncfusion

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time. Here are some of their experiences.

Frequently Asked Questions

React Diagram supports zooming and panning for detailed inspection and navigation beyond the visible viewport. Navigation controls enable exploration of large diagrams, examination of detailed content, and restoration of an overall view.

Yes. Fit-to-page navigation adjusts the zoom level to display all diagram content within the available viewport. A complete viewport restores the overall view of wide, tall, or detailed layouts.

Yes. React Diagram can bring a specific content region into view or move it to the center of the viewport. Applications can identify an element or known area and navigate directly to that part of the diagram.

Yes. Reset returns the diagram’s zoom level and scroll position to their default values. Original diagram visibility becomes available without manual zooming or panning adjustments.

The Overview component displays a miniature representation of the full diagram and highlights the current viewport. Navigation between diagram regions becomes easier while maintaining awareness of the current position within the overall layout.

Resources

Learn more about our React Diagram

Explore demos, knowledge base articles, and documentation to get the most out of the Diagram.

Documentation

Explore guides, APIs, and quick-start tips

Example demos

See live use cases in action

Community forum

Ask, share, and connect with peers

Knowledge base articles

Find solutions and best practices fast

Contact support

Get expert help when needed

Feature requests and bug reports

Track issues and suggest improvements

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon
Syncfusion Feedback