circuit-json 0.0.169 → 0.0.171
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 +113 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -177,6 +177,8 @@ There are 3 main element prefixes:
|
|
|
177
177
|
|
|
178
178
|
### SourceComponentBase
|
|
179
179
|
|
|
180
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/base/source_component_base.ts)
|
|
181
|
+
|
|
180
182
|
```typescript
|
|
181
183
|
interface SourceComponentBase {
|
|
182
184
|
type: "source_component"
|
|
@@ -193,6 +195,8 @@ interface SourceComponentBase {
|
|
|
193
195
|
|
|
194
196
|
### SourceFailedToCreateComponentError
|
|
195
197
|
|
|
198
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_failed_to_create_component_error.ts)
|
|
199
|
+
|
|
196
200
|
```typescript
|
|
197
201
|
/** Error emitted when a component fails to be constructed.
|
|
198
202
|
* Contains details about the failure and prevents the component from being rendered. */
|
|
@@ -211,6 +215,8 @@ interface SourceFailedToCreateComponentError {
|
|
|
211
215
|
|
|
212
216
|
### SourceLed
|
|
213
217
|
|
|
218
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_led.ts)
|
|
219
|
+
|
|
214
220
|
Defines an LED component that extends the simple diode
|
|
215
221
|
|
|
216
222
|
```typescript
|
|
@@ -222,6 +228,8 @@ interface SourceLed extends SourceComponentBase {
|
|
|
222
228
|
|
|
223
229
|
### SourceMissingPropertyError
|
|
224
230
|
|
|
231
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_missing_property_error.ts)
|
|
232
|
+
|
|
225
233
|
The source code is missing a property
|
|
226
234
|
|
|
227
235
|
```typescript
|
|
@@ -238,6 +246,8 @@ interface SourceMissingPropertyError {
|
|
|
238
246
|
|
|
239
247
|
### SourcePort
|
|
240
248
|
|
|
249
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_port.ts)
|
|
250
|
+
|
|
241
251
|
Defines a source port that can be connected to other components
|
|
242
252
|
|
|
243
253
|
```typescript
|
|
@@ -255,6 +265,8 @@ interface SourcePort {
|
|
|
255
265
|
|
|
256
266
|
### SourceProjectMetadata
|
|
257
267
|
|
|
268
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_project_metadata.ts)
|
|
269
|
+
|
|
258
270
|
```typescript
|
|
259
271
|
interface SourceProjectMetadata {
|
|
260
272
|
type: "source_project_metadata"
|
|
@@ -266,6 +278,8 @@ interface SourceProjectMetadata {
|
|
|
266
278
|
|
|
267
279
|
### SourceSimpleBattery
|
|
268
280
|
|
|
281
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_battery.ts)
|
|
282
|
+
|
|
269
283
|
Defines a simple battery component
|
|
270
284
|
|
|
271
285
|
```typescript
|
|
@@ -278,6 +292,8 @@ interface SourceSimpleBattery extends SourceComponentBase {
|
|
|
278
292
|
|
|
279
293
|
### SourceSimpleCapacitor
|
|
280
294
|
|
|
295
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_capacitor.ts)
|
|
296
|
+
|
|
281
297
|
Defines a simple capacitor component
|
|
282
298
|
|
|
283
299
|
```typescript
|
|
@@ -293,6 +309,8 @@ interface SourceSimpleCapacitor extends SourceComponentBase {
|
|
|
293
309
|
|
|
294
310
|
### SourceSimpleChip
|
|
295
311
|
|
|
312
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_chip.ts)
|
|
313
|
+
|
|
296
314
|
Defines a simple integrated circuit component
|
|
297
315
|
|
|
298
316
|
```typescript
|
|
@@ -304,6 +322,8 @@ interface SourceSimpleChip extends SourceComponentBase {
|
|
|
304
322
|
|
|
305
323
|
### SourceSimpleCrystal
|
|
306
324
|
|
|
325
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_crystal.ts)
|
|
326
|
+
|
|
307
327
|
Defines a simple crystal oscillator component
|
|
308
328
|
|
|
309
329
|
```typescript
|
|
@@ -317,6 +337,8 @@ interface SourceSimpleCrystal extends SourceComponentBase {
|
|
|
317
337
|
|
|
318
338
|
### SourceSimpleDiode
|
|
319
339
|
|
|
340
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_diode.ts)
|
|
341
|
+
|
|
320
342
|
Defines a simple diode component
|
|
321
343
|
|
|
322
344
|
```typescript
|
|
@@ -328,6 +350,8 @@ interface SourceSimpleDiode extends SourceComponentBase {
|
|
|
328
350
|
|
|
329
351
|
### SourceSimpleGround
|
|
330
352
|
|
|
353
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_ground.ts)
|
|
354
|
+
|
|
331
355
|
Defines a simple ground component
|
|
332
356
|
|
|
333
357
|
```typescript
|
|
@@ -339,6 +363,8 @@ interface SourceSimpleGround extends SourceComponentBase {
|
|
|
339
363
|
|
|
340
364
|
### SourceSimpleInductor
|
|
341
365
|
|
|
366
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_inductor.ts)
|
|
367
|
+
|
|
342
368
|
Defines a simple inductor component
|
|
343
369
|
|
|
344
370
|
```typescript
|
|
@@ -351,6 +377,8 @@ interface SourceSimpleInductor extends SourceComponentBase {
|
|
|
351
377
|
|
|
352
378
|
### SourceSimpleMosfet
|
|
353
379
|
|
|
380
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_mosfet.ts)
|
|
381
|
+
|
|
354
382
|
```typescript
|
|
355
383
|
/** Defines a simple mosfet component
|
|
356
384
|
* This is a three-pin semiconductor device (source, gate, drain)
|
|
@@ -365,6 +393,8 @@ interface SourceSimpleMosfet extends SourceComponentBase {
|
|
|
365
393
|
|
|
366
394
|
### SourceSimplePowerSource
|
|
367
395
|
|
|
396
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_power_source.ts)
|
|
397
|
+
|
|
368
398
|
Defines a simple power source component
|
|
369
399
|
|
|
370
400
|
```typescript
|
|
@@ -377,6 +407,8 @@ interface SourceSimplePowerSource extends SourceComponentBase {
|
|
|
377
407
|
|
|
378
408
|
### SourceSimplePushButton
|
|
379
409
|
|
|
410
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_push_button.ts)
|
|
411
|
+
|
|
380
412
|
Defines a simple push button component
|
|
381
413
|
|
|
382
414
|
```typescript
|
|
@@ -388,6 +420,8 @@ interface SourceSimplePushButton extends SourceComponentBase {
|
|
|
388
420
|
|
|
389
421
|
### SourceSimpleResistor
|
|
390
422
|
|
|
423
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_resistor.ts)
|
|
424
|
+
|
|
391
425
|
Defines a simple resistor component
|
|
392
426
|
|
|
393
427
|
```typescript
|
|
@@ -401,6 +435,8 @@ interface SourceSimpleResistor extends SourceComponentBase {
|
|
|
401
435
|
|
|
402
436
|
### SourceSimpleResonator
|
|
403
437
|
|
|
438
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_resonator.ts)
|
|
439
|
+
|
|
404
440
|
Defines a simple resonator component
|
|
405
441
|
|
|
406
442
|
```typescript
|
|
@@ -415,6 +451,8 @@ interface SourceSimpleResonator extends SourceComponentBase {
|
|
|
415
451
|
|
|
416
452
|
### SourceSimpleSwitch
|
|
417
453
|
|
|
454
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_switch.ts)
|
|
455
|
+
|
|
418
456
|
Defines a simple switch component
|
|
419
457
|
|
|
420
458
|
```typescript
|
|
@@ -426,6 +464,8 @@ interface SourceSimpleSwitch extends SourceComponentBase {
|
|
|
426
464
|
|
|
427
465
|
### SourceSimpleTransistor
|
|
428
466
|
|
|
467
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_transistor.ts)
|
|
468
|
+
|
|
429
469
|
```typescript
|
|
430
470
|
/** Defines a simple transistor component
|
|
431
471
|
* This is a three-pin semiconductor device (emitter, base, collector)
|
|
@@ -439,6 +479,8 @@ interface SourceSimpleTransistor extends SourceComponentBase {
|
|
|
439
479
|
|
|
440
480
|
### SourceTrace
|
|
441
481
|
|
|
482
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_trace.ts)
|
|
483
|
+
|
|
442
484
|
```typescript
|
|
443
485
|
interface SourceTrace {
|
|
444
486
|
type: "source_trace"
|
|
@@ -457,6 +499,8 @@ interface SourceTrace {
|
|
|
457
499
|
|
|
458
500
|
### PcbAutoroutingError
|
|
459
501
|
|
|
502
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_autorouting_error.ts)
|
|
503
|
+
|
|
460
504
|
```typescript
|
|
461
505
|
interface PcbAutoroutingErrorInterface {
|
|
462
506
|
type: "pcb_autorouting_error"
|
|
@@ -467,6 +511,8 @@ interface PcbAutoroutingErrorInterface {
|
|
|
467
511
|
|
|
468
512
|
### PcbBoard
|
|
469
513
|
|
|
514
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_board.ts)
|
|
515
|
+
|
|
470
516
|
Defines the board outline of the PCB
|
|
471
517
|
|
|
472
518
|
```typescript
|
|
@@ -488,6 +534,8 @@ interface PcbBoard {
|
|
|
488
534
|
|
|
489
535
|
### PcbComponent
|
|
490
536
|
|
|
537
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_component.ts)
|
|
538
|
+
|
|
491
539
|
Defines a component on the PCB
|
|
492
540
|
|
|
493
541
|
```typescript
|
|
@@ -507,6 +555,8 @@ interface PcbComponent {
|
|
|
507
555
|
|
|
508
556
|
### PcbFabricationNotePath
|
|
509
557
|
|
|
558
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_fabrication_note_path.ts)
|
|
559
|
+
|
|
510
560
|
Defines a fabrication path on the PCB for fabricators or assemblers
|
|
511
561
|
|
|
512
562
|
```typescript
|
|
@@ -525,6 +575,8 @@ interface PcbFabricationNotePath {
|
|
|
525
575
|
|
|
526
576
|
### PcbFabricationNoteText
|
|
527
577
|
|
|
578
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_fabrication_note_text.ts)
|
|
579
|
+
|
|
528
580
|
Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators
|
|
529
581
|
|
|
530
582
|
```typescript
|
|
@@ -552,6 +604,8 @@ interface PcbFabricationNoteText {
|
|
|
552
604
|
|
|
553
605
|
### PcbGroup
|
|
554
606
|
|
|
607
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_group.ts)
|
|
608
|
+
|
|
555
609
|
Defines a group of components on the PCB
|
|
556
610
|
|
|
557
611
|
```typescript
|
|
@@ -573,6 +627,8 @@ interface PcbGroup {
|
|
|
573
627
|
|
|
574
628
|
### PcbHole
|
|
575
629
|
|
|
630
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_hole.ts)
|
|
631
|
+
|
|
576
632
|
Defines a circular or square hole on the PCB
|
|
577
633
|
|
|
578
634
|
```typescript
|
|
@@ -591,6 +647,8 @@ interface PcbHoleCircleOrSquare {
|
|
|
591
647
|
|
|
592
648
|
### PcbManualEditConflictWarning
|
|
593
649
|
|
|
650
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_manual_edit_conflict_warning.ts)
|
|
651
|
+
|
|
594
652
|
Warning emitted when a component has both manual placement (via manualEdits) and explicit pcbX/pcbY coordinates
|
|
595
653
|
|
|
596
654
|
```typescript
|
|
@@ -608,6 +666,8 @@ interface PcbManualEditConflictWarning {
|
|
|
608
666
|
|
|
609
667
|
### PcbMissingFootprintError
|
|
610
668
|
|
|
669
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_missing_footprint_error.ts)
|
|
670
|
+
|
|
611
671
|
Defines a placement error on the PCB
|
|
612
672
|
|
|
613
673
|
```typescript
|
|
@@ -625,6 +685,8 @@ interface PcbMissingFootprintError {
|
|
|
625
685
|
|
|
626
686
|
### PcbPlacementError
|
|
627
687
|
|
|
688
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_placement_error.ts)
|
|
689
|
+
|
|
628
690
|
Defines a placement error on the PCB
|
|
629
691
|
|
|
630
692
|
```typescript
|
|
@@ -638,6 +700,8 @@ interface PcbPlacementError {
|
|
|
638
700
|
|
|
639
701
|
### PcbPlatedHole
|
|
640
702
|
|
|
703
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_plated_hole.ts)
|
|
704
|
+
|
|
641
705
|
Defines a circular plated hole on the PCB
|
|
642
706
|
|
|
643
707
|
```typescript
|
|
@@ -700,6 +764,8 @@ interface PcbHoleCircularWithRectPad {
|
|
|
700
764
|
|
|
701
765
|
### PcbPort
|
|
702
766
|
|
|
767
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_port.ts)
|
|
768
|
+
|
|
703
769
|
Defines a port on the PCB
|
|
704
770
|
|
|
705
771
|
```typescript
|
|
@@ -719,6 +785,8 @@ interface PcbPort {
|
|
|
719
785
|
|
|
720
786
|
### PcbPortNotMatchedError
|
|
721
787
|
|
|
788
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_port_not_matched_error.ts)
|
|
789
|
+
|
|
722
790
|
Defines a trace error on the PCB where a port is not matched
|
|
723
791
|
|
|
724
792
|
```typescript
|
|
@@ -733,6 +801,8 @@ interface PcbPortNotMatchedError {
|
|
|
733
801
|
|
|
734
802
|
### PcbSilkscreenCircle
|
|
735
803
|
|
|
804
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_silkscreen_circle.ts)
|
|
805
|
+
|
|
736
806
|
Defines a silkscreen circle on the PCB
|
|
737
807
|
|
|
738
808
|
```typescript
|
|
@@ -752,6 +822,8 @@ interface PcbSilkscreenCircle {
|
|
|
752
822
|
|
|
753
823
|
### PcbSilkscreenLine
|
|
754
824
|
|
|
825
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_silkscreen_line.ts)
|
|
826
|
+
|
|
755
827
|
Defines a silkscreen line on the PCB
|
|
756
828
|
|
|
757
829
|
```typescript
|
|
@@ -773,6 +845,8 @@ interface PcbSilkscreenLine {
|
|
|
773
845
|
|
|
774
846
|
### PcbSilkscreenOval
|
|
775
847
|
|
|
848
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_silkscreen_oval.ts)
|
|
849
|
+
|
|
776
850
|
Defines a silkscreen oval on the PCB
|
|
777
851
|
|
|
778
852
|
```typescript
|
|
@@ -792,6 +866,8 @@ interface PcbSilkscreenOval {
|
|
|
792
866
|
|
|
793
867
|
### PcbSilkscreenPath
|
|
794
868
|
|
|
869
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_silkscreen_path.ts)
|
|
870
|
+
|
|
795
871
|
Defines a silkscreen path on the PCB
|
|
796
872
|
|
|
797
873
|
```typescript
|
|
@@ -810,6 +886,8 @@ interface PcbSilkscreenPath {
|
|
|
810
886
|
|
|
811
887
|
### PcbSilkscreenPill
|
|
812
888
|
|
|
889
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_silkscreen_pill.ts)
|
|
890
|
+
|
|
813
891
|
Defines a silkscreen pill on the PCB
|
|
814
892
|
|
|
815
893
|
```typescript
|
|
@@ -829,6 +907,8 @@ interface PcbSilkscreenPill {
|
|
|
829
907
|
|
|
830
908
|
### PcbSilkscreenRect
|
|
831
909
|
|
|
910
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_silkscreen_rect.ts)
|
|
911
|
+
|
|
832
912
|
Defines a silkscreen rect on the PCB
|
|
833
913
|
|
|
834
914
|
```typescript
|
|
@@ -849,6 +929,8 @@ interface PcbSilkscreenRect {
|
|
|
849
929
|
|
|
850
930
|
### PcbSilkscreenText
|
|
851
931
|
|
|
932
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_silkscreen_text.ts)
|
|
933
|
+
|
|
852
934
|
Defines silkscreen text on the PCB
|
|
853
935
|
|
|
854
936
|
```typescript
|
|
@@ -877,6 +959,8 @@ interface PcbSilkscreenText {
|
|
|
877
959
|
|
|
878
960
|
### PcbSolderPaste
|
|
879
961
|
|
|
962
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_solder_paste.ts)
|
|
963
|
+
|
|
880
964
|
Defines solderpaste on the PCB
|
|
881
965
|
|
|
882
966
|
```typescript
|
|
@@ -898,6 +982,8 @@ interface PcbSolderPasteCircle {
|
|
|
898
982
|
|
|
899
983
|
### PcbText
|
|
900
984
|
|
|
985
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_text.ts)
|
|
986
|
+
|
|
901
987
|
Defines text on the PCB
|
|
902
988
|
|
|
903
989
|
```typescript
|
|
@@ -920,6 +1006,8 @@ interface PcbText {
|
|
|
920
1006
|
|
|
921
1007
|
### PcbTrace
|
|
922
1008
|
|
|
1009
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace.ts)
|
|
1010
|
+
|
|
923
1011
|
```typescript
|
|
924
1012
|
interface PcbTraceRoutePointWire {
|
|
925
1013
|
route_type: "wire"
|
|
@@ -934,6 +1022,8 @@ interface PcbTraceRoutePointWire {
|
|
|
934
1022
|
|
|
935
1023
|
### PcbTraceError
|
|
936
1024
|
|
|
1025
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace_error.ts)
|
|
1026
|
+
|
|
937
1027
|
Defines a trace error on the PCB
|
|
938
1028
|
|
|
939
1029
|
```typescript
|
|
@@ -953,6 +1043,8 @@ interface PcbTraceError {
|
|
|
953
1043
|
|
|
954
1044
|
### PcbTraceHint
|
|
955
1045
|
|
|
1046
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace_hint.ts)
|
|
1047
|
+
|
|
956
1048
|
A hint that can be used during generation of a PCB trace.
|
|
957
1049
|
|
|
958
1050
|
```typescript
|
|
@@ -970,6 +1062,8 @@ interface PcbTraceHint {
|
|
|
970
1062
|
|
|
971
1063
|
### SchematicBox
|
|
972
1064
|
|
|
1065
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_box.ts)
|
|
1066
|
+
|
|
973
1067
|
```typescript
|
|
974
1068
|
interface SchematicBox {
|
|
975
1069
|
type: "schematic_box"
|
|
@@ -983,6 +1077,8 @@ interface SchematicBox {
|
|
|
983
1077
|
|
|
984
1078
|
### SchematicComponent
|
|
985
1079
|
|
|
1080
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_component.ts)
|
|
1081
|
+
|
|
986
1082
|
```typescript
|
|
987
1083
|
interface SchematicComponent {
|
|
988
1084
|
type: "schematic_component"
|
|
@@ -1013,6 +1109,8 @@ interface SchematicPortArrangementBySides {
|
|
|
1013
1109
|
|
|
1014
1110
|
### SchematicError
|
|
1015
1111
|
|
|
1112
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_error.ts)
|
|
1113
|
+
|
|
1016
1114
|
```typescript
|
|
1017
1115
|
interface SchematicError {
|
|
1018
1116
|
type: "schematic_error"
|
|
@@ -1024,6 +1122,8 @@ interface SchematicError {
|
|
|
1024
1122
|
|
|
1025
1123
|
### SchematicLine
|
|
1026
1124
|
|
|
1125
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_line.ts)
|
|
1126
|
+
|
|
1027
1127
|
```typescript
|
|
1028
1128
|
/** Defines a line on the schematic, this can be used for adding arbitrary lines
|
|
1029
1129
|
* to a schematic, but don't use it for drawing traces, schematic boxes or where
|
|
@@ -1040,6 +1140,8 @@ interface SchematicLine {
|
|
|
1040
1140
|
|
|
1041
1141
|
### SchematicManualEditConflictWarning
|
|
1042
1142
|
|
|
1143
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_manual_edit_conflict_warning.ts)
|
|
1144
|
+
|
|
1043
1145
|
Warning emitted when a component has both manual placement (via manualEdits) and explicit schX/schY coordinates
|
|
1044
1146
|
|
|
1045
1147
|
```typescript
|
|
@@ -1057,6 +1159,8 @@ interface SchematicManualEditConflictWarning {
|
|
|
1057
1159
|
|
|
1058
1160
|
### SchematicPath
|
|
1059
1161
|
|
|
1162
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_path.ts)
|
|
1163
|
+
|
|
1060
1164
|
```typescript
|
|
1061
1165
|
interface SchematicPath {
|
|
1062
1166
|
type: "schematic_path"
|
|
@@ -1069,6 +1173,8 @@ interface SchematicPath {
|
|
|
1069
1173
|
|
|
1070
1174
|
### SchematicPort
|
|
1071
1175
|
|
|
1176
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_port.ts)
|
|
1177
|
+
|
|
1072
1178
|
```typescript
|
|
1073
1179
|
interface SchematicPort {
|
|
1074
1180
|
type: "schematic_port"
|
|
@@ -1087,12 +1193,15 @@ interface SchematicPort {
|
|
|
1087
1193
|
|
|
1088
1194
|
### SchematicText
|
|
1089
1195
|
|
|
1196
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_text.ts)
|
|
1197
|
+
|
|
1090
1198
|
```typescript
|
|
1091
1199
|
interface SchematicText {
|
|
1092
1200
|
type: "schematic_text"
|
|
1093
1201
|
schematic_component_id?: string
|
|
1094
1202
|
schematic_text_id: string
|
|
1095
1203
|
text: string
|
|
1204
|
+
font_size: number
|
|
1096
1205
|
position: {
|
|
1097
1206
|
x: number
|
|
1098
1207
|
y: number
|
|
@@ -1101,6 +1210,8 @@ interface SchematicText {
|
|
|
1101
1210
|
|
|
1102
1211
|
### SchematicTrace
|
|
1103
1212
|
|
|
1213
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_trace.ts)
|
|
1214
|
+
|
|
1104
1215
|
```typescript
|
|
1105
1216
|
interface SchematicTraceEdge {
|
|
1106
1217
|
from: {
|
|
@@ -1111,6 +1222,8 @@ interface SchematicTraceEdge {
|
|
|
1111
1222
|
|
|
1112
1223
|
### SchematicVoltageProbe
|
|
1113
1224
|
|
|
1225
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_voltage_probe.ts)
|
|
1226
|
+
|
|
1114
1227
|
```typescript
|
|
1115
1228
|
interface SchematicVoltageProbe {
|
|
1116
1229
|
type: "schematic_voltage_probe"
|
package/dist/index.d.mts
CHANGED
|
@@ -3840,6 +3840,7 @@ interface SchematicText {
|
|
|
3840
3840
|
schematic_component_id?: string;
|
|
3841
3841
|
schematic_text_id: string;
|
|
3842
3842
|
text: string;
|
|
3843
|
+
font_size: number;
|
|
3843
3844
|
position: {
|
|
3844
3845
|
x: number;
|
|
3845
3846
|
y: number;
|
|
@@ -3853,6 +3854,7 @@ declare const schematic_text: z.ZodObject<{
|
|
|
3853
3854
|
schematic_component_id: z.ZodOptional<z.ZodString>;
|
|
3854
3855
|
schematic_text_id: z.ZodString;
|
|
3855
3856
|
text: z.ZodString;
|
|
3857
|
+
font_size: z.ZodDefault<z.ZodNumber>;
|
|
3856
3858
|
position: z.ZodObject<{
|
|
3857
3859
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3858
3860
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -3871,6 +3873,7 @@ declare const schematic_text: z.ZodObject<{
|
|
|
3871
3873
|
type: "schematic_text";
|
|
3872
3874
|
rotation: number;
|
|
3873
3875
|
text: string;
|
|
3876
|
+
font_size: number;
|
|
3874
3877
|
color: string;
|
|
3875
3878
|
schematic_text_id: string;
|
|
3876
3879
|
position: {
|
|
@@ -3888,6 +3891,7 @@ declare const schematic_text: z.ZodObject<{
|
|
|
3888
3891
|
};
|
|
3889
3892
|
anchor?: "top" | "bottom" | "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center" | "left" | "right" | undefined;
|
|
3890
3893
|
rotation?: number | undefined;
|
|
3894
|
+
font_size?: number | undefined;
|
|
3891
3895
|
color?: string | undefined;
|
|
3892
3896
|
schematic_component_id?: string | undefined;
|
|
3893
3897
|
}>;
|
|
@@ -9699,6 +9703,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9699
9703
|
schematic_component_id: z.ZodOptional<z.ZodString>;
|
|
9700
9704
|
schematic_text_id: z.ZodString;
|
|
9701
9705
|
text: z.ZodString;
|
|
9706
|
+
font_size: z.ZodDefault<z.ZodNumber>;
|
|
9702
9707
|
position: z.ZodObject<{
|
|
9703
9708
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
9704
9709
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -9717,6 +9722,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9717
9722
|
type: "schematic_text";
|
|
9718
9723
|
rotation: number;
|
|
9719
9724
|
text: string;
|
|
9725
|
+
font_size: number;
|
|
9720
9726
|
color: string;
|
|
9721
9727
|
schematic_text_id: string;
|
|
9722
9728
|
position: {
|
|
@@ -9734,6 +9740,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9734
9740
|
};
|
|
9735
9741
|
anchor?: "top" | "bottom" | "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center" | "left" | "right" | undefined;
|
|
9736
9742
|
rotation?: number | undefined;
|
|
9743
|
+
font_size?: number | undefined;
|
|
9737
9744
|
color?: string | undefined;
|
|
9738
9745
|
schematic_component_id?: string | undefined;
|
|
9739
9746
|
}>, z.ZodObject<{
|
|
@@ -13834,6 +13841,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
13834
13841
|
schematic_component_id: z.ZodOptional<z.ZodString>;
|
|
13835
13842
|
schematic_text_id: z.ZodString;
|
|
13836
13843
|
text: z.ZodString;
|
|
13844
|
+
font_size: z.ZodDefault<z.ZodNumber>;
|
|
13837
13845
|
position: z.ZodObject<{
|
|
13838
13846
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
13839
13847
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -13852,6 +13860,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
13852
13860
|
type: "schematic_text";
|
|
13853
13861
|
rotation: number;
|
|
13854
13862
|
text: string;
|
|
13863
|
+
font_size: number;
|
|
13855
13864
|
color: string;
|
|
13856
13865
|
schematic_text_id: string;
|
|
13857
13866
|
position: {
|
|
@@ -13869,6 +13878,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
13869
13878
|
};
|
|
13870
13879
|
anchor?: "top" | "bottom" | "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center" | "left" | "right" | undefined;
|
|
13871
13880
|
rotation?: number | undefined;
|
|
13881
|
+
font_size?: number | undefined;
|
|
13872
13882
|
color?: string | undefined;
|
|
13873
13883
|
schematic_component_id?: string | undefined;
|
|
13874
13884
|
}>, z.ZodObject<{
|
package/dist/index.mjs
CHANGED