@tscircuit/props 0.0.580 → 0.0.582
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 -12
- package/dist/index.d.ts +131 -72
- package/dist/index.js +1033 -1004
- package/dist/index.js.map +1 -1
- package/lib/assembly/device.ts +15 -0
- package/lib/assembly/index.ts +7 -0
- package/lib/components/chip.ts +16 -1
- package/lib/components/internal-circuit.ts +19 -0
- package/lib/index.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
59
59
|
| `<hole />` | [`CircleHoleProps`](#circleholeprops-hole) |
|
|
60
60
|
| `<inductor />` | [`InductorProps`](#inductorprops-inductor) |
|
|
61
61
|
| `<interconnect />` | [`InterconnectProps`](#interconnectprops-interconnect) |
|
|
62
|
+
| `<internalcircuit />` | [`InternalCircuitProps`](#internalcircuitprops-internalcircuit) |
|
|
62
63
|
| `<jumper />` | [`JumperProps`](#jumperprops-jumper) |
|
|
63
64
|
| `<led />` | [`LedProps`](#ledprops-led) |
|
|
64
65
|
| `<mosfet />` | [`MosfetProps`](#mosfetprops-mosfet) |
|
|
@@ -449,6 +450,11 @@ export interface ChipPropsSU<
|
|
|
449
450
|
noConnect?: readonly PinLabel[] | PinLabel[];
|
|
450
451
|
connections?: Connections<PinLabel>;
|
|
451
452
|
spiceModel?: SpiceModelElement;
|
|
453
|
+
/**
|
|
454
|
+
* Functional components contained inside this physical chip package,
|
|
455
|
+
* wrapped in an `<internalcircuit />` element.
|
|
456
|
+
*/
|
|
457
|
+
internalCircuit?: InternalCircuitElement;
|
|
452
458
|
}
|
|
453
459
|
```
|
|
454
460
|
|
|
@@ -718,11 +724,7 @@ export type FabricationNoteRectProps = z.input<typeof fabricationNoteRectProps>;
|
|
|
718
724
|
export interface FabricationNoteTextProps extends PcbLayoutProps {
|
|
719
725
|
text: string;
|
|
720
726
|
anchorAlignment?:
|
|
721
|
-
| "
|
|
722
|
-
| "top_left"
|
|
723
|
-
| "top_right"
|
|
724
|
-
| "bottom_left"
|
|
725
|
-
| "bottom_right";
|
|
727
|
+
"center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
726
728
|
font?: "tscircuit2024";
|
|
727
729
|
fontSize?: string | number;
|
|
728
730
|
color?: string;
|
|
@@ -996,6 +998,16 @@ export interface InterconnectProps extends CommonComponentProps {
|
|
|
996
998
|
|
|
997
999
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/interconnect.ts)
|
|
998
1000
|
|
|
1001
|
+
### InternalCircuitProps `<internalcircuit />`
|
|
1002
|
+
|
|
1003
|
+
```ts
|
|
1004
|
+
export interface InternalCircuitProps {
|
|
1005
|
+
children?: ReactNode;
|
|
1006
|
+
}
|
|
1007
|
+
```
|
|
1008
|
+
|
|
1009
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/internal-circuit.ts)
|
|
1010
|
+
|
|
999
1011
|
### JumperProps `<jumper />`
|
|
1000
1012
|
|
|
1001
1013
|
```ts
|
|
@@ -1288,11 +1300,7 @@ export interface PcbNoteRectProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
1288
1300
|
export interface PcbNoteTextProps extends PcbLayoutProps {
|
|
1289
1301
|
text: string;
|
|
1290
1302
|
anchorAlignment?:
|
|
1291
|
-
| "
|
|
1292
|
-
| "top_left"
|
|
1293
|
-
| "top_right"
|
|
1294
|
-
| "bottom_left"
|
|
1295
|
-
| "bottom_right";
|
|
1303
|
+
"center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
1296
1304
|
font?: "tscircuit2024";
|
|
1297
1305
|
fontSize?: string | number;
|
|
1298
1306
|
color?: string;
|
|
@@ -2126,7 +2134,6 @@ export interface PlatformConfig {
|
|
|
2126
2134
|
```
|
|
2127
2135
|
|
|
2128
2136
|
[Source](https://github.com/tscircuit/props/blob/main/lib/platformConfig.ts)
|
|
2129
|
-
|
|
2130
2137
|
<!-- PLATFORM_CONFIG_END -->
|
|
2131
2138
|
|
|
2132
2139
|
<!-- PROJECT_CONFIG_START -->
|
|
@@ -2150,5 +2157,4 @@ export interface ProjectConfig extends Pick<
|
|
|
2150
2157
|
```
|
|
2151
2158
|
|
|
2152
2159
|
[Source](https://github.com/tscircuit/props/blob/main/lib/projectConfig.ts)
|
|
2153
|
-
|
|
2154
2160
|
<!-- PROJECT_CONFIG_END -->
|