@tscircuit/props 0.0.665 → 0.0.667
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 +31 -0
- package/dist/index.d.ts +452 -2
- package/dist/index.js +849 -789
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +11 -0
- package/lib/components/pcb-bend.ts +42 -0
- package/lib/components/pcb-stiffener.ts +48 -0
- package/lib/index.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,12 +76,14 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
76
76
|
| `<netlabel />` | [`NetLabelProps`](#netlabelprops-netlabel) |
|
|
77
77
|
| `<opamp />` | [`OpAmpProps`](#opampprops-opamp) |
|
|
78
78
|
| `<panel />` | [`PanelProps`](#panelprops-panel) |
|
|
79
|
+
| `<pcbbend />` | [`PcbBendProps`](#pcbbendprops-pcbbend) |
|
|
79
80
|
| `<pcbkeepout />` | [`PcbKeepoutProps`](#pcbkeepoutprops-pcbkeepout) |
|
|
80
81
|
| `<pcbnotedimension />` | [`PcbNoteDimensionProps`](#pcbnotedimensionprops-pcbnotedimension) |
|
|
81
82
|
| `<pcbnoteline />` | [`PcbNoteLineProps`](#pcbnotelineprops-pcbnoteline) |
|
|
82
83
|
| `<pcbnotepath />` | [`PcbNotePathProps`](#pcbnotepathprops-pcbnotepath) |
|
|
83
84
|
| `<pcbnoterect />` | [`PcbNoteRectProps`](#pcbnoterectprops-pcbnoterect) |
|
|
84
85
|
| `<pcbnotetext />` | [`PcbNoteTextProps`](#pcbnotetextprops-pcbnotetext) |
|
|
86
|
+
| `<pcbstiffener />` | [`PcbStiffenerProps`](#pcbstiffenerprops-pcbstiffener) |
|
|
85
87
|
| `<pcbtrace />` | [`PcbTraceProps`](#pcbtraceprops-pcbtrace) |
|
|
86
88
|
| `<pinheader />` | [`PinHeaderProps`](#pinheaderprops-pinheader) |
|
|
87
89
|
| `<pinout />` | [`PinoutProps`](#pinoutprops-pinout) |
|
|
@@ -1477,6 +1479,27 @@ export interface PanelProps extends Omit<
|
|
|
1477
1479
|
|
|
1478
1480
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/panel.ts)
|
|
1479
1481
|
|
|
1482
|
+
### PcbBendProps `<pcbbend />`
|
|
1483
|
+
|
|
1484
|
+
```ts
|
|
1485
|
+
export interface PcbBendProps {
|
|
1486
|
+
name?: string;
|
|
1487
|
+
/** Start/end of the bend-zone centerline in the parent PCB coordinate system. */
|
|
1488
|
+
x1: Distance;
|
|
1489
|
+
y1: Distance;
|
|
1490
|
+
x2: Distance;
|
|
1491
|
+
y2: Distance;
|
|
1492
|
+
/** Signed degrees (or an angle string). Positive folds toward the local top face. */
|
|
1493
|
+
bendAngle: number | string;
|
|
1494
|
+
/** Positive neutral-surface radius, in mm or a distance string. */
|
|
1495
|
+
bendRadius: Distance;
|
|
1496
|
+
/** Moving side, looking from (x1, y1) toward (x2, y2) in the flat layout. */
|
|
1497
|
+
bendSide: "left" | "right";
|
|
1498
|
+
}
|
|
1499
|
+
```
|
|
1500
|
+
|
|
1501
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/pcb-bend.ts)
|
|
1502
|
+
|
|
1480
1503
|
### PcbKeepoutProps `<pcbkeepout />`
|
|
1481
1504
|
|
|
1482
1505
|
```ts
|
|
@@ -1599,6 +1622,14 @@ export interface PcbNoteTextProps extends PcbLayoutProps {
|
|
|
1599
1622
|
|
|
1600
1623
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/pcb-note-text.ts)
|
|
1601
1624
|
|
|
1625
|
+
### PcbStiffenerProps `<pcbstiffener />`
|
|
1626
|
+
|
|
1627
|
+
```ts
|
|
1628
|
+
export type PcbStiffenerProps = z.input<typeof pcbStiffenerProps>;
|
|
1629
|
+
```
|
|
1630
|
+
|
|
1631
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/pcb-stiffener.ts)
|
|
1632
|
+
|
|
1602
1633
|
### PcbTraceProps `<pcbtrace />`
|
|
1603
1634
|
|
|
1604
1635
|
```ts
|