summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJovansonlee Cesar <ivanceras@gmail.com>2018-09-03 18:28:29 +0800
committerJovansonlee Cesar <ivanceras@gmail.com>2018-09-03 18:28:29 +0800
commit9ca194b049b8e5965623fe1ddba8c05b3a131250 (patch)
tree5ee65f96b2ac1d840f2cf2be8d5273316af64126
parent5591a4e13b7d17a12da0651f5cb25065b3002221 (diff)
Not using z as close point, since it will error in order browsers
-rw-r--r--svgbob/src/grid.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/svgbob/src/grid.rs b/svgbob/src/grid.rs
index cbdaedb..5d339e2 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 == "-")
{
"~"
@@ -374,8 +374,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)
}
@@ -391,7 +391,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);
@@ -409,7 +409,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");