@tscircuit/props 0.0.356 → 0.0.358
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 +301 -48
- package/dist/index.d.ts +5 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +19 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,53 +20,80 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
20
20
|
|
|
21
21
|
## Available Components
|
|
22
22
|
|
|
23
|
-
| Component
|
|
24
|
-
|
|
|
25
|
-
| `<analogsimulation />`
|
|
26
|
-
| `<battery />`
|
|
27
|
-
| `<board />`
|
|
28
|
-
| `<breakout />`
|
|
29
|
-
| `<breakoutpoint />`
|
|
30
|
-
| `<cadassembly />`
|
|
31
|
-
| `<cadmodel />`
|
|
32
|
-
| `<capacitor />`
|
|
33
|
-
| `<chip />`
|
|
34
|
-
| `<connector />`
|
|
35
|
-
| `<constrainedlayout />`
|
|
36
|
-
| `<
|
|
37
|
-
| `<
|
|
38
|
-
| `<
|
|
39
|
-
| `<
|
|
40
|
-
| `<
|
|
41
|
-
| `<
|
|
42
|
-
| `<
|
|
43
|
-
| `<
|
|
44
|
-
| `<
|
|
45
|
-
| `<
|
|
46
|
-
| `<
|
|
47
|
-
| `<
|
|
48
|
-
| `<
|
|
49
|
-
| `<
|
|
50
|
-
| `<
|
|
51
|
-
| `<
|
|
52
|
-
| `<
|
|
53
|
-
| `<
|
|
54
|
-
| `<
|
|
55
|
-
| `<
|
|
56
|
-
| `<
|
|
57
|
-
| `<
|
|
58
|
-
| `<
|
|
59
|
-
| `<
|
|
60
|
-
| `<
|
|
61
|
-
| `<
|
|
62
|
-
| `<
|
|
63
|
-
| `<
|
|
64
|
-
| `<
|
|
65
|
-
| `<
|
|
66
|
-
| `<
|
|
67
|
-
| `<
|
|
68
|
-
| `<
|
|
69
|
-
| `<
|
|
23
|
+
| Component | Props Interface |
|
|
24
|
+
| ------------------------- | --------------------------------------------------------------------------- |
|
|
25
|
+
| `<analogsimulation />` | [`AnalogSimulationProps`](#analogsimulationprops-analogsimulation) |
|
|
26
|
+
| `<battery />` | [`BatteryProps`](#batteryprops-battery) |
|
|
27
|
+
| `<board />` | [`BoardProps`](#boardprops-board) |
|
|
28
|
+
| `<breakout />` | [`BreakoutProps`](#breakoutprops-breakout) |
|
|
29
|
+
| `<breakoutpoint />` | [`BreakoutPointProps`](#breakoutpointprops-breakoutpoint) |
|
|
30
|
+
| `<cadassembly />` | [`CadAssemblyProps`](#cadassemblyprops-cadassembly) |
|
|
31
|
+
| `<cadmodel />` | [`CadModelProps`](#cadmodelprops-cadmodel) |
|
|
32
|
+
| `<capacitor />` | [`CapacitorProps`](#capacitorprops-capacitor) |
|
|
33
|
+
| `<chip />` | [`ChipProps`](#chipprops-chip) |
|
|
34
|
+
| `<connector />` | [`ConnectorProps`](#connectorprops-connector) |
|
|
35
|
+
| `<constrainedlayout />` | [`ConstrainedLayoutProps`](#constrainedlayoutprops-constrainedlayout) |
|
|
36
|
+
| `<constraint />` | [`ConstraintProps`](#constraintprops-constraint) |
|
|
37
|
+
| `<copperpour />` | [`CopperPourProps`](#copperpourprops-copperpour) |
|
|
38
|
+
| `<courtyardoutline />` | [`CourtyardOutlineProps`](#courtyardoutlineprops-courtyardoutline) |
|
|
39
|
+
| `<courtyardrect />` | [`CourtyardRectProps`](#courtyardrectprops-courtyardrect) |
|
|
40
|
+
| `<crystal />` | [`CrystalProps`](#crystalprops-crystal) |
|
|
41
|
+
| `<cutout />` | [`RectCutoutProps`](#rectcutoutprops-cutout) |
|
|
42
|
+
| `<diode />` | [`DiodeProps`](#diodeprops-diode) |
|
|
43
|
+
| `<fabricationnotepath />` | [`FabricationNotePathProps`](#fabricationnotepathprops-fabricationnotepath) |
|
|
44
|
+
| `<fabricationnoterect />` | [`FabricationNoteRectProps`](#fabricationnoterectprops-fabricationnoterect) |
|
|
45
|
+
| `<fabricationnotetext />` | [`FabricationNoteTextProps`](#fabricationnotetextprops-fabricationnotetext) |
|
|
46
|
+
| `<footprint />` | [`FootprintProps`](#footprintprops-footprint) |
|
|
47
|
+
| `<fuse />` | [`FuseProps`](#fuseprops-fuse) |
|
|
48
|
+
| `<group />` | [`BaseGroupProps`](#basegroupprops-group) |
|
|
49
|
+
| `<hole />` | [`CircleHoleProps`](#circleholeprops-hole) |
|
|
50
|
+
| `<inductor />` | [`InductorProps`](#inductorprops-inductor) |
|
|
51
|
+
| `<jumper />` | [`JumperProps`](#jumperprops-jumper) |
|
|
52
|
+
| `<led />` | [`LedProps`](#ledprops-led) |
|
|
53
|
+
| `<mosfet />` | [`MosfetProps`](#mosfetprops-mosfet) |
|
|
54
|
+
| `<net />` | [`NetProps`](#netprops-net) |
|
|
55
|
+
| `<netalias />` | [`NetAliasProps`](#netaliasprops-netalias) |
|
|
56
|
+
| `<netlabel />` | [`NetLabelProps`](#netlabelprops-netlabel) |
|
|
57
|
+
| `<pcbkeepout />` | [`PcbKeepoutProps`](#pcbkeepoutprops-pcbkeepout) |
|
|
58
|
+
| `<pcbtrace />` | [`PcbTraceProps`](#pcbtraceprops-pcbtrace) |
|
|
59
|
+
| `<pinheader />` | [`PinHeaderProps`](#pinheaderprops-pinheader) |
|
|
60
|
+
| `<pinout />` | [`PinoutProps`](#pinoutprops-pinout) |
|
|
61
|
+
| `<platedhole />` | [`CirclePlatedHoleProps`](#circleplatedholeprops-platedhole) |
|
|
62
|
+
| `<port />` | [`PortProps`](#portprops-port) |
|
|
63
|
+
| `<potentiometer />` | [`PotentiometerProps`](#potentiometerprops-potentiometer) |
|
|
64
|
+
| `<powersource />` | [`PowerSourceProps`](#powersourceprops-powersource) |
|
|
65
|
+
| `<pushbutton />` | [`PushButtonProps`](#pushbuttonprops-pushbutton) |
|
|
66
|
+
| `<resistor />` | [`ResistorProps`](#resistorprops-resistor) |
|
|
67
|
+
| `<resonator />` | [`ResonatorProps`](#resonatorprops-resonator) |
|
|
68
|
+
| `<schematicarc />` | [`SchematicArcProps`](#schematicarcprops-schematicarc) |
|
|
69
|
+
| `<schematicbox />` | [`SchematicBoxProps`](#schematicboxprops-schematicbox) |
|
|
70
|
+
| `<schematiccell />` | [`SchematicCellProps`](#schematiccellprops-schematiccell) |
|
|
71
|
+
| `<schematiccircle />` | [`SchematicCircleProps`](#schematiccircleprops-schematiccircle) |
|
|
72
|
+
| `<schematicline />` | [`SchematicLineProps`](#schematiclineprops-schematicline) |
|
|
73
|
+
| `<schematicpath />` | [`SchematicPathProps`](#schematicpathprops-schematicpath) |
|
|
74
|
+
| `<schematicrect />` | [`SchematicRectProps`](#schematicrectprops-schematicrect) |
|
|
75
|
+
| `<schematicrow />` | [`SchematicRowProps`](#schematicrowprops-schematicrow) |
|
|
76
|
+
| `<schematictable />` | [`SchematicTableProps`](#schematictableprops-schematictable) |
|
|
77
|
+
| `<schematictext />` | [`SchematicTextProps`](#schematictextprops-schematictext) |
|
|
78
|
+
| `<silkscreencircle />` | [`SilkscreenCircleProps`](#silkscreencircleprops-silkscreencircle) |
|
|
79
|
+
| `<silkscreenline />` | [`SilkscreenLineProps`](#silkscreenlineprops-silkscreenline) |
|
|
80
|
+
| `<silkscreenpath />` | [`SilkscreenPathProps`](#silkscreenpathprops-silkscreenpath) |
|
|
81
|
+
| `<silkscreenrect />` | [`SilkscreenRectProps`](#silkscreenrectprops-silkscreenrect) |
|
|
82
|
+
| `<silkscreentext />` | [`SilkscreenTextProps`](#silkscreentextprops-silkscreentext) |
|
|
83
|
+
| `<smtpad />` | [`RectSmtPadProps`](#rectsmtpadprops-smtpad) |
|
|
84
|
+
| `<solderjumper />` | [`SolderJumperProps`](#solderjumperprops-solderjumper) |
|
|
85
|
+
| `<solderpaste />` | [`RectSolderPasteProps`](#rectsolderpasteprops-solderpaste) |
|
|
86
|
+
| `<stampboard />` | [`StampboardProps`](#stampboardprops-stampboard) |
|
|
87
|
+
| `<subcircuit />` | [`SubcircuitProps`](#subcircuitprops-subcircuit) |
|
|
88
|
+
| `<switch />` | [`SwitchProps`](#switchprops-switch) |
|
|
89
|
+
| `<symbol />` | [`SymbolProps`](#symbolprops-symbol) |
|
|
90
|
+
| `<testpoint />` | [`TestpointProps`](#testpointprops-testpoint) |
|
|
91
|
+
| `<trace />` | [`TraceProps`](#traceprops-trace) |
|
|
92
|
+
| `<tracehint />` | [`TraceHintProps`](#tracehintprops-tracehint) |
|
|
93
|
+
| `<transistor />` | [`TransistorProps`](#transistorprops-transistor) |
|
|
94
|
+
| `<via />` | [`ViaProps`](#viaprops-via) |
|
|
95
|
+
| `<voltageprobe />` | [`VoltageProbeProps`](#voltageprobeprops-voltageprobe) |
|
|
96
|
+
| `<voltagesource />` | [`VoltageSourceProps`](#voltagesourceprops-voltagesource) |
|
|
70
97
|
|
|
71
98
|
<!-- COMPONENT_TABLE_END -->
|
|
72
99
|
|
|
@@ -176,7 +203,8 @@ export interface BatteryProps<PinLabel extends string = string>
|
|
|
176
203
|
### BoardProps `<board />`
|
|
177
204
|
|
|
178
205
|
```ts
|
|
179
|
-
export interface BoardProps
|
|
206
|
+
export interface BoardProps
|
|
207
|
+
extends Omit<SubcircuitGroupProps, "subcircuit" | "connections"> {
|
|
180
208
|
title?: string;
|
|
181
209
|
material?: "fr4" | "fr1";
|
|
182
210
|
/** Number of layers for the PCB */
|
|
@@ -359,6 +387,22 @@ export interface ConstrainedLayoutProps {
|
|
|
359
387
|
|
|
360
388
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/constrainedlayout.ts)
|
|
361
389
|
|
|
390
|
+
### ConstraintProps `<constraint />`
|
|
391
|
+
|
|
392
|
+
```ts
|
|
393
|
+
export type ConstraintProps =
|
|
394
|
+
| PcbXDistConstraint
|
|
395
|
+
| PcbYDistConstraint
|
|
396
|
+
| PcbSameYConstraint
|
|
397
|
+
| PcbSameXConstraint;
|
|
398
|
+
|
|
399
|
+
// -----------------------------------------------------------------------------
|
|
400
|
+
// Zod
|
|
401
|
+
// -----------------------------------------------------------------------------
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/constraint.ts)
|
|
405
|
+
|
|
362
406
|
### CopperPourProps `<copperpour />`
|
|
363
407
|
|
|
364
408
|
```ts
|
|
@@ -373,6 +417,22 @@ export interface CopperPourProps {
|
|
|
373
417
|
|
|
374
418
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/copper-pour.ts)
|
|
375
419
|
|
|
420
|
+
### CourtyardOutlineProps `<courtyardoutline />`
|
|
421
|
+
|
|
422
|
+
```ts
|
|
423
|
+
export type CourtyardOutlineProps = z.input<typeof courtyardOutlineProps>;
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/courtyard-outline.ts)
|
|
427
|
+
|
|
428
|
+
### CourtyardRectProps `<courtyardrect />`
|
|
429
|
+
|
|
430
|
+
```ts
|
|
431
|
+
export type CourtyardRectProps = z.input<typeof courtyardRectProps>;
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/courtyard-rect.ts)
|
|
435
|
+
|
|
376
436
|
### CrystalProps `<crystal />`
|
|
377
437
|
|
|
378
438
|
```ts
|
|
@@ -430,6 +490,30 @@ export interface DiodeProps<PinLabel extends string = string>
|
|
|
430
490
|
|
|
431
491
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/diode.ts)
|
|
432
492
|
|
|
493
|
+
### FabricationNotePathProps `<fabricationnotepath />`
|
|
494
|
+
|
|
495
|
+
```ts
|
|
496
|
+
export type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>;
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/fabrication-note-path.ts)
|
|
500
|
+
|
|
501
|
+
### FabricationNoteRectProps `<fabricationnoterect />`
|
|
502
|
+
|
|
503
|
+
```ts
|
|
504
|
+
export type FabricationNoteRectProps = z.input<typeof fabricationNoteRectProps>;
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/fabrication-note-rect.ts)
|
|
508
|
+
|
|
509
|
+
### FabricationNoteTextProps `<fabricationnotetext />`
|
|
510
|
+
|
|
511
|
+
```ts
|
|
512
|
+
export type FabricationNoteTextProps = z.input<typeof fabricationNoteTextProps>;
|
|
513
|
+
```
|
|
514
|
+
|
|
515
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/fabrication-note-text.ts)
|
|
516
|
+
|
|
433
517
|
### FootprintProps `<footprint />`
|
|
434
518
|
|
|
435
519
|
```ts
|
|
@@ -673,6 +757,14 @@ export interface JumperProps extends CommonComponentProps {
|
|
|
673
757
|
|
|
674
758
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/jumper.ts)
|
|
675
759
|
|
|
760
|
+
### LedProps `<led />`
|
|
761
|
+
|
|
762
|
+
```ts
|
|
763
|
+
export type LedProps = z.input<typeof ledProps>;
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/led.ts)
|
|
767
|
+
|
|
676
768
|
### MosfetProps `<mosfet />`
|
|
677
769
|
|
|
678
770
|
```ts
|
|
@@ -728,6 +820,22 @@ export interface NetLabelProps {
|
|
|
728
820
|
|
|
729
821
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/netlabel.ts)
|
|
730
822
|
|
|
823
|
+
### PcbKeepoutProps `<pcbkeepout />`
|
|
824
|
+
|
|
825
|
+
```ts
|
|
826
|
+
export type PcbKeepoutProps = z.input<typeof pcbKeepoutProps>;
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/pcb-keepout.ts)
|
|
830
|
+
|
|
831
|
+
### PcbTraceProps `<pcbtrace />`
|
|
832
|
+
|
|
833
|
+
```ts
|
|
834
|
+
export type PcbTraceProps = z.input<typeof pcbTraceProps>;
|
|
835
|
+
```
|
|
836
|
+
|
|
837
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/pcb-trace.ts)
|
|
838
|
+
|
|
731
839
|
### PinHeaderProps `<pinheader />`
|
|
732
840
|
|
|
733
841
|
```ts
|
|
@@ -847,6 +955,14 @@ export interface CirclePlatedHoleProps
|
|
|
847
955
|
|
|
848
956
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/platedhole.ts)
|
|
849
957
|
|
|
958
|
+
### PortProps `<port />`
|
|
959
|
+
|
|
960
|
+
```ts
|
|
961
|
+
export type PortProps = z.input<typeof portProps>;
|
|
962
|
+
```
|
|
963
|
+
|
|
964
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/port.ts)
|
|
965
|
+
|
|
850
966
|
### PotentiometerProps `<potentiometer />`
|
|
851
967
|
|
|
852
968
|
```ts
|
|
@@ -858,6 +974,23 @@ export interface PotentiometerProps extends CommonComponentProps {
|
|
|
858
974
|
|
|
859
975
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/potentiometer.ts)
|
|
860
976
|
|
|
977
|
+
### PowerSourceProps `<powersource />`
|
|
978
|
+
|
|
979
|
+
```ts
|
|
980
|
+
export type PowerSourceProps = z.input<typeof powerSourceProps>;
|
|
981
|
+
```
|
|
982
|
+
|
|
983
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/power-source.ts)
|
|
984
|
+
|
|
985
|
+
### PushButtonProps `<pushbutton />`
|
|
986
|
+
|
|
987
|
+
```ts
|
|
988
|
+
export type PushButtonProps<T extends PinLabelsProp | string = string> =
|
|
989
|
+
ChipProps<T>;
|
|
990
|
+
```
|
|
991
|
+
|
|
992
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/push-button.ts)
|
|
993
|
+
|
|
861
994
|
### ResistorProps `<resistor />`
|
|
862
995
|
|
|
863
996
|
```ts
|
|
@@ -887,6 +1020,22 @@ export interface ResonatorProps extends CommonComponentProps {
|
|
|
887
1020
|
|
|
888
1021
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/resonator.ts)
|
|
889
1022
|
|
|
1023
|
+
### SchematicArcProps `<schematicarc />`
|
|
1024
|
+
|
|
1025
|
+
```ts
|
|
1026
|
+
export type SchematicArcProps = z.input<typeof schematicArcProps>;
|
|
1027
|
+
```
|
|
1028
|
+
|
|
1029
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-arc.ts)
|
|
1030
|
+
|
|
1031
|
+
### SchematicBoxProps `<schematicbox />`
|
|
1032
|
+
|
|
1033
|
+
```ts
|
|
1034
|
+
export type SchematicBoxProps = z.input<typeof schematicBoxProps>;
|
|
1035
|
+
```
|
|
1036
|
+
|
|
1037
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-box.ts)
|
|
1038
|
+
|
|
890
1039
|
### SchematicCellProps `<schematiccell />`
|
|
891
1040
|
|
|
892
1041
|
```ts
|
|
@@ -904,6 +1053,38 @@ export interface SchematicCellProps {
|
|
|
904
1053
|
|
|
905
1054
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-cell.ts)
|
|
906
1055
|
|
|
1056
|
+
### SchematicCircleProps `<schematiccircle />`
|
|
1057
|
+
|
|
1058
|
+
```ts
|
|
1059
|
+
export type SchematicCircleProps = z.input<typeof schematicCircleProps>;
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-circle.ts)
|
|
1063
|
+
|
|
1064
|
+
### SchematicLineProps `<schematicline />`
|
|
1065
|
+
|
|
1066
|
+
```ts
|
|
1067
|
+
export type SchematicLineProps = z.input<typeof schematicLineProps>;
|
|
1068
|
+
```
|
|
1069
|
+
|
|
1070
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-line.ts)
|
|
1071
|
+
|
|
1072
|
+
### SchematicPathProps `<schematicpath />`
|
|
1073
|
+
|
|
1074
|
+
```ts
|
|
1075
|
+
export type SchematicPathProps = z.input<typeof schematicPathProps>;
|
|
1076
|
+
```
|
|
1077
|
+
|
|
1078
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-path.ts)
|
|
1079
|
+
|
|
1080
|
+
### SchematicRectProps `<schematicrect />`
|
|
1081
|
+
|
|
1082
|
+
```ts
|
|
1083
|
+
export type SchematicRectProps = z.input<typeof schematicRectProps>;
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1086
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-rect.ts)
|
|
1087
|
+
|
|
907
1088
|
### SchematicRowProps `<schematicrow />`
|
|
908
1089
|
|
|
909
1090
|
```ts
|
|
@@ -931,6 +1112,54 @@ export interface SchematicTableProps {
|
|
|
931
1112
|
|
|
932
1113
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-table.ts)
|
|
933
1114
|
|
|
1115
|
+
### SchematicTextProps `<schematictext />`
|
|
1116
|
+
|
|
1117
|
+
```ts
|
|
1118
|
+
export type SchematicTextProps = z.input<typeof schematicTextProps>;
|
|
1119
|
+
```
|
|
1120
|
+
|
|
1121
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/schematic-text.ts)
|
|
1122
|
+
|
|
1123
|
+
### SilkscreenCircleProps `<silkscreencircle />`
|
|
1124
|
+
|
|
1125
|
+
```ts
|
|
1126
|
+
export type SilkscreenCircleProps = z.input<typeof silkscreenCircleProps>;
|
|
1127
|
+
```
|
|
1128
|
+
|
|
1129
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/silkscreen-circle.ts)
|
|
1130
|
+
|
|
1131
|
+
### SilkscreenLineProps `<silkscreenline />`
|
|
1132
|
+
|
|
1133
|
+
```ts
|
|
1134
|
+
export type SilkscreenLineProps = z.input<typeof silkscreenLineProps>;
|
|
1135
|
+
```
|
|
1136
|
+
|
|
1137
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/silkscreen-line.ts)
|
|
1138
|
+
|
|
1139
|
+
### SilkscreenPathProps `<silkscreenpath />`
|
|
1140
|
+
|
|
1141
|
+
```ts
|
|
1142
|
+
export type SilkscreenPathProps = z.input<typeof silkscreenPathProps>;
|
|
1143
|
+
```
|
|
1144
|
+
|
|
1145
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/silkscreen-path.ts)
|
|
1146
|
+
|
|
1147
|
+
### SilkscreenRectProps `<silkscreenrect />`
|
|
1148
|
+
|
|
1149
|
+
```ts
|
|
1150
|
+
export type SilkscreenRectProps = z.input<typeof silkscreenRectProps>;
|
|
1151
|
+
```
|
|
1152
|
+
|
|
1153
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/silkscreen-rect.ts)
|
|
1154
|
+
|
|
1155
|
+
### SilkscreenTextProps `<silkscreentext />`
|
|
1156
|
+
|
|
1157
|
+
```ts
|
|
1158
|
+
export type SilkscreenTextProps = z.input<typeof silkscreenTextProps>;
|
|
1159
|
+
```
|
|
1160
|
+
|
|
1161
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/silkscreen-text.ts)
|
|
1162
|
+
|
|
934
1163
|
### RectSmtPadProps `<smtpad />`
|
|
935
1164
|
|
|
936
1165
|
```ts
|
|
@@ -996,6 +1225,14 @@ export interface StampboardProps extends BoardProps {
|
|
|
996
1225
|
|
|
997
1226
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/stampboard.ts)
|
|
998
1227
|
|
|
1228
|
+
### SubcircuitProps `<subcircuit />`
|
|
1229
|
+
|
|
1230
|
+
```ts
|
|
1231
|
+
export type SubcircuitProps = SubcircuitGroupProps;
|
|
1232
|
+
```
|
|
1233
|
+
|
|
1234
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/subcircuit.ts)
|
|
1235
|
+
|
|
999
1236
|
### SwitchProps `<switch />`
|
|
1000
1237
|
|
|
1001
1238
|
```ts
|
|
@@ -1061,6 +1298,22 @@ export interface TestpointProps extends CommonComponentProps {
|
|
|
1061
1298
|
|
|
1062
1299
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/testpoint.ts)
|
|
1063
1300
|
|
|
1301
|
+
### TraceProps `<trace />`
|
|
1302
|
+
|
|
1303
|
+
```ts
|
|
1304
|
+
export type TraceProps = z.input<typeof traceProps>;
|
|
1305
|
+
```
|
|
1306
|
+
|
|
1307
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/trace.ts)
|
|
1308
|
+
|
|
1309
|
+
### TraceHintProps `<tracehint />`
|
|
1310
|
+
|
|
1311
|
+
```ts
|
|
1312
|
+
export type TraceHintProps = z.input<typeof traceHintProps>;
|
|
1313
|
+
```
|
|
1314
|
+
|
|
1315
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/trace-hint.ts)
|
|
1316
|
+
|
|
1064
1317
|
### TransistorProps `<transistor />`
|
|
1065
1318
|
|
|
1066
1319
|
```ts
|
package/dist/index.d.ts
CHANGED
|
@@ -10745,7 +10745,7 @@ declare const ninePointAnchor: z.ZodEnum<["top_left", "top_center", "top_right",
|
|
|
10745
10745
|
declare const boardColorPresets: readonly ["not_specified", "green", "red", "blue", "purple", "black", "white", "yellow"];
|
|
10746
10746
|
type BoardColorPreset = (typeof boardColorPresets)[number];
|
|
10747
10747
|
type BoardColor = AutocompleteString<BoardColorPreset>;
|
|
10748
|
-
interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
10748
|
+
interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connections"> {
|
|
10749
10749
|
title?: string;
|
|
10750
10750
|
material?: "fr4" | "fr1";
|
|
10751
10751
|
/** Number of layers for the PCB */
|
|
@@ -10767,7 +10767,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
|
10767
10767
|
/** Color of the bottom silkscreen */
|
|
10768
10768
|
bottomSilkscreenColor?: BoardColor;
|
|
10769
10769
|
}
|
|
10770
|
-
declare const boardProps: z.ZodObject<{
|
|
10770
|
+
declare const boardProps: z.ZodObject<Omit<{
|
|
10771
10771
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
10772
10772
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
10773
10773
|
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -11437,7 +11437,7 @@ declare const boardProps: z.ZodObject<{
|
|
|
11437
11437
|
}>, "many">>;
|
|
11438
11438
|
outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11439
11439
|
outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11440
|
-
} & {
|
|
11440
|
+
}, "connections"> & {
|
|
11441
11441
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
11442
11442
|
layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
11443
11443
|
borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -11525,7 +11525,6 @@ declare const boardProps: z.ZodObject<{
|
|
|
11525
11525
|
matchAdaptTemplate?: any;
|
|
11526
11526
|
schTitle?: string | undefined;
|
|
11527
11527
|
showAsSchematicBox?: boolean | undefined;
|
|
11528
|
-
connections?: Record<string, string | readonly string[] | string[] | undefined> | undefined;
|
|
11529
11528
|
schPinArrangement?: {
|
|
11530
11529
|
leftSize?: number | undefined;
|
|
11531
11530
|
topSize?: number | undefined;
|
|
@@ -11818,7 +11817,6 @@ declare const boardProps: z.ZodObject<{
|
|
|
11818
11817
|
matchAdaptTemplate?: any;
|
|
11819
11818
|
schTitle?: string | undefined;
|
|
11820
11819
|
showAsSchematicBox?: boolean | undefined;
|
|
11821
|
-
connections?: Record<string, string | readonly string[] | string[] | undefined> | undefined;
|
|
11822
11820
|
schPinArrangement?: {
|
|
11823
11821
|
leftSize?: number | undefined;
|
|
11824
11822
|
topSize?: number | undefined;
|
|
@@ -27254,7 +27252,7 @@ interface StampboardProps extends BoardProps {
|
|
|
27254
27252
|
pinPitch?: number | string;
|
|
27255
27253
|
innerHoles?: boolean;
|
|
27256
27254
|
}
|
|
27257
|
-
declare const stampboardProps: z.ZodObject<{
|
|
27255
|
+
declare const stampboardProps: z.ZodObject<Omit<{
|
|
27258
27256
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
27259
27257
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
27260
27258
|
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -27924,7 +27922,7 @@ declare const stampboardProps: z.ZodObject<{
|
|
|
27924
27922
|
}>, "many">>;
|
|
27925
27923
|
outlineOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
27926
27924
|
outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
27927
|
-
} & {
|
|
27925
|
+
}, "connections"> & {
|
|
27928
27926
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
27929
27927
|
layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
27930
27928
|
borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -28027,7 +28025,6 @@ declare const stampboardProps: z.ZodObject<{
|
|
|
28027
28025
|
matchAdaptTemplate?: any;
|
|
28028
28026
|
schTitle?: string | undefined;
|
|
28029
28027
|
showAsSchematicBox?: boolean | undefined;
|
|
28030
|
-
connections?: Record<string, string | readonly string[] | string[] | undefined> | undefined;
|
|
28031
28028
|
schPinArrangement?: {
|
|
28032
28029
|
leftSize?: number | undefined;
|
|
28033
28030
|
topSize?: number | undefined;
|
|
@@ -28330,7 +28327,6 @@ declare const stampboardProps: z.ZodObject<{
|
|
|
28330
28327
|
matchAdaptTemplate?: any;
|
|
28331
28328
|
schTitle?: string | undefined;
|
|
28332
28329
|
showAsSchematicBox?: boolean | undefined;
|
|
28333
|
-
connections?: Record<string, string | readonly string[] | string[] | undefined> | undefined;
|
|
28334
28330
|
schPinArrangement?: {
|
|
28335
28331
|
leftSize?: number | undefined;
|
|
28336
28332
|
topSize?: number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -634,7 +634,7 @@ expectTypesMatch(true);
|
|
|
634
634
|
|
|
635
635
|
// lib/components/board.ts
|
|
636
636
|
var boardColor = z28.custom((value) => typeof value === "string");
|
|
637
|
-
var boardProps = subcircuitGroupProps.extend({
|
|
637
|
+
var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
|
|
638
638
|
material: z28.enum(["fr4", "fr1"]).default("fr4"),
|
|
639
639
|
layers: z28.union([z28.literal(2), z28.literal(4)]).default(2),
|
|
640
640
|
borderRadius: distance.optional(),
|