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

Issue of exporting SVG #57

Open
Talendu opened this issue Mar 20, 2020 · 2 comments
Open

Issue of exporting SVG #57

Talendu opened this issue Mar 20, 2020 · 2 comments

Comments

@Talendu
Copy link

Talendu commented Mar 20, 2020

When i open the SVG file witch has been exported by wavedrom with Visio, I can't cancel combination correctly. So i check the SVG file, it's missing a before the . Following code showing the end of SVG file.

...
    </defs>
    <g id="waves_0">
        <g id="lanes_0" transform="translate(40.5, 0.5)">
            <g id="gmarks_0">
                <g style="stroke:#888;stroke-width:0.5;stroke-dasharray:1,3">
                <line id="gmark_0_0" x1="0" y1="0" x2="0" y2="30"/>
                </g>
            </g>
            <g id="wavelane_0_0" transform="translate(0,5)">
                <text x="-10" y="15" class="info" text-anchor="end" xml:space="preserve">
                    <tspan>clk
                    </tspan>
                </text>
                <g id="wavelane_draw_0_0" transform="translate(0, 0)"/>
            </g>
            <g id="wavearcs_0"/>
                <g id="wavegaps_0">
                    <g id="wavegap_0_0" transform="translate(0,5)"/>
                </g>
            </g>
            <g id="groups_0">
                <g/>
            </g>
        </g>
</svg>

On Waredrom Version 2.3.2

@drom
Copy link
Member

drom commented Mar 20, 2020

I think you missed with your <g id="wavearcs_0"/> formatting. Here is correct formatting.

<svg>
...
    <g id="waves_0">
        <g id="lanes_0" transform="translate(40.5, 0.5)">
            <g id="gmarks_0">
                <g style="stroke:#888;stroke-width:0.5;stroke-dasharray:1,3">
                <line id="gmark_0_0" x1="0" y1="0" x2="0" y2="30"/>
                </g>
            </g>
            <g id="wavelane_0_0" transform="translate(0,5)">
                <text x="-10" y="15" class="info" text-anchor="end" xml:space="preserve">
                    <tspan>clk
                    </tspan>
                </text>
                <g id="wavelane_draw_0_0" transform="translate(0, 0)"/>
            </g>
            <g id="wavearcs_0"/>
            <g id="wavegaps_0">
                <g id="wavegap_0_0" transform="translate(0,5)"/>
            </g>
        </g>
        <g id="groups_0">
            <g/>
        </g>
    </g>
</svg>

@drom
Copy link
Member

drom commented Mar 20, 2020

One thing, I should remove empty groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants