@tscircuit/props 0.0.421 → 0.0.423
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 +41 -5
- package/dist/index.d.ts +1167 -15
- package/dist/index.js +41 -1
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +24 -0
- package/lib/components/cadmodel.ts +8 -0
- package/lib/components/courtyard-outline.ts +4 -0
- package/lib/components/fabrication-note-dimension.ts +13 -1
- package/lib/components/fabrication-note-path.ts +4 -0
- package/lib/components/interconnect.ts +4 -2
- package/lib/components/pcb-note-dimension.ts +13 -1
- package/lib/components/pcb-note-line.ts +13 -1
- package/lib/components/pcb-note-path.ts +13 -1
- package/lib/components/silkscreen-path.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -307,6 +307,10 @@ export interface CadModelProps extends CadModelBase {
|
|
|
307
307
|
stepUrl?: string;
|
|
308
308
|
pcbX?: Distance;
|
|
309
309
|
pcbY?: Distance;
|
|
310
|
+
pcbLeftEdgeX?: Distance;
|
|
311
|
+
pcbRightEdgeX?: Distance;
|
|
312
|
+
pcbTopEdgeY?: Distance;
|
|
313
|
+
pcbBottomEdgeY?: Distance;
|
|
310
314
|
pcbOffsetX?: Distance;
|
|
311
315
|
pcbOffsetY?: Distance;
|
|
312
316
|
pcbZ?: Distance;
|
|
@@ -536,7 +540,15 @@ export interface DiodeProps<
|
|
|
536
540
|
```ts
|
|
537
541
|
export interface FabricationNoteDimensionProps extends Omit<
|
|
538
542
|
PcbLayoutProps,
|
|
539
|
-
|
|
543
|
+
| "pcbLeftEdgeX"
|
|
544
|
+
| "pcbRightEdgeX"
|
|
545
|
+
| "pcbTopEdgeY"
|
|
546
|
+
| "pcbBottomEdgeY"
|
|
547
|
+
| "pcbX"
|
|
548
|
+
| "pcbY"
|
|
549
|
+
| "pcbOffsetX"
|
|
550
|
+
| "pcbOffsetY"
|
|
551
|
+
| "pcbRotation"
|
|
540
552
|
> {
|
|
541
553
|
from: string | Point;
|
|
542
554
|
to: string | Point;
|
|
@@ -812,7 +824,7 @@ export interface InductorProps<
|
|
|
812
824
|
|
|
813
825
|
```ts
|
|
814
826
|
export interface InterconnectProps extends CommonComponentProps {
|
|
815
|
-
standard?: "TSC0001_36P_XALT_2025_11";
|
|
827
|
+
standard?: "TSC0001_36P_XALT_2025_11" | "0805" | "0603" | "1206";
|
|
816
828
|
}
|
|
817
829
|
```
|
|
818
830
|
|
|
@@ -961,7 +973,15 @@ export type PcbKeepoutProps = z.input<typeof pcbKeepoutProps>;
|
|
|
961
973
|
```ts
|
|
962
974
|
export interface PcbNoteDimensionProps extends Omit<
|
|
963
975
|
PcbLayoutProps,
|
|
964
|
-
|
|
976
|
+
| "pcbLeftEdgeX"
|
|
977
|
+
| "pcbRightEdgeX"
|
|
978
|
+
| "pcbTopEdgeY"
|
|
979
|
+
| "pcbBottomEdgeY"
|
|
980
|
+
| "pcbX"
|
|
981
|
+
| "pcbY"
|
|
982
|
+
| "pcbOffsetX"
|
|
983
|
+
| "pcbOffsetY"
|
|
984
|
+
| "pcbRotation"
|
|
965
985
|
> {
|
|
966
986
|
from: string | Point;
|
|
967
987
|
to: string | Point;
|
|
@@ -985,7 +1005,15 @@ export interface PcbNoteDimensionProps extends Omit<
|
|
|
985
1005
|
```ts
|
|
986
1006
|
export interface PcbNoteLineProps extends Omit<
|
|
987
1007
|
PcbLayoutProps,
|
|
988
|
-
|
|
1008
|
+
| "pcbLeftEdgeX"
|
|
1009
|
+
| "pcbRightEdgeX"
|
|
1010
|
+
| "pcbTopEdgeY"
|
|
1011
|
+
| "pcbBottomEdgeY"
|
|
1012
|
+
| "pcbX"
|
|
1013
|
+
| "pcbY"
|
|
1014
|
+
| "pcbOffsetX"
|
|
1015
|
+
| "pcbOffsetY"
|
|
1016
|
+
| "pcbRotation"
|
|
989
1017
|
> {
|
|
990
1018
|
x1: string | number;
|
|
991
1019
|
y1: string | number;
|
|
@@ -1004,7 +1032,15 @@ export interface PcbNoteLineProps extends Omit<
|
|
|
1004
1032
|
```ts
|
|
1005
1033
|
export interface PcbNotePathProps extends Omit<
|
|
1006
1034
|
PcbLayoutProps,
|
|
1007
|
-
|
|
1035
|
+
| "pcbLeftEdgeX"
|
|
1036
|
+
| "pcbRightEdgeX"
|
|
1037
|
+
| "pcbTopEdgeY"
|
|
1038
|
+
| "pcbBottomEdgeY"
|
|
1039
|
+
| "pcbX"
|
|
1040
|
+
| "pcbY"
|
|
1041
|
+
| "pcbOffsetX"
|
|
1042
|
+
| "pcbOffsetY"
|
|
1043
|
+
| "pcbRotation"
|
|
1008
1044
|
> {
|
|
1009
1045
|
route: RouteHintPointInput[];
|
|
1010
1046
|
strokeWidth?: string | number;
|