@tscircuit/props 0.0.207 → 0.0.209
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 -0
- package/dist/index.d.ts +702 -1
- package/dist/index.js +123 -105
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +2 -0
- package/lib/components/testpoint.ts +52 -0
- package/lib/index.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput)
|
|
|
45
45
|
| `<solderpaste />` | [`RectSolderPasteProps`](#rectsolderpasteprops-solderpaste) |
|
|
46
46
|
| `<stampboard />` | [`StampboardProps`](#stampboardprops-stampboard) |
|
|
47
47
|
| `<switch />` | [`SwitchProps`](#switchprops-switch) |
|
|
48
|
+
| `<testpoint />` | [`TestpointProps`](#testpointprops-testpoint) |
|
|
48
49
|
| `<transistor />` | [`TransistorProps`](#transistorprops-transistor) |
|
|
49
50
|
<!-- COMPONENT_TABLE_END -->
|
|
50
51
|
|
|
@@ -620,6 +621,40 @@ export interface SwitchProps extends CommonComponentProps {
|
|
|
620
621
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/switch.ts)
|
|
621
622
|
|
|
622
623
|
|
|
624
|
+
### TestpointProps `<testpoint />`
|
|
625
|
+
|
|
626
|
+
```ts
|
|
627
|
+
export interface TestpointProps extends CommonComponentProps {
|
|
628
|
+
/**
|
|
629
|
+
* The footprint variant of the testpoint either a surface pad or through-hole
|
|
630
|
+
*/
|
|
631
|
+
footprintVariant?: "pad" | "through_hole"
|
|
632
|
+
/**
|
|
633
|
+
* The shape of the pad if using a pad variant
|
|
634
|
+
*/
|
|
635
|
+
padShape?: "rect" | "circle"
|
|
636
|
+
/**
|
|
637
|
+
* Diameter of the copper pad (applies to both SMD pads and plated holes)
|
|
638
|
+
*/
|
|
639
|
+
padDiameter?: number | string
|
|
640
|
+
/**
|
|
641
|
+
* Diameter of the hole if using a through-hole testpoint
|
|
642
|
+
*/
|
|
643
|
+
holeDiameter?: number | string
|
|
644
|
+
/**
|
|
645
|
+
* Width of the pad when padShape is rect
|
|
646
|
+
*/
|
|
647
|
+
width?: number | string
|
|
648
|
+
/**
|
|
649
|
+
* Height of the pad when padShape is rect
|
|
650
|
+
*/
|
|
651
|
+
height?: number | string
|
|
652
|
+
}
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/testpoint.ts)
|
|
656
|
+
|
|
657
|
+
|
|
623
658
|
### TransistorProps `<transistor />`
|
|
624
659
|
|
|
625
660
|
```ts
|