1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
#set $height = (int($pins) * 300) + 330
3
#set $texty = ($height/2.0) + 50
6
#set $rectwidth = $width - 300 - 30
8
xmlns:svg="http://www.w3.org/2000/svg"
9
xmlns="http://www.w3.org/2000/svg"
11
width="${width / 1000.0}in"
12
height="${height / 1000.0}in"
13
viewBox="0 0 ${width} ${height}"
16
<rect x="${rectx}" y="15" fill="none" width="${rectwidth}" height="${height - 30}" stroke="#000000" stroke-linejoin="round" stroke-linecap="round" stroke-width="30" />
17
<text id="label" x="${(rectwidth / 2) + rectx}" y="${texty}" fill="#000000" stroke="none" font-family="DroidSans" text-anchor="middle" font-size="255" >${label}</text>
20
<circle fill="#000000" cx="${width - 200}" cy="200" r="150" stroke-width="0" />
21
<text x="${width - 200}" fill="#FFFFFF" y="305" font-family="DroidSans" text-anchor="middle" font-weight="bold" stroke-width="0" font-size="275" >?</text>
24
#for $pin in range(int($pins))
25
#set $incpin = $pin + 1
26
#set $ly = 15 + ($incpin * 300)
27
<line fill="none" stroke="#000000" stroke-linejoin="round" stroke-linecap="round" stroke-width="30" x1="15" y1="${ly}" x2="300" y2="${ly}" />
28
<rect x="0" y="${300 * incpin}" fill="none" width="300" height="30" id="connector${pin}pin" stroke-width="0" />
29
<rect x="0" y="${300 * incpin}" fill="none" width="30" height="30" id="connector${pin}terminal" stroke-width="0" />
30
<text id="label${pin}" x="390" y="${(300 * incpin) + 50}" font-family="DroidSans" stroke="none" fill="#000000" text-anchor="start" font-size="130" >${pin + 1}</text>