~ubuntu-branches/ubuntu/precise/fritzing/precise

« back to all changes in this revision

Viewing changes to part-gen-scripts/cheetah scripts/templates/mystery_part_schem.svg

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2011-08-26 10:11:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110826101105-w5hmn7zcf93ig5v6
Tags: 0.6.3b-1
* upgrapded to the newer upstream version
* parameters of the function GraphicsUtils::distanceFromLine in 
  src/svg/groundplanegenerator.cpp:767 are now declared as doubles,
  which Closes: #636441
* the new version fixes src/utils/folderutils.cpp, which
  Closes: #636061

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
 
#set $height = (int($pins) * 300) + 330
3
 
#set $texty = ($height/2.0) + 50
4
 
#set $width = 1530
5
 
#set $rectx = 315
6
 
#set $rectwidth = $width - 300 - 30
7
 
<svg
8
 
   xmlns:svg="http://www.w3.org/2000/svg"
9
 
   xmlns="http://www.w3.org/2000/svg"
10
 
   version="1.0"
11
 
   width="${width / 1000.0}in"
12
 
   height="${height / 1000.0}in"
13
 
   viewBox="0 0 ${width} ${height}"
14
 
   id="svg2">
15
 
  <g id="schematic">
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>
18
 
 
19
 
 
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>
22
 
 
23
 
 
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>
31
 
      #end for
32
 
  </g>
33
 
</svg>