diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2018-09-12 23:46:19 +0800 |
---|---|---|
committer | Jovansonlee Cesar <ivanceras@gmail.com> | 2018-09-12 23:46:19 +0800 |
commit | 646b2d3a80c186a8b22871979d8caaf9806052bc (patch) | |
tree | 7c45836a3026f039892ba35c185f2cc644189190 | |
parent | ed0e621b4320df0c469d37932f65d3490dcb77dd (diff) | |
parent | 3962b21c89149d1fd687eeb512c1218e6855ee8b (diff) |
Merge branch 'master' of https://github.com/ivanceras/svgbob
-rw-r--r-- | svgbob/src/grid.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svgbob/src/grid.rs b/svgbob/src/grid.rs index 9cbef2e..2744e4e 100644 --- a/svgbob/src/grid.rs +++ b/svgbob/src/grid.rs @@ -307,15 +307,15 @@ impl Grid { || (cell == " " && left == "-" && right == "-" && right2 == " " && right3 == "-") // [- - -] // ^ - // if `-` , and left is ` ` and right is ` ` and left(2) is `-` and right(2) is `-` + // if `-` , and left is ` ` and right is ` ` and left(2) is `-` and right(2) is `-` || (cell == "-" && left == " " && right == " " && left2 == "-" && right2 == "-") // [- - -] // ^ - // if ` `, and left is `-` and right is `-` and left(2) is ` ` and left(3) is `-` + // if ` `, and left is `-` and right is `-` and left(2) is ` ` and left(3) is `-` || (cell == " " && left == "-" && right == "-" && left2 == " " && left3 == "-") // [- - -] // ^ - // if `-`, and left is ` ` and left(2) is `-` and left(3) is ` ` and left(4) is `-` + // if `-`, and left is ` ` and left(2) is `-` and left(3) is ` ` and left(4) is `-` || (cell == "-" && left == " " && left2 == "-" && left3 == " " && left4 == "-") { "~" @@ -375,8 +375,8 @@ fn get_styles(settings: &Settings) -> Style { stroke: none; }} "#, - stroke_width = settings.stroke_width, - stroke_color = &settings.stroke_color, + stroke_width = settings.stroke_width, + stroke_color = &settings.stroke_color, ); Style::new(style) } @@ -392,7 +392,7 @@ fn arrow_marker() -> Marker { .set("markerHeight", 8); let path = SvgPolygon::new() - .set("points", "0,0 0,4 8,2 z") + .set("points", "0,0 0,4 8,2 0,0") .set("fill", "black"); marker.append(path); @@ -410,7 +410,7 @@ fn clear_arrow_marker() -> Marker { .set("markerHeight", 10); let path = SvgPolygon::new() - .set("points", "2,2 2,12 18,7 z") + .set("points", "2,2 2,12 18,7 2,2") .set("fill", "none") .set("stroke-width", 2) .set("stroke", "black"); |