@tscircuit/props 0.0.295 → 0.0.297
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 -1
- package/dist/index.d.ts +3696 -261
- package/dist/index.js +135 -86
- package/dist/index.js.map +1 -1
- package/lib/common/cadModel.ts +9 -0
- package/lib/components/copper-pour.ts +79 -0
- package/lib/components/voltagesource.ts +12 -1
- package/lib/index.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
28
28
|
| `<chip />` | [`ChipProps`](#chipprops-chip) |
|
|
29
29
|
| `<connector />` | [`ConnectorProps`](#connectorprops-connector) |
|
|
30
30
|
| `<constrainedlayout />` | [`ConstrainedLayoutProps`](#constrainedlayoutprops-constrainedlayout) |
|
|
31
|
+
| `<copperpour />` | [`RectCopperPourProps`](#rectcopperpourprops-copperpour) |
|
|
31
32
|
| `<crystal />` | [`CrystalProps`](#crystalprops-crystal) |
|
|
32
33
|
| `<cutout />` | [`RectCutoutProps`](#rectcutoutprops-cutout) |
|
|
33
34
|
| `<diode />` | [`DiodeProps`](#diodeprops-diode) |
|
|
@@ -288,6 +289,20 @@ export interface ConstrainedLayoutProps {
|
|
|
288
289
|
|
|
289
290
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/constrainedlayout.ts)
|
|
290
291
|
|
|
292
|
+
### RectCopperPourProps `<copperpour />`
|
|
293
|
+
|
|
294
|
+
```ts
|
|
295
|
+
export interface RectCopperPourProps
|
|
296
|
+
extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
297
|
+
shape: "rect";
|
|
298
|
+
width: Distance;
|
|
299
|
+
height: Distance;
|
|
300
|
+
connectsTo?: string | string[];
|
|
301
|
+
}
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/copper-pour.ts)
|
|
305
|
+
|
|
291
306
|
### CrystalProps `<crystal />`
|
|
292
307
|
|
|
293
308
|
```ts
|
|
@@ -970,13 +985,15 @@ export interface ViaProps extends CommonLayoutProps {
|
|
|
970
985
|
### VoltageSourceProps `<voltagesource />`
|
|
971
986
|
|
|
972
987
|
```ts
|
|
973
|
-
export interface VoltageSourceProps extends
|
|
988
|
+
export interface VoltageSourceProps<PinLabel extends string = string>
|
|
989
|
+
extends CommonComponentProps<PinLabel> {
|
|
974
990
|
voltage?: number | string;
|
|
975
991
|
frequency?: number | string;
|
|
976
992
|
peakToPeakVoltage?: number | string;
|
|
977
993
|
waveShape?: WaveShape;
|
|
978
994
|
phase?: number | string;
|
|
979
995
|
dutyCycle?: number | string;
|
|
996
|
+
connections?: Connections<VoltageSourcePinLabels>;
|
|
980
997
|
}
|
|
981
998
|
```
|
|
982
999
|
|