@tscircuit/props 0.0.423 → 0.0.424
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 +37 -3
- package/dist/index.d.ts +7664 -5416
- package/dist/index.js +539 -508
- package/dist/index.js.map +1 -1
- package/lib/components/fiducial.ts +20 -0
- package/lib/components/panel.ts +21 -5
- package/lib/components/subpanel.ts +10 -0
- package/lib/components/toolingrail.ts +13 -0
- package/lib/index.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
45
45
|
| `<fabricationnotepath />` | [`FabricationNotePathProps`](#fabricationnotepathprops-fabricationnotepath) |
|
|
46
46
|
| `<fabricationnoterect />` | [`FabricationNoteRectProps`](#fabricationnoterectprops-fabricationnoterect) |
|
|
47
47
|
| `<fabricationnotetext />` | [`FabricationNoteTextProps`](#fabricationnotetextprops-fabricationnotetext) |
|
|
48
|
+
| `<fiducial />` | [`FiducialProps`](#fiducialprops-fiducial) |
|
|
48
49
|
| `<footprint />` | [`FootprintProps`](#footprintprops-footprint) |
|
|
49
50
|
| `<fuse />` | [`FuseProps`](#fuseprops-fuse) |
|
|
50
51
|
| `<group />` | [`BaseGroupProps`](#basegroupprops-group) |
|
|
@@ -94,9 +95,11 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
94
95
|
| `<solderpaste />` | [`RectSolderPasteProps`](#rectsolderpasteprops-solderpaste) |
|
|
95
96
|
| `<stampboard />` | [`StampboardProps`](#stampboardprops-stampboard) |
|
|
96
97
|
| `<subcircuit />` | [`SubcircuitProps`](#subcircuitprops-subcircuit) |
|
|
98
|
+
| `<subpanel />` | [`SubpanelProps`](#subpanelprops-subpanel) |
|
|
97
99
|
| `<switch />` | [`SwitchProps`](#switchprops-switch) |
|
|
98
100
|
| `<symbol />` | [`SymbolProps`](#symbolprops-symbol) |
|
|
99
101
|
| `<testpoint />` | [`TestpointProps`](#testpointprops-testpoint) |
|
|
102
|
+
| `<toolingrail />` | [`ToolingrailProps`](#toolingrailprops-toolingrail) |
|
|
100
103
|
| `<trace />` | [`TraceProps`](#traceprops-trace) |
|
|
101
104
|
| `<tracehint />` | [`TraceHintProps`](#tracehintprops-tracehint) |
|
|
102
105
|
| `<transistor />` | [`TransistorProps`](#transistorprops-transistor) |
|
|
@@ -602,6 +605,17 @@ export interface FabricationNoteTextProps extends PcbLayoutProps {
|
|
|
602
605
|
|
|
603
606
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/fabrication-note-text.ts)
|
|
604
607
|
|
|
608
|
+
### FiducialProps `<fiducial />`
|
|
609
|
+
|
|
610
|
+
```ts
|
|
611
|
+
export interface FiducialProps extends CommonComponentProps {
|
|
612
|
+
soldermaskPullback?: Distance;
|
|
613
|
+
padDiameter?: Distance;
|
|
614
|
+
}
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/fiducial.ts)
|
|
618
|
+
|
|
605
619
|
### FootprintProps `<footprint />`
|
|
606
620
|
|
|
607
621
|
```ts
|
|
@@ -940,9 +954,12 @@ export interface NetLabelProps {
|
|
|
940
954
|
### PanelProps `<panel />`
|
|
941
955
|
|
|
942
956
|
```ts
|
|
943
|
-
export interface PanelProps extends
|
|
944
|
-
|
|
945
|
-
height
|
|
957
|
+
export interface PanelProps extends Omit<
|
|
958
|
+
BaseGroupProps,
|
|
959
|
+
"height" | "layoutMode" | "width"
|
|
960
|
+
> {
|
|
961
|
+
width?: Distance;
|
|
962
|
+
height?: Distance;
|
|
946
963
|
children?: BaseGroupProps["children"];
|
|
947
964
|
/**
|
|
948
965
|
* If true, prevent a solder mask from being applied to this panel.
|
|
@@ -952,6 +969,13 @@ export interface PanelProps extends BaseGroupProps {
|
|
|
952
969
|
panelizationMethod?: "tab-routing" | "none";
|
|
953
970
|
/** Gap between boards in a panel */
|
|
954
971
|
boardGap?: Distance;
|
|
972
|
+
boardAreaWidth?: Distance;
|
|
973
|
+
boardAreaHeight?: Distance;
|
|
974
|
+
layoutMode?: "grid" | "pack" | "none";
|
|
975
|
+
row?: number;
|
|
976
|
+
col?: number;
|
|
977
|
+
cellWidth?: Distance;
|
|
978
|
+
cellHeight?: Distance;
|
|
955
979
|
tabWidth?: Distance;
|
|
956
980
|
tabLength?: Distance;
|
|
957
981
|
mouseBites?: boolean;
|
|
@@ -1573,6 +1597,16 @@ export interface TestpointProps extends CommonComponentProps {
|
|
|
1573
1597
|
|
|
1574
1598
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/testpoint.ts)
|
|
1575
1599
|
|
|
1600
|
+
### ToolingrailProps `<toolingrail />`
|
|
1601
|
+
|
|
1602
|
+
```ts
|
|
1603
|
+
export interface ToolingrailProps {
|
|
1604
|
+
children?: any;
|
|
1605
|
+
}
|
|
1606
|
+
```
|
|
1607
|
+
|
|
1608
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/toolingrail.ts)
|
|
1609
|
+
|
|
1576
1610
|
### TraceProps `<trace />`
|
|
1577
1611
|
|
|
1578
1612
|
```ts
|