We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c3ff8 commit ed6072bCopy full SHA for ed6072b
src/resistor-element.ts
@@ -15,8 +15,15 @@ const bandColors: { [key: number]: string } = {
15
9: 'white',
16
};
17
18
+/**
19
+ * Renders an axial-lead resistor with 4 color bands.
20
+ */
21
@customElement('wokwi-resistor')
22
export class ResistorElement extends LitElement {
23
+ /**
24
+ * Resitance value, in ohms. The value is reflected in the color of the bands, according to
25
+ * standard [electronic color code](https://en.wikipedia.org/wiki/Electronic_color_code#Resistors).
26
27
@property() value = '1000';
28
29
private breakValue(value: number) {
0 commit comments