Skip to content

Online demo preview and SVG output don't match #106

@ianjevans

Description

@ianjevans

I was using the online demo to make some simple diagrams, and used the following text:


 Cutover phase

                    .--------------.
                    |              |
        .-------->  |  CockroachDB |
       |            | {t}          |
       |            '--------------'
       |                   !
       |                   !
       |                   V
+-------------+       .----------.
|             |      /            \
| Application |     (  replication )
|{a}          |      \            /
+-------------+       '----------' 
                           |
                           V
                    .--------------.
                    |              |
                    |  Source DB   |
                    | {s}          |
                    '--------------'

# Legend:
t = {
    stroke: #6933ff;
    fill: #b59cf9;
}
s = {
    stroke: green;
    fill: lightgreen;
}
a = {
    fill: lightblue;
}
crdb = {
    fill: #6933ff;
    color: white;
}

The preview looks good:
Screenshot 2023-10-06 at 9 38 09 AM

But the output SVG from clicking Download SVG has spacing issues:
bob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions