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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Diagram constraint to pan vertical / horizontal with mouse

Thread ID:

Created:

Updated:

Platform:

Replies:

144788 May 22,2019 03:02 PM UTC May 23,2019 06:02 AM UTC Angular - EJ 2 1
loading
Tags: Diagram
davaro
Asked On May 22, 2019 03:02 PM UTC

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

Ramya Thirugnanam [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon