@tscircuit/props 0.0.291 → 0.0.293
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 +18 -0
- package/dist/index.d.ts +874 -1
- package/dist/index.js +179 -166
- package/dist/index.js.map +1 -1
- package/lib/components/pinout.ts +15 -0
- package/lib/components/symbol.ts +23 -0
- package/lib/index.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
42
42
|
| `<netalias />` | [`NetAliasProps`](#netaliasprops-netalias) |
|
|
43
43
|
| `<netlabel />` | [`NetLabelProps`](#netlabelprops-netlabel) |
|
|
44
44
|
| `<pinheader />` | [`PinHeaderProps`](#pinheaderprops-pinheader) |
|
|
45
|
+
| `<pinout />` | [`PinoutProps`](#pinoutprops-pinout) |
|
|
45
46
|
| `<platedhole />` | [`CirclePlatedHoleProps`](#circleplatedholeprops-platedhole) |
|
|
46
47
|
| `<potentiometer />` | [`PotentiometerProps`](#potentiometerprops-potentiometer) |
|
|
47
48
|
| `<resistor />` | [`ResistorProps`](#resistorprops-resistor) |
|
|
@@ -54,6 +55,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
54
55
|
| `<solderpaste />` | [`RectSolderPasteProps`](#rectsolderpasteprops-solderpaste) |
|
|
55
56
|
| `<stampboard />` | [`StampboardProps`](#stampboardprops-stampboard) |
|
|
56
57
|
| `<switch />` | [`SwitchProps`](#switchprops-switch) |
|
|
58
|
+
| `<symbol />` | [`SymbolProps`](#symbolprops-symbol) |
|
|
57
59
|
| `<testpoint />` | [`TestpointProps`](#testpointprops-testpoint) |
|
|
58
60
|
| `<transistor />` | [`TransistorProps`](#transistorprops-transistor) |
|
|
59
61
|
| `<via />` | [`ViaProps`](#viaprops-via) |
|
|
@@ -887,6 +889,22 @@ export interface SwitchProps extends CommonComponentProps {
|
|
|
887
889
|
|
|
888
890
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/switch.ts)
|
|
889
891
|
|
|
892
|
+
### SymbolProps `<symbol />`
|
|
893
|
+
|
|
894
|
+
```ts
|
|
895
|
+
export interface SymbolProps {
|
|
896
|
+
/**
|
|
897
|
+
* The facing direction that the symbol is designed for. If you set this to "right",
|
|
898
|
+
* then it means the children were intended to represent the symbol facing right.
|
|
899
|
+
* Generally, you shouldn't set this except where it can help prevent confusion
|
|
900
|
+
* because you have a complex symbol. Default is "right" and this is most intuitive.
|
|
901
|
+
*/
|
|
902
|
+
originalFacingDirection?: "up" | "down" | "left" | "right";
|
|
903
|
+
}
|
|
904
|
+
```
|
|
905
|
+
|
|
906
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/symbol.ts)
|
|
907
|
+
|
|
890
908
|
### TestpointProps `<testpoint />`
|
|
891
909
|
|
|
892
910
|
```ts
|