{% macro figure_layer(figure) %} {% set figure_style %}{% filter cull_whitespace %} {% if figure.opacity!=1 %}opacity: {{ figure.opacity }};{% endif %} {% if figure.color!=1 %}color: {{ figure.color }};{% endif %} transform: {% if figure.offset|any %}translate({{ figure.offset[0]*100 }}%, {{ figure.offset[1]*100 }}%){% endif %} {% if figure.rotation %}rotate({{ figure.rotation }}deg){% endif %} {% if figure.flip_x %}scaleX(-1){% endif %} {% if figure.flip_y %}scaleY(-1){% endif %} {% if figure.scale!=1 %}scale({{ figure.scale }}){% endif %} ; {% endfilter %}{% endset %}
{{ card }}#}