Files
order_system/po_app/templates/seal_preview.html
T

18 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg class="seal-preview" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"
role="img" aria-label="{{ seal.company }},{{ seal.number }},采购专用章">
<title>{{ seal.company }} · {{ seal.number }} · 采购专用章</title>
<circle cx="50" cy="50" r="46" fill="none" stroke="currentColor" stroke-width="1.5"/>
<circle cx="50" cy="50" r="44.6" fill="none" stroke="currentColor" stroke-width="0.5"/>
{% for arc in seal.arcs %}
<g class="{{ 'seal-company' if loop.first else 'seal-code' }}" font-size="{{ arc.size }}" fill="currentColor" text-anchor="middle">
{% for letter in arc.letters %}
<text transform="translate({{ letter.x }} {{ 100 - letter.y }}) rotate({{ -letter.rotation }}) scale({{ arc.scale_x }} {{ arc.scale_y }})">{{ letter.text }}</text>
{% endfor %}
</g>
{% endfor %}
{% for x, y in seal.separators %}<circle cx="{{ x }}" cy="{{ 100 - y }}" r="0.65" fill="currentColor"/>{% endfor %}
<polygon points="{% for x, y in seal.star %}{{ x }},{{ 100 - y }} {% endfor %}" fill="currentColor"/>
<text class="seal-company" transform="translate(50 66) scale({{ seal.title.scale_x }} {{ seal.title.scale_y }})"
font-size="{{ seal.title.size }}" text-anchor="middle" fill="currentColor">采购专用章</text>
</svg>