Skip to content

Commit

Permalink
fix(dip-8-switch): align pins to grid
Browse files Browse the repository at this point in the history
  • Loading branch information
AriellaE committed Nov 30, 2022
1 parent c06804f commit b74ccd6
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions src/dip-switch-8-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ export class DipSwitch8Element extends LitElement {
@property({ type: Array }) values = [0, 0, 0, 0, 0, 0, 0, 0];

readonly pinInfo: ElementPin[] = [
{ name: '1a', number: 1, y: 51.3, x: 7.5, signals: [] },
{ name: '2a', number: 2, y: 51.3, x: 17.2, signals: [] },
{ name: '3a', number: 3, y: 51.3, x: 26.7, signals: [] },
{ name: '4a', number: 4, y: 51.3, x: 36.5, signals: [] },
{ name: '5a', number: 5, y: 51.3, x: 45.9, signals: [] },
{ name: '6a', number: 6, y: 51.3, x: 55.6, signals: [] },
{ name: '7a', number: 7, y: 51.3, x: 65.2, signals: [] },
{ name: '8a', number: 8, y: 51.3, x: 74.8, signals: [] },
{ name: '1a', number: 1, y: 51.3, x: 8.1, signals: [] },
{ name: '2a', number: 2, y: 51.3, x: 17.7, signals: [] },
{ name: '3a', number: 3, y: 51.3, x: 27.3, signals: [] },
{ name: '4a', number: 4, y: 51.3, x: 36.9, signals: [] },
{ name: '5a', number: 5, y: 51.3, x: 46.5, signals: [] },
{ name: '6a', number: 6, y: 51.3, x: 56.1, signals: [] },
{ name: '7a', number: 7, y: 51.3, x: 65.7, signals: [] },
{ name: '8a', number: 8, y: 51.3, x: 75.3, signals: [] },

{ name: '8b', number: 9, y: 1.7, x: 74.8, signals: [] },
{ name: '7b', number: 10, y: 1.7, x: 65.2, signals: [] },
{ name: '6b', number: 11, y: 1.7, x: 55.6, signals: [] },
{ name: '5b', number: 12, y: 1.7, x: 45.9, signals: [] },
{ name: '4b', number: 13, y: 1.7, x: 36.5, signals: [] },
{ name: '3b', number: 14, y: 1.7, x: 26.7, signals: [] },
{ name: '2b', number: 15, y: 1.7, x: 17.2, signals: [] },
{ name: '1b', number: 16, y: 1.7, x: 7.5, signals: [] },
{ name: '8b', number: 9, y: 3, x: 75.3, signals: [] },
{ name: '7b', number: 10, y: 3, x: 65.7, signals: [] },
{ name: '6b', number: 11, y: 3, x: 56.1, signals: [] },
{ name: '5b', number: 12, y: 3, x: 46.5, signals: [] },
{ name: '4b', number: 13, y: 3, x: 36.9, signals: [] },
{ name: '3b', number: 14, y: 3, x: 27.3, signals: [] },
{ name: '2b', number: 15, y: 3, x: 17.7, signals: [] },
{ name: '1b', number: 16, y: 3, x: 8.1, signals: [] },
];

/**
Expand Down Expand Up @@ -103,22 +103,23 @@ export class DipSwitch8Element extends LitElement {
stroke-linejoin="round"
stroke-width=".76744"
>
<rect x="73.181" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="83.135" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="92.424" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="102.45" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="111.55" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="121.12" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="130.78" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="140.62" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="73.516" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="83.469" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="92.758" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="102.78" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="111.89" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="121.45" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="131.11" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="140.95" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="73" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="82.6" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="92.2" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="101.8" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="111.4" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="121" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="130.6" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="140.2" y="87" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="73" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="82.6" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="92.2" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="101.8" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="111.4" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="121" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="130.6" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
<rect x="140.2" y="44.4" width="2" height="6.5" rx=".7" ry=".7" />
</g>
<!-- Board -->
Expand Down

0 comments on commit b74ccd6

Please sign in to comment.