Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram link is shaking on update. (Read 766 times)
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Diagram link is shaking on update.
Nov 17th, 2022 at 10:20am
Print Post  
Hi, I've noticed that the whole DiagramLink is shaking when I try to update last point of the DiagramLink (https://youtu.be/DhQ3uVMYtGk). Can you explain, maybe I'm doing something wrong?

I create DiagramLink or add control points if it exists in OnMouseDown overridden function.
I update last control point position and use UpdateFromPoints() in OnMouseMove overridden function.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Diagram link is shaking on update.
Reply #1 - Nov 17th, 2022 at 1:16pm
Print Post  
Hi,

Maybe some effect from antialiasing when the origin of link's FrameworkElement changes. Check if it's more stable if you align the points to grid by calling diagram.AlignPointToGrid, or if you align them to pixels by calling Utilities.SnapToDevicePixel(mousePos, diagram.DocumentPlane);

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint