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

« back to all changes in this revision

Viewing changes to part-gen-scripts/obsolete/cheetah scripts/templates/screw_terminal_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"?>
 
2
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
 
3
#set $translation = 19.439
 
4
<svg version="1.1" baseProfile="basic" id="svg2" xmlns:svg="http://www.w3.org/2000/svg"
 
5
         xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="0.87in"
 
6
         height="${0.27*int($pins)}in" viewBox="0 0 62.641 ${$translation*int($pins)}" xml:space="preserve">
 
7
         
 
8
<g id="schematic">
 
9
#for $pin in range(int($pins))
 
10
        #set $offset = $pin*$translation
 
11
        <line id="connector${pin}pin" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" x1="0.998" y1="${$offset+9.723}" x2="17.845" y2="${$offset+9.723}"/>
 
12
        <rect id="connector${pin}terminal" x="0" y="${$offset+8.725}" width="0.998" height="1.997"/>
 
13
  <circle fill="none" stroke-width="2" stroke="#000000" cx="${62.641 - (translation / 2.0)}" cy="${$offset+9.723}" r="${(translation / 2.0) - 1.0}" />
 
14
        
 
15
        <line id="line" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" x1="${62.641 - translation}" y1="${$offset+9.723}" x2="16.452" y2="${$offset+9.723}"/>
 
16
#end for
 
17
</g>
 
18
</svg>