@tscircuit/props 0.0.516 → 0.0.517
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 +3 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +1 -0
- package/lib/components/jumper.ts +1 -0
- package/lib/components/pcb-keepout.ts +3 -1
- package/lib/components/pin-header.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -747,6 +747,7 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
747
747
|
|
|
748
748
|
/**
|
|
749
749
|
* Spacing between pins when rendered as a schematic box
|
|
750
|
+
* @deprecated Use schPinStyle instead.
|
|
750
751
|
*/
|
|
751
752
|
schPinSpacing?: Distance;
|
|
752
753
|
|
|
@@ -906,6 +907,7 @@ export interface JumperProps extends CommonComponentProps {
|
|
|
906
907
|
SchematicPinLabel | SchematicPinLabel[]
|
|
907
908
|
>;
|
|
908
909
|
schPinStyle?: SchematicPinStyle;
|
|
910
|
+
/** @deprecated Use schPinStyle instead. */
|
|
909
911
|
schPinSpacing?: number | string;
|
|
910
912
|
schWidth?: number | string;
|
|
911
913
|
schHeight?: number | string;
|
|
@@ -1286,6 +1288,7 @@ export interface PinHeaderProps extends CommonComponentProps {
|
|
|
1286
1288
|
|
|
1287
1289
|
/**
|
|
1288
1290
|
* Schematic pin spacing
|
|
1291
|
+
* @deprecated Use schPinStyle instead.
|
|
1289
1292
|
*/
|
|
1290
1293
|
schPinSpacing?: number | string;
|
|
1291
1294
|
|
package/dist/index.d.ts
CHANGED
|
@@ -17681,6 +17681,7 @@ interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
17681
17681
|
schPinArrangement?: SchematicPinArrangement;
|
|
17682
17682
|
/**
|
|
17683
17683
|
* Spacing between pins when rendered as a schematic box
|
|
17684
|
+
* @deprecated Use schPinStyle instead.
|
|
17684
17685
|
*/
|
|
17685
17686
|
schPinSpacing?: Distance;
|
|
17686
17687
|
/**
|
|
@@ -44390,6 +44391,7 @@ interface JumperProps extends CommonComponentProps {
|
|
|
44390
44391
|
manufacturerPartNumber?: string;
|
|
44391
44392
|
pinLabels?: Record<number | SchematicPinLabel, SchematicPinLabel | SchematicPinLabel[]>;
|
|
44392
44393
|
schPinStyle?: SchematicPinStyle;
|
|
44394
|
+
/** @deprecated Use schPinStyle instead. */
|
|
44393
44395
|
schPinSpacing?: number | string;
|
|
44394
44396
|
schWidth?: number | string;
|
|
44395
44397
|
schHeight?: number | string;
|
|
@@ -110136,6 +110138,7 @@ interface PinHeaderProps extends CommonComponentProps {
|
|
|
110136
110138
|
schPinStyle?: SchematicPinStyle;
|
|
110137
110139
|
/**
|
|
110138
110140
|
* Schematic pin spacing
|
|
110141
|
+
* @deprecated Use schPinStyle instead.
|
|
110139
110142
|
*/
|
|
110140
110143
|
schPinSpacing?: number | string;
|
|
110141
110144
|
/**
|
|
@@ -163050,10 +163053,20 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
163050
163053
|
}, "pcbRotation"> & {
|
|
163051
163054
|
shape: z.ZodLiteral<"circle">;
|
|
163052
163055
|
radius: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
163056
|
+
layers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
163057
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
163058
|
+
}, "strip", z.ZodTypeAny, {
|
|
163059
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163060
|
+
}, {
|
|
163061
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163062
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
163063
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163064
|
+
}>, "many">>;
|
|
163053
163065
|
}, "strip", z.ZodTypeAny, {
|
|
163054
163066
|
shape: "circle";
|
|
163055
163067
|
radius: number;
|
|
163056
163068
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
163069
|
+
layers?: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[] | undefined;
|
|
163057
163070
|
pcbX?: string | number | undefined;
|
|
163058
163071
|
pcbY?: string | number | undefined;
|
|
163059
163072
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -163090,6 +163103,9 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
163090
163103
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
163091
163104
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163092
163105
|
} | undefined;
|
|
163106
|
+
layers?: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
163107
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163108
|
+
})[] | undefined;
|
|
163093
163109
|
pcbX?: string | number | undefined;
|
|
163094
163110
|
pcbY?: string | number | undefined;
|
|
163095
163111
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -163189,11 +163205,21 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
163189
163205
|
shape: z.ZodLiteral<"rect">;
|
|
163190
163206
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
163191
163207
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
163208
|
+
layers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
163209
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
163210
|
+
}, "strip", z.ZodTypeAny, {
|
|
163211
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163212
|
+
}, {
|
|
163213
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163214
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
163215
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163216
|
+
}>, "many">>;
|
|
163192
163217
|
}, "strip", z.ZodTypeAny, {
|
|
163193
163218
|
shape: "rect";
|
|
163194
163219
|
width: number;
|
|
163195
163220
|
height: number;
|
|
163196
163221
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
163222
|
+
layers?: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[] | undefined;
|
|
163197
163223
|
pcbX?: string | number | undefined;
|
|
163198
163224
|
pcbY?: string | number | undefined;
|
|
163199
163225
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -163232,6 +163258,9 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
163232
163258
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
163233
163259
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163234
163260
|
} | undefined;
|
|
163261
|
+
layers?: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
163262
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
163263
|
+
})[] | undefined;
|
|
163235
163264
|
pcbX?: string | number | undefined;
|
|
163236
163265
|
pcbY?: string | number | undefined;
|
|
163237
163266
|
pcbLeftEdgeX?: string | number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -17687,17 +17687,19 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
|
|
|
17687
17687
|
expectTypesMatch(true);
|
|
17688
17688
|
|
|
17689
17689
|
// lib/components/pcb-keepout.ts
|
|
17690
|
-
import { distance as distance24 } from "circuit-json";
|
|
17690
|
+
import { distance as distance24, layer_ref as layer_ref7 } from "circuit-json";
|
|
17691
17691
|
import { z as z88 } from "zod";
|
|
17692
17692
|
var pcbKeepoutProps = z88.union([
|
|
17693
17693
|
pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17694
17694
|
shape: z88.literal("circle"),
|
|
17695
|
-
radius: distance24
|
|
17695
|
+
radius: distance24,
|
|
17696
|
+
layers: z88.array(layer_ref7).optional()
|
|
17696
17697
|
}),
|
|
17697
17698
|
pcbLayoutProps.extend({
|
|
17698
17699
|
shape: z88.literal("rect"),
|
|
17699
17700
|
width: distance24,
|
|
17700
|
-
height: distance24
|
|
17701
|
+
height: distance24,
|
|
17702
|
+
layers: z88.array(layer_ref7).optional()
|
|
17701
17703
|
})
|
|
17702
17704
|
]);
|
|
17703
17705
|
|
|
@@ -17753,10 +17755,10 @@ var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
17753
17755
|
|
|
17754
17756
|
// lib/components/copper-pour.ts
|
|
17755
17757
|
import { z as z93 } from "zod";
|
|
17756
|
-
import { layer_ref as
|
|
17758
|
+
import { layer_ref as layer_ref8 } from "circuit-json";
|
|
17757
17759
|
var copperPourProps = z93.object({
|
|
17758
17760
|
name: z93.string().optional(),
|
|
17759
|
-
layer:
|
|
17761
|
+
layer: layer_ref8,
|
|
17760
17762
|
connectsTo: z93.string(),
|
|
17761
17763
|
unbroken: z93.boolean().optional(),
|
|
17762
17764
|
padMargin: distance.optional(),
|
|
@@ -17770,10 +17772,10 @@ var copperPourProps = z93.object({
|
|
|
17770
17772
|
expectTypesMatch(true);
|
|
17771
17773
|
|
|
17772
17774
|
// lib/components/cadassembly.ts
|
|
17773
|
-
import { layer_ref as
|
|
17775
|
+
import { layer_ref as layer_ref9 } from "circuit-json";
|
|
17774
17776
|
import { z as z94 } from "zod";
|
|
17775
17777
|
var cadassemblyProps = z94.object({
|
|
17776
|
-
originalLayer:
|
|
17778
|
+
originalLayer: layer_ref9.default("top").optional(),
|
|
17777
17779
|
children: z94.any().optional()
|
|
17778
17780
|
});
|
|
17779
17781
|
expectTypesMatch(true);
|
|
@@ -18050,20 +18052,20 @@ var schematicCellProps = z110.object({
|
|
|
18050
18052
|
expectTypesMatch(true);
|
|
18051
18053
|
|
|
18052
18054
|
// lib/components/copper-text.ts
|
|
18053
|
-
import { layer_ref as
|
|
18055
|
+
import { layer_ref as layer_ref10, length as length8 } from "circuit-json";
|
|
18054
18056
|
import { z as z111 } from "zod";
|
|
18055
18057
|
var copperTextProps = pcbLayoutProps.extend({
|
|
18056
18058
|
text: z111.string(),
|
|
18057
18059
|
anchorAlignment: ninePointAnchor.default("center"),
|
|
18058
18060
|
font: z111.enum(["tscircuit2024"]).optional(),
|
|
18059
18061
|
fontSize: length8.optional(),
|
|
18060
|
-
layers: z111.array(
|
|
18062
|
+
layers: z111.array(layer_ref10).optional(),
|
|
18061
18063
|
knockout: z111.boolean().optional(),
|
|
18062
18064
|
mirrored: z111.boolean().optional()
|
|
18063
18065
|
});
|
|
18064
18066
|
|
|
18065
18067
|
// lib/components/silkscreen-text.ts
|
|
18066
|
-
import { layer_ref as
|
|
18068
|
+
import { layer_ref as layer_ref11, length as length9 } from "circuit-json";
|
|
18067
18069
|
import { z as z112 } from "zod";
|
|
18068
18070
|
var silkscreenTextProps = pcbLayoutProps.extend({
|
|
18069
18071
|
text: z112.string(),
|
|
@@ -18079,7 +18081,7 @@ var silkscreenTextProps = pcbLayoutProps.extend({
|
|
|
18079
18081
|
knockoutPaddingRight: length9.optional(),
|
|
18080
18082
|
knockoutPaddingTop: length9.optional(),
|
|
18081
18083
|
knockoutPaddingBottom: length9.optional(),
|
|
18082
|
-
layers: z112.array(
|
|
18084
|
+
layers: z112.array(layer_ref11).optional()
|
|
18083
18085
|
});
|
|
18084
18086
|
|
|
18085
18087
|
// lib/components/silkscreen-path.ts
|
|
@@ -18139,13 +18141,13 @@ var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
18139
18141
|
});
|
|
18140
18142
|
|
|
18141
18143
|
// lib/components/trace-hint.ts
|
|
18142
|
-
import { distance as distance41, layer_ref as
|
|
18144
|
+
import { distance as distance41, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18143
18145
|
import { z as z116 } from "zod";
|
|
18144
18146
|
var routeHintPointProps = z116.object({
|
|
18145
18147
|
x: distance41,
|
|
18146
18148
|
y: distance41,
|
|
18147
18149
|
via: z116.boolean().optional(),
|
|
18148
|
-
toLayer:
|
|
18150
|
+
toLayer: layer_ref12.optional()
|
|
18149
18151
|
});
|
|
18150
18152
|
var traceHintProps = z116.object({
|
|
18151
18153
|
for: z116.string().optional().describe(
|