ivanceras / svgbob

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

Add short ArrowTopRight and short ArrowTopLeft with singlequote #115

Open Geronymos opened 2 weeks ago

Geronymos commented 2 weeks ago

There are two ways for creating ArrowBottomRight / ArrowBottomLeft with either slashes or a dot. There doesn't seem to be an equivalent for the dots with ArrowTopRight / ArrowTopLeft. Maybe make the backtick or singlequote ' the equvalent for dot . with ArrowTop.

Short ArrowBottomRight / ArrowBottomLeft with dot . works:

 .--.
v    v

But this does not work for creating ArrowTopRight / ArrowTopLeft:

^    ^
 '--'

grafik

//     ^
//   -'
(
    bottom_left.is('\''),
    vec![polygon(
        vec![w, p, o],
        true,
        vec![ArrowTopRight],
    )],
),
//   ^  
//    '-
(
    bottom_right.is('\'') || bottom_right.is('`'),
    vec![polygon(
        vec![w, k, t],
        true,
        vec![ArrowTopLeft],
    )],
),