Changeset - 0145cf4869b6
[Not reviewed]
default
0 1 0
Laman - 3 years ago 2022-03-06 15:12:55

SVG slightly better rendering in nomacs
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/diana/templ/templ.svg
Show inline comments
 
@@ -3,23 +3,23 @@
 
{% set stoneRadius=cellSize/2-1 -%}
 

	
 
{% if not labeledPoint %}
 
	{% macro labeledPoint(p) %}
 
	<g class="{{p.color or 'e'}}" transform="translate({{(p.x*cellSize) | round(2)}},{{(p.y*cellSize) | round(2)}})">
 
		<circle cx="0" cy="0" r="{{stoneRadius|round(2)}}"/>
 
		<text y="0.35em" font-size="{{adjustFont(cellSize,p.label)}}">{{p.label}}</text>
 
		<text y="0.35em" font-size="{{adjustFont(cellSize,p.label)}}" text-anchor="middle">{{p.label}}</text>
 
	</g>
 
	{% endmacro %}
 
{% endif -%}
 

	
 
<svg width="{{boardSize+padding*2}}" height="{{boardSize+padding*2}}" version="1.1" xmlns="http://www.w3.org/2000/svg">
 
	<defs>
 
		<style type="text/css"><![CDATA[
 
		{% block style %}
 
			rect{fill:{{bgcolor or "white"}};stroke:black;stroke-width:1px}
 
			text{font-family:"DejaVu Sans";text-anchor:middle}
 
			text{font-family:"DejaVu Sans"}
 
			line{stroke:black;stroke-width:0.7px}
 
			circle{stroke:black}
 
			circle.b, .b circle, .w text, .e text{fill:black}
 
			circle.w, .w circle, .b text{fill:white}
 
			.e circle {stroke:none;fill:white}
 
		{% endblock %}
0 comments (0 inline, 0 general)