mxgraph-svg2shape
mxgraph-svg2shape copied to clipboard
[BUG] The output for the SVG file attached is not coming out as a proper shape
Describe the bug
Attached is the SVG file which we tried to convert to stencil XML which contain shapes
To Reproduce
Steps to reproduce the behavior:
Had selected the file and converted to XML using the tool with the below settings

Expected behavior
The shape is supposed to come out exactly as in the SVG, but its not and it looks as below.

Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10 Enterprise
- Browser Chrome
- Version Chrome 105.0.5195.127
Additional context Kindly advise what we can do to get this right ?
Hi @Sreejithga
svg2xml is not able to convert all kind of SVG. I don't know it in details but I will try to help you.
Your SVG file definess some CSS classes and I am pretty sure that svg2xml doesn't convert them.
Can you update your file and set the values of CSS properties directly in the attributes of the SVG nodes and run a new stencil generation?
Side note: this repository doesn't provide a specific implementation of svg2xml. It relies on the implementation of the upstream repository: https://github.com/jgraph/svg2xml. So, issues with svg2xml should be reported in the upstream repository (I will update the README later to mention that).
But don't worry, we are going to find a solution to your problem 😸 or if we are stuck we will report the issue to the upstream repo.
Thanks Thomas for your kind response, We are about to relook at this shortly and should be able to provide an update here as we will be trying your suggested solution as well.
Perfect, let me know when you have news about your problem