Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link display inconsistencies between diagram and SVG (Read 138 times)
nullable
Full Member
***
Offline


I Love MindFusion!

Posts: 118
Joined: Aug 25th, 2022
Link display inconsistencies between diagram and SVG
Jan 21st, 2025 at 1:48pm
Print Post  
Hello, MindFusion Team!
I tried exporting line with the specific StrokeDashStyle to SVG and mentioned that it does not look the same as it displays in diagram in the app. Please check the attached project and images. You can clearly see, that dots look thicker in SVG file. Is there a workaround I can use to miss that discrepancy?
  

link.svg ( 1 KB | 14 Downloads )
DiagramLinkIssues_001.zip ( 427 KB | 10 Downloads )
G3fQXTCWKr.png ( 17 KB | 14 Downloads )
G3fQXTCWKr.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: Link display inconsistencies between diagram and SVG
Reply #1 - Jan 22nd, 2025 at 9:12am
Print Post  
Hi,

Our developer will investigate; we suspect SVG adds caps to the dashes (e.g. square instead of flat).

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: Link display inconsistencies between diagram and SVG
Reply #2 - Jan 24th, 2025 at 12:32pm
Print Post  
Try new build here -

https://www.nuget.org/packages/MindFusion.Diagramming.Wpf/4.1.6-beta2

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
nullable
Full Member
***
Offline


I Love MindFusion!

Posts: 118
Joined: Aug 25th, 2022
Re: Link display inconsistencies between diagram and SVG
Reply #3 - Jan 27th, 2025 at 5:42am
Print Post  
Thank you, now size of line segments is the same between svg and the diagram. Now I only see some sort of offset that covers line head in the SVG. Please compare these two pictures, in the diagram the arrow head is clearly seen, whereas in the SVG file it is overlapped by  the line. Judging by the start of this digram link you might guess that some sort of offset is applying when exporting to SVG.
  

DiagramLinkOffsetIssue.zip ( 437 KB | 8 Downloads )
F1p9PKo3B7.png ( 14 KB | 14 Downloads )
F1p9PKo3B7.png
msedge_5SLg2yFXuy.png ( 13 KB | 14 Downloads )
msedge_5SLg2yFXuy.png
Back to top
 
IP Logged
 
nullable
Full Member
***
Offline


I Love MindFusion!

Posts: 118
Joined: Aug 25th, 2022
Re: Link display inconsistencies between diagram and SVG
Reply #4 - Jan 27th, 2025 at 5:43am
Print Post  
I also attach SVG here
  

resources.svg ( 1 KB | 11 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: Link display inconsistencies between diagram and SVG
Reply #5 - Jan 27th, 2025 at 1:09pm
Print Post  
If you look at top-left without scrolling, problem seems dashes starting from a different place (half of first dash missing in WPF), and so also not ending at same place of the dash array. Maybe there's some different dash-offset defaults in WPF vs SVG, our developer will check.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint