Skip to content

Commit 4f0cde8

Browse files
committed
fix(resistor): incorrect height + pinInfo positions
1 parent 3cbe191 commit 4f0cde8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/resistor-element.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { html, LitElement } from 'lit';
1+
import { css, html, LitElement } from 'lit';
22
import { customElement, property } from 'lit/decorators.js';
33
import { ElementPin } from './pin';
44

@@ -29,10 +29,18 @@ export class ResistorElement extends LitElement {
2929
@property() value = '1000';
3030

3131
readonly pinInfo: ElementPin[] = [
32-
{ name: '1', x: 0, y: 10, signals: [] },
33-
{ name: '2', x: 58.8, y: 10, signals: [] },
32+
{ name: '1', x: 0, y: 5.65, signals: [] },
33+
{ name: '2', x: 58.8, y: 5.65, signals: [] },
3434
];
3535

36+
static get styles() {
37+
return css`
38+
:host {
39+
display: flex;
40+
}
41+
`;
42+
}
43+
3644
private breakValue(value: number) {
3745
const exponent =
3846
value >= 1e10

0 commit comments

Comments
 (0)