Skip to content

Commit 1521a1e

Browse files
committed
feat(resistor): add pinInfo
1 parent c3cf822 commit 1521a1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/resistor-element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { customElement, html, LitElement, property } from 'lit-element';
2+
import { ElementPin } from './pin';
23

34
const bandColors: { [key: number]: string } = {
45
[-2]: 'silver',
@@ -26,6 +27,11 @@ export class ResistorElement extends LitElement {
2627
*/
2728
@property() value = '1000';
2829

30+
readonly pinInfo: ElementPin[] = [
31+
{ name: '1', x: 0, y: 9, signals: [] },
32+
{ name: '2', x: 59, y: 9, signals: [] },
33+
];
34+
2935
private breakValue(value: number) {
3036
const exponent =
3137
value >= 1e10

0 commit comments

Comments
 (0)