summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/templates/svg-plan.html
blob: 1fdb5d1a53fa22e85a231542d495dbdd47ab37b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg"
	  xmlns:xlink="http://www.w3.org/1999/xlink"
	  version="1.1"
	  viewBox="0 0 {{width}} {{height}}"
	  width="{{width}}mm"
	  height="{{height}}mm">
	<style type="text/css">
		<![CDATA[
      rect {
			stroke: #000;
			fill: #fff;
			stroke-width: .5;
		}
		rect.hl {
			fill: #f00;
		}
		]]>
	</style>
	<g transform="translate(-{{minX}}, -{{minY}})">
		{{#machines}}
		<rect
				x="{{gridCol}}"
				y="{{gridRow}}"
				height="3.8"
				width="3.8"
				class="{{class}}" />
		{{/machines}}
	</g>
</svg>