From 1b1de3b5b90e205e8217c3fb92ccdb0f55279730 Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Thu, 23 Jul 2020 18:02:11 +0200 Subject: [PATCH] Fix template reboot2020 for inkscape The generated svg were ok for FF, but images were wrong on Inkscape, which can be used to create png exports... The fix is modifying the width=auto to with=2000 while setting the preserveRatioAspect to xMinYMin. Also, the secondary and pocket chars needed to be put inside groups unless the main char image disappeared, for some reason... --- .../templates/rebootlyon2020/template.svg.j2 | 60 ++++++++++++++----- 1 file changed, 46 insertions(+), 14 deletions(-) diff --git a/lokrez/templates/rebootlyon2020/template.svg.j2 b/lokrez/templates/rebootlyon2020/template.svg.j2 index d201346..fcb7f2d 100644 --- a/lokrez/templates/rebootlyon2020/template.svg.j2 +++ b/lokrez/templates/rebootlyon2020/template.svg.j2 @@ -892,6 +892,7 @@ y="141.60774" /> {% if players[0].get_mains()[1] %} + + {% endif %} {% if players[0].get_mains()[2] %} + + {% endif %} {% if players[1].get_mains()[2] %} + + {% endif %} {% if players[1].get_mains()[1] %} + + {% endif %} {% if players[2].get_mains()[1] %} + + {% endif %} {% if players[2].get_mains()[2] %} + + {% endif %} {% if players[3].get_mains()[2] %} + + {% endif %} {% if players[3].get_mains()[1] %} + + {% endif %} {% if players[4].get_mains()[2] %} + + {% endif %} {% if players[4].get_mains()[1] %} + + {% endif %} {% if players[5].get_mains()[2] %} + + {% endif %} {% if players[5].get_mains()[1] %} + + {% endif %} {% if players[6].get_mains()[2] %} + + {% endif %} {% if players[6].get_mains()[1] %} + + {% endif %} {% if players[7].get_mains()[2] %} + + {% endif %} {% if players[7].get_mains()[1] %} + + {% endif %}