ivanceras / svgbob

Convert your ascii diagram scribbles into happy little SVG
http://ivanceras.github.io/svgbob-editor/
Apache License 2.0
3.91k stars 112 forks source link

Regressions in "Load Other Example" #103

Open ssokolow opened 1 year ago

ssokolow commented 1 year ago

As of 2023-05-30 at 1:42 AM EDT, whatever version of Svgbob is used on https://svgbob-editor.netlify.app/ is mis-rendering various pieces of the "Load Other Example" document.

I didn't want to screenshot every little mistake, but here are some of the more noticeable ones:

       A
       |
       |
 <|----+----|>
       |
       |
       _
       V

Screenshot_20230530_015028

       ┏━━━━┳━━━━┳   ┳━━━━┓
       ┃ A₁ ┃ A₂ ┃ ⋯ ┃ Aⱼ ┃ <--- Basis
       ┡━━━━╇━━━━╇   ╇━━━━┩
       │ 16 │  4 │ ⋯ │  9 │
     ⎧ ├────┼────┼   ┼────┤
     │ │  1 │ -2 │ ⋯ │ 10 │
  Xᵢ ⎨ ├────┼────┼   ┼────┤
     │ │  8 │ 52 │ ⋯ │  0 │
     ⎩ ├────┼────┼   ┼────┤
       │ 14 │  0 │ ⋯ │ -1 │
       └────┴────┴   ┴────┘

Screenshot_20230530_014322

 .------------------.  Diag line
 |   if (a > b)     +---.      .--->
 |   obj->fcn()     |    \    /
 '------------------'     '--'

Screenshot_20230530_014440

                         |                        |
                   _____\|                        |/_____
                        /|                        |\
                         |                        |

Screenshot_20230530_014541

        120      90      60
   135    ^     ^     ^     ^ 45
      ^    \    |    /    .'
       `.   \   |   /   .'
         `.  \  |  /  .'
           `. \ | / .'
             `.\_/.'
 180 <---------(_)-------------> 0
             .'/|\`.
           .' / | \ `.
         .'  /  |  \  `.
       .'   /   |   \   `.
      V    /    |    \    `.
   225    V     V     V     V

        240    270   300    315

            120      90      60
       135   ^      ^     ^     ^ 45
  150     ^    \    |    /    .'        ◥ 30
    ◤      `.   \   |   /   .'      ⠠⠐⠈
     ⠈⠐⠠     `.  \  |  /  .'    ⠠⠐⠈
         ⠈⠐⠠   `. \ | / .'  ⠠⠐⠈
             ⠈⠐⠠ `.\_/.'⠠⠐⠈
180 <--------------(_)------------------> 0
              ⠠⠐⠈.'/|\`.⠈⠐⠠
          ⠠⠐⠈  .' / | \ `.  ⠈⠐⠠
 210  ⠠⠐⠈    .'  /  |  \  `.    ⠈⠐⠠
    ◣      .'   /   |   \   `.      ⠈⠐⠠  330
          V    /    |    \    `.        ◢
       225    V     V     V     V
            240    270   300    315

Screenshot_20230530_014717