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

« back to all changes in this revision

Viewing changes to part-gen-scripts/cheetah scripts/templates/generic-male-header_bread.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 $one_tenth_of_an_inch = 7.199
4
 
<svg version="1.1" baseProfile="basic" id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
5
 
         x="0px" y="0px" width="${0.10*int($pins)}in" height="0.10in" viewBox="0 0 ${$one_tenth_of_an_inch*int($pins)} 7.199" xml:space="preserve">
6
 
 
7
 
<g id="breadboard">
8
 
#for $pin in range(int($pins))
9
 
        #set $offset = $pin*$one_tenth_of_an_inch
10
 
<rect id="connector${pin}pin" x="${$offset+2.204}" y="2.204" fill="none" width="2.791" height="2.791"/>
11
 
<rect id="connector${pin}terminal" x="${$offset+2.518}" y="2.469" fill="none" width="2.164" height="2.262"/>
12
 
#end for
13
 
 
14
 
#for $pin in range(int($pins))
15
 
        #set $offset = $pin*$one_tenth_of_an_inch
16
 
        <g>
17
 
                <polygon fill="#404040" points="${$offset+1.563},0 $offset,1.564 $offset,5.637 ${$offset+1.563},7.199 ${$offset+5.635},7.199 ${$offset+7.199},5.637 ${$offset+7.199},1.564 ${$offset+5.635},0 ${$offset+1.563},0"/>
18
 
        </g>
19
 
        <g>
20
 
                <rect x="${$offset+2.451}" y="2.45" fill="#8D8C8C" width="2.297" height="2.299"/>
21
 
                <rect x="${$offset+3.009}" y="3.008" fill="#8C8663" width="1.182" height="1.183"/>
22
 
                <polygon fill="#B8AF82" points="${$offset+2.451},2.45 ${$offset+3.009},3.008 ${$offset+4.19},3.008 ${$offset+4.748},2.45"/>
23
 
                <polygon fill="#80795B" points="${$offset+4.19},4.19 ${$offset+4.19},3.008 ${$offset+4.748},2.45 ${$offset+4.748},4.749                 "/>
24
 
                <polygon fill="#5E5B43" points="${$offset+3.009},4.19 ${$offset+4.19},4.19 ${$offset+4.748},4.749 ${$offset+2.451},4.749                "/>
25
 
                <polygon fill="#9A916C" points="${$offset+2.451},2.45 ${$offset+3.009},3.008 ${$offset+3.009},4.19 ${$offset+2.451},4.749               "/>
26
 
        </g>
27
 
#end for
28
 
</g>
29
 
 
30
 
</svg>