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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Node position after rotation

Thread ID:

Created:

Updated:

Platform:

Replies:

110668 Aug 20,2013 07:50 AM UTC Aug 21,2013 05:31 AM UTC WPF 1
loading
Tags: Diagram
Rafal Malesa
Asked On August 20, 2013 07:50 AM UTC

Hi

I'm facing some problems after upgrading my application from Diagram WPF v.10.3.0.43 to 11.2.0.25. I have implemented rotation relative to the given point of the element/node (this point is placed on the one of two ends of the element, I attached screenshot which the element). To achieve that I set the RotateAngle property and the new position (OffsetX, OffsetY) of the node. After upgrading to new version the feature is not working. The rotation of the node causes element displacement. It seems that the new position is the result of some math calculation in the Syncfusion's lib (what kind of calculations?, have I any impact on theese?).

The standard rotation feature (rotation relative to the center of the node) works well. 

Can you please give me some advise how to implement a rotation relative to the point which is not the center of the node.


node_75fa6fe3.zip

Sudhakar C [Syncfusion]
Replied On August 21, 2013 05:31 AM UTC

Hi Rafal,

 

Please find the response for your queries in below.

 

Query

Response

I'm facing some problems after upgrading my application from Diagram WPF v.10.3.0.43 to 11.2.0.25. I have implemented rotation relative to the given point of the element/node (this point is placed on the one of two ends of the element, I attached screenshot which the element). To achieve that I set the RotateAngle property and the new position (OffsetX, OffsetY) of the node. After upgrading to new version the feature is not working. The rotation of the node causes element displacement. It seems that the new position is the result of some math calculation in the Syncfusion's lib (what kind of calculations?, have I any impact on theese?).

By default, we have set the TopLeft position of the Node as Offset X & Offset Y value.

 

Old Behaviour :

 

When we rotate the Node, the TopLeft position of the Node is changed but the Offset X & Y value will not be changed. For example, please refer the attached image.

 

Current Behaviour :

 

When we rotate the Node, the TopLeft position of the Node is changed. So, now the Offset X & Y value of the Node will also be changed to the current TopLeft position. This is a correct behaviour. For more information please refer the attached image and video.

 

Can you please give me some advise how to implement a rotation relative to the point which is not the center of the node.

We have added your requirement “Support to provide the pivot point for rotation” to our features database.

 

Feature Description : If we set the pivot point in Node, then when we try to rotate the Node, the rotation will be based on this pivot point.

 

For the feature updates, please visit our website periodically.

 

 

 

Please let us know if you require further assistance on this.

 

Regards,

 

Sudhakar C



Attachment_3ed51e3f.zip

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.

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

;