circuit-json 0.0.185 → 0.0.187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.d.mts +631 -496
- package/dist/index.mjs +634 -622
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
59
59
|
- [SourceSimpleDiode](#sourcesimplediode)
|
|
60
60
|
- [SourceSimpleGround](#sourcesimpleground)
|
|
61
61
|
- [SourceSimpleInductor](#sourcesimpleinductor)
|
|
62
|
+
- [SourceSimpleLed](#sourcesimpleled)
|
|
62
63
|
- [SourceSimpleMosfet](#sourcesimplemosfet)
|
|
63
64
|
- [SourceSimplePowerSource](#sourcesimplepowersource)
|
|
64
65
|
- [SourceSimplePushButton](#sourcesimplepushbutton)
|
|
@@ -383,6 +384,21 @@ interface SourceSimpleInductor extends SourceComponentBase {
|
|
|
383
384
|
}
|
|
384
385
|
```
|
|
385
386
|
|
|
387
|
+
### SourceSimpleLed
|
|
388
|
+
|
|
389
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_led.ts)
|
|
390
|
+
|
|
391
|
+
Defines a simple led component
|
|
392
|
+
|
|
393
|
+
```typescript
|
|
394
|
+
/** Defines a simple led component */
|
|
395
|
+
interface SourceSimpleLed extends Omit<SourceSimpleDiode, "ftype"> {
|
|
396
|
+
ftype: "simple_led"
|
|
397
|
+
color?: string
|
|
398
|
+
wavelength?: string
|
|
399
|
+
}
|
|
400
|
+
```
|
|
401
|
+
|
|
386
402
|
### SourceSimpleMosfet
|
|
387
403
|
|
|
388
404
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_mosfet.ts)
|