Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SVG Parsing inconsistencies (Read 1063 times)
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
SVG Parsing inconsistencies
Dec 29th, 2022 at 8:40am
Print Post  
Hello MindFusion team!
I've faced some inconsistencies when parsing SVG image that I attached. I've also added screenshots, first one is image in browser view, second is image added to a diagram as SVG node. It was loaded on diagram by using SvgContent.Parse method and then set as SvgNode.Content. The problem is that the frame weight is not calculated properly. Could you please investigate?
Code
Select All
stream.Seek(0, SeekOrigin.Begin);
var xmlDocument = new XmlDocument();
xmlDocument.Load(stream);

var svgContent = new SvgContent();
svgContent.Parse(xmlDocument, false);
node.Content = svgContent;
 

  

msedge_24NrM7kgga.png ( 18 KB | 41 Downloads )
msedge_24NrM7kgga.png
Division25_yfhewEuP3L.png ( 15 KB | 39 Downloads )
Division25_yfhewEuP3L.png
Back to top
 
IP Logged
 
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: SVG Parsing inconsistencies
Reply #1 - Dec 29th, 2022 at 8:43am
Print Post  
Here is attached file
  

Drawing.svg ( 20 KB | 51 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: SVG Parsing inconsistencies
Reply #2 - Jan 2nd, 2023 at 10:09am
Print Post  
Try this build -
https://mindfusion.eu/_temp/svg_stroke_width.zip

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


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Re: SVG Parsing inconsistencies
Reply #3 - Jan 27th, 2023 at 10:29am
Print Post  
Thank you. This one is working. I found another inconsistency with other SVG file. Please test it.
  

TSB-02B_Wiring.svg ( 7 KB | 48 Downloads )
cZqAQ9t5Sl.png ( 15 KB | 38 Downloads )
cZqAQ9t5Sl.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: SVG Parsing inconsistencies
Reply #4 - Jan 31st, 2023 at 8:27am
Print Post  
Try new build here -
https://mindfusion.eu/_temp/svg_subpaths.zip

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