We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Diagram constraint to pan vertical / horizontal with mouse


I was wondering if there is a diagram constraint setting that allows you to pan vertically and horizontally using your mouse (click and drag towards some point).
This is similar to the function of the overview control but I was wondering if it can be achieved using the diagram component only with its constraints

Thanks in advance

Kind regards

1 Reply

RT Ramya Thirugnanam Syncfusion Team May 23, 2019 06:02 AM UTC

Hi Daan,  
Please set DiagramTools as ZoomPan to activate pan tool in diagram. Please refer to an code example, sample and help documentation for your reference.  
Code example:  
<ejs-diagram #diagram id="diagram" width="100%" height="499px"  [tool]='tool' 
public tool: DiagramTools = DiagramTools.ZoomPan;  
Ramya T 

Live Chat Icon For mobile
Up arrow icon