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

Hello,

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
Daan

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:  
App.component.html  
   
<ejs-diagram #diagram id="diagram" width="100%" height="499px"  [tool]='tool' 
            </ejs-diagram>  
 
 
App.component.ts  
public tool: DiagramTools = DiagramTools.ZoomPan;  
 
 
 
 
Regards,  
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon