Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The output for the SVG file attached is not coming out as a proper shape #38

Open
Sreejithga opened this issue Oct 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Sreejithga
Copy link

Describe the bug
Attached is the SVG file which we tried to convert to stencil XML which contain shapes
Web Server

To Reproduce
Steps to reproduce the behavior:
Had selected the file and converted to XML using the tool with the below settings
image

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

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 ?

@Sreejithga Sreejithga added the bug Something isn't working label Oct 10, 2022
@tbouffard
Copy link
Member

tbouffard commented Oct 13, 2022

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.

@Sreejithga
Copy link
Author

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.

@tbouffard
Copy link
Member

Perfect, let me know when you have news about your problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants