From: Ian Jackson Date: Sun, 12 Jul 2020 14:07:57 +0000 (+0100) Subject: provide scaled_path X-Git-Tag: otter-0.2.0~1359 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6892ac630e004623efe9fae2725cecdcc33db66f;p=otter.git provide scaled_path --- 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, } }