diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2021-07-13 04:23:36 +0800 |
---|---|---|
committer | Jovansonlee Cesar <ivanceras@gmail.com> | 2021-07-13 04:23:36 +0800 |
commit | 13d1a7b843db38ea8409b5e5dd3a837376d05ffb (patch) | |
tree | 8b90cd18514d1089d3df22749bf5b16b835c41ce | |
parent | e6d8b08df34301c25ab3467da0c0f74f7311b6dc (diff) |
Add a little arrowed arc in unicode map
Make use of adjust function instead of individually adjusting x and y
-rw-r--r-- | svgbob/src/map/ascii_map.rs | 2 | ||||
-rw-r--r-- | svgbob/src/map/unicode_map.rs | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/svgbob/src/map/ascii_map.rs b/svgbob/src/map/ascii_map.rs index a9f3f20..1d6ee2d 100644 --- a/svgbob/src/map/ascii_map.rs +++ b/svgbob/src/map/ascii_map.rs @@ -392,7 +392,7 @@ lazy_static! { // (top_left.line_overlap(s,y)|| bottom_right.line_overlap(a,g) || bottom_left.line_overlap(u,q) || top_right.line_overlap(e,i), - vec![polygon(vec![m.adjust_x(1.4).adjust_y(2.0), m.adjust_x(1.4).adjust_y(-2.0), m.adjust_x(-1.4).adjust_y(-2.0),m.adjust_x(-1.4).adjust_y(2.0)], true, vec![DiamondBullet])]), + vec![polygon(vec![m.adjust(1.4,2.0), m.adjust(1.4,-2.0), m.adjust(-1.4,-2.0),m.adjust(-1.4,2.0)], true, vec![DiamondBullet])]), // // | // # diff --git a/svgbob/src/map/unicode_map.rs b/svgbob/src/map/unicode_map.rs index 939e8d7..b5d82ca 100644 --- a/svgbob/src/map/unicode_map.rs +++ b/svgbob/src/map/unicode_map.rs @@ -337,7 +337,14 @@ lazy_static! { ('╨', vec![line(k, o), line(b, l), line(d, n)]), + ('⤹', vec![arc(j,r,unit2),polygon(vec![y.adjust(-0.5,-0.5),r.adjust(0.5,-0.5),r.adjust(-0.5,0.5)], true, vec![])]), // TODO: + // circular arcs with arrows: + // ↺ + // ↻ + // ⟲ + // ⟳ + // ↶ ↷ // parenthesis like: ⟮ ⟯( ) // // ∈ ≡ ≤ ≥ ÷ ≠ · × ¬ ↑↓ ∧ ∨ ≈ ± ∃ ∀ ⊃ ⊂ ∪ ∩ ⊖ ⊕ « » |