@tscircuit/props 0.0.423 → 0.0.425
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 +35 -3
- package/dist/index.d.ts +7650 -5416
- package/dist/index.js +537 -508
- package/dist/index.js.map +1 -1
- package/lib/components/fiducial.ts +20 -0
- package/lib/components/panel.ts +17 -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,11 @@ export interface PanelProps extends BaseGroupProps {
|
|
|
952
969
|
panelizationMethod?: "tab-routing" | "none";
|
|
953
970
|
/** Gap between boards in a panel */
|
|
954
971
|
boardGap?: Distance;
|
|
972
|
+
layoutMode?: "grid" | "pack" | "none";
|
|
973
|
+
row?: number;
|
|
974
|
+
col?: number;
|
|
975
|
+
cellWidth?: Distance;
|
|
976
|
+
cellHeight?: Distance;
|
|
955
977
|
tabWidth?: Distance;
|
|
956
978
|
tabLength?: Distance;
|
|
957
979
|
mouseBites?: boolean;
|
|
@@ -1573,6 +1595,16 @@ export interface TestpointProps extends CommonComponentProps {
|
|
|
1573
1595
|
|
|
1574
1596
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/testpoint.ts)
|
|
1575
1597
|
|
|
1598
|
+
### ToolingrailProps `<toolingrail />`
|
|
1599
|
+
|
|
1600
|
+
```ts
|
|
1601
|
+
export interface ToolingrailProps {
|
|
1602
|
+
children?: any;
|
|
1603
|
+
}
|
|
1604
|
+
```
|
|
1605
|
+
|
|
1606
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/toolingrail.ts)
|
|
1607
|
+
|
|
1576
1608
|
### TraceProps `<trace />`
|
|
1577
1609
|
|
|
1578
1610
|
```ts
|