From 6892ac630e004623efe9fae2725cecdcc33db66f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 12 Jul 2020 15:07:57 +0100 Subject: [PATCH] provide scaled_path --- src/pieces.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pieces.rs b/src/pieces.rs index 9492dba9..eef24047 100644 --- a/src/pieces.rs +++ b/src/pieces.rs @@ -11,7 +11,7 @@ type ColourMap = IndexVec; struct SimpleShape { desc : String, path : String, -// scaled_path : String, + scaled_path : String, approx_dia : Coord, colours : ColourMap, } @@ -113,6 +113,7 @@ impl SimpleShape { fn new_from_path(desc: String, path: String, approx_dia: Coord, colours: ColourMap) -> Self { SimpleShape { + scaled_path : svg_rescale_path(&path, SELECT_SCALE)?, desc, approx_dia, path, colours, } } -- 2.30.2