From 7b6f4486a7cc970fcff230e40c95793dcab93db9 Mon Sep 17 00:00:00 2001 From: Ariella Eliassaf Date: Sun, 27 Nov 2022 14:35:57 +0200 Subject: [PATCH] fix: align pins position to grid --- src/hx711-element.ts | 8 ++++---- src/ks2e-m-dc5-element.ts | 26 +++++++++++++------------- src/rgb-led-element.ts | 16 ++++++++-------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/hx711-element.ts b/src/hx711-element.ts index 70b407e..5e5fa8d 100644 --- a/src/hx711-element.ts +++ b/src/hx711-element.ts @@ -7,10 +7,10 @@ export class HX711Element extends LitElement { @property() type: '5kg' | '50kg' | 'gauge' | undefined; readonly pinInfo: ElementPin[] = [ - { name: 'VCC', y: 53, x: 7, number: 1, signals: [VCC()] }, - { name: 'DT', y: 35, x: 7, number: 2, signals: [] }, - { name: 'SCK', y: 44, x: 7, number: 3, signals: [] }, - { name: 'GND', y: 25.5, x: 7, number: 4, signals: [GND()] }, + { name: 'VCC', y: 55, x: 7, number: 1, signals: [VCC()] }, + { name: 'DT', y: 36.3, x: 7, number: 2, signals: [] }, + { name: 'SCK', y: 46.2, x: 7, number: 3, signals: [] }, + { name: 'GND', y: 26.5, x: 7, number: 4, signals: [GND()] }, ]; get dimension() { diff --git a/src/ks2e-m-dc5-element.ts b/src/ks2e-m-dc5-element.ts index 0363cb6..098a84a 100644 --- a/src/ks2e-m-dc5-element.ts +++ b/src/ks2e-m-dc5-element.ts @@ -4,10 +4,10 @@ import { ElementPin } from './pin'; const y1Pos = 5.1; const y2Pos = 32.7; -const x1Pos = 7.6; -const x2Pos = 25.75; -const x3Pos = 44; -const x4Pos = 71.8; +const x1Pos = 5.5; +const x2Pos = 25; +const x3Pos = 45; +const x4Pos = 74; @customElement('wokwi-ks2e-m-dc5') export class KS2EMDC5Element extends LitElement { @@ -36,16 +36,16 @@ export class KS2EMDC5Element extends LitElement { - - - - - - - - + + + + + + + + - + KS2E-M-DC5 diff --git a/src/rgb-led-element.ts b/src/rgb-led-element.ts index 3f6d661..e98dab2 100644 --- a/src/rgb-led-element.ts +++ b/src/rgb-led-element.ts @@ -10,9 +10,9 @@ export class RGBLedElement extends LitElement { readonly pinInfo: ElementPin[] = [ { name: 'R', x: 8.5, y: 44, signals: [] }, - { name: 'COM', x: 17.5, y: 54, signals: [] }, - { name: 'G', x: 26.4, y: 48, signals: [] }, - { name: 'B', x: 35.7, y: 43, signals: [] }, + { name: 'COM', x: 18, y: 54, signals: [] }, + { name: 'G', x: 26.4, y: 44, signals: [] }, + { name: 'B', x: 35.7, y: 44, signals: [] }, ]; render() { @@ -30,11 +30,11 @@ export class RGBLedElement extends LitElement { xmlns="http://www.w3.org/2000/svg" > - - - - - + + + + +