Skip to content

Commit fdb34f4

Browse files
committed
fix(led): align pins with grid
1 parent 282698d commit fdb34f4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/led-element.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export class LEDElement extends LitElement {
2222
@property({ type: Boolean }) flip = false;
2323

2424
get pinInfo(): ElementPin[] {
25-
const anodeX = this.flip ? 16 : 24;
26-
const cathodeX = this.flip ? 24 : 16;
25+
const anodeX = this.flip ? 15 : 25;
26+
const cathodeX = this.flip ? 25 : 15;
2727

2828
return [
2929
{ name: 'A', x: anodeX, y: 42, signals: [], description: 'Anode' },
@@ -77,11 +77,9 @@ export class LEDElement extends LitElement {
7777
<filter id="light2" x="-0.8" y="-0.8" height="2.2" width="2.8">
7878
<feGaussianBlur stdDeviation="4" />
7979
</filter>
80-
<rect x="3.451" y="19.379" width="2.1514" height="9.8273" fill="#8c8c8c" />
81-
<path
82-
d="m12.608 29.618c0-1.1736-0.86844-2.5132-1.8916-3.4024-0.41616-0.3672-1.1995-1.0015-1.1995-1.4249v-5.4706h-2.1614v5.7802c0 1.0584 0.94752 1.8785 1.9462 2.7482 0.44424 0.37584 1.3486 1.2496 1.3486 1.7694"
83-
fill="#8c8c8c"
84-
/>
80+
<rect x="2.5099" y="20.382" width="2.1514" height="9.8273" fill="#8c8c8c" />
81+
<path d="m12.977 30.269c0-1.1736-0.86844-2.5132-1.8916-3.4024-0.41616-0.3672-1.1995-1.0015-1.1995-1.4249v-5.4706h-2.1614v5.7802c0 1.0584 0.94752 1.8785 1.9462 2.7482 0.44424 0.37584 1.3486 1.2496 1.3486 1.7694" fill="#8c8c8c"/>
82+
8583
<path
8684
d="m14.173 13.001v-5.9126c0-3.9132-3.168-7.0884-7.0855-7.0884-3.9125 0-7.0877 3.1694-7.0877 7.0884v13.649c1.4738 1.651 4.0968 2.7526 7.0877 2.7526 4.6195 0 8.3686-2.6179 8.3686-5.8594v-1.5235c-7.4e-4 -1.1426-0.47444-2.2039-1.283-3.1061z"
8785
opacity=".3"

0 commit comments

Comments
 (0)