From 4df480c8c50942a0a5894942b1081d7297d5f12f Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 4 Jan 2021 16:17:34 +0100 Subject: [PATCH] set default stroke to 2 instead of 0, fixes first drawn shapes being invisible Signed-off-by: Julien Veyssier --- public/javascripts/spacedeck_sections.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/javascripts/spacedeck_sections.js b/public/javascripts/spacedeck_sections.js index 4537434..d1879a0 100644 --- a/public/javascripts/spacedeck_sections.js +++ b/public/javascripts/spacedeck_sections.js @@ -62,7 +62,7 @@ var SpacedeckSections = { active_style: { border_radius: 0, - stroke: 0, + stroke: 2, font_family: "Inter", font_size: 36, line_height: 1.5, @@ -1368,7 +1368,7 @@ var SpacedeckSections = { }, reset_stroke: function() { - this.active_style.stroke = 0; + this.active_style.stroke = 2; this.active_style.border_radius = 0; this.active_style.stroke_style = "solid"; }, @@ -1726,7 +1726,7 @@ var SpacedeckSections = { h: h, stroke_color: this.active_style.stroke_color, text_color: this.active_style.text_color, - stroke: 0, + stroke: this.active_style.stroke, fill_color: this.active_style.fill_color, shape: shape_type, valign: "middle",