From be7b920ed2c44ba4e6297cc2eff4acadba07afc3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 May 2021 02:30:47 +0100 Subject: [PATCH] docs: wip document shapelibs, move from shapelib-toml Signed-off-by: Ian Jackson --- docs/shapelibs.rst | 6 ++++++ src/shapelib-toml.rs | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/shapelibs.rst b/docs/shapelibs.rst index 581ce95a..b9465cc4 100644 --- a/docs/shapelibs.rst +++ b/docs/shapelibs.rst @@ -179,6 +179,12 @@ Parameters ``_s`` is replaced by the sort extra field from the ``files`` list ``_c`` is replaced by the colour, if applicable. + * ``outline`` [mandatory: string, one of ``"Circle"`` or ``"Rect"``]. + Defines the outline shape. This is used for drawing selection + highlights, etc. The size is taken from ``size``. If ``outline`` + is ``Circl``, ``size`` must be a 1-element array: ellipses are not + supported. + * ``flip`` [boolean, default: false]. Whether this piece can "flip". If true, the piece will have two faces, one of which is a mirror image of the other. The default face will be un-reflected version; diff --git a/src/shapelib-toml.rs b/src/shapelib-toml.rs index bd8e502c..77046cd1 100644 --- a/src/shapelib-toml.rs +++ b/src/shapelib-toml.rs @@ -30,12 +30,6 @@ pub struct GroupDetails { #[serde(default)] pub colours: HashMap, pub desc_template: Option, pub occulted: Option, - - /// One of `"Circle"` or `"Rect"`, to define the outline shape. - /// The size is taken from `size`. - /// - /// This value is a string, not some weird Rust type, despite - /// what you see here. #[serde(flatten)] pub outline: Box, } -- 2.30.2