@tscircuit/props 0.0.552 → 0.0.554
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/dist/index.d.ts +22 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/components/courtyard-rect.ts +9 -11
- package/lib/components/trace.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -103385,6 +103385,8 @@ declare const portRef: z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
|
103385
103385
|
}>]>;
|
|
103386
103386
|
declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
103387
103387
|
key: z.ZodOptional<z.ZodString>;
|
|
103388
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103389
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
103388
103390
|
thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
103389
103391
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
103390
103392
|
schematicRouteHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -103558,7 +103560,9 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103558
103560
|
})[];
|
|
103559
103561
|
key?: string | undefined;
|
|
103560
103562
|
thickness?: number | undefined;
|
|
103563
|
+
name?: string | undefined;
|
|
103561
103564
|
highlightColor?: string | undefined;
|
|
103565
|
+
displayName?: string | undefined;
|
|
103562
103566
|
width?: number | undefined;
|
|
103563
103567
|
maxLength?: number | undefined;
|
|
103564
103568
|
connectsTo?: string | string[] | undefined;
|
|
@@ -103598,7 +103602,9 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103598
103602
|
})[];
|
|
103599
103603
|
key?: string | undefined;
|
|
103600
103604
|
thickness?: string | number | undefined;
|
|
103605
|
+
name?: string | undefined;
|
|
103601
103606
|
highlightColor?: string | undefined;
|
|
103607
|
+
displayName?: string | undefined;
|
|
103602
103608
|
width?: string | number | undefined;
|
|
103603
103609
|
maxLength?: string | number | undefined;
|
|
103604
103610
|
connectsTo?: string | string[] | undefined;
|
|
@@ -103644,6 +103650,8 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103644
103650
|
schStroke?: string | undefined;
|
|
103645
103651
|
}>, z.ZodObject<{
|
|
103646
103652
|
key: z.ZodOptional<z.ZodString>;
|
|
103653
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103654
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
103647
103655
|
thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
103648
103656
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
103649
103657
|
schematicRouteHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -103825,7 +103833,9 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103825
103833
|
};
|
|
103826
103834
|
key?: string | undefined;
|
|
103827
103835
|
thickness?: number | undefined;
|
|
103836
|
+
name?: string | undefined;
|
|
103828
103837
|
highlightColor?: string | undefined;
|
|
103838
|
+
displayName?: string | undefined;
|
|
103829
103839
|
width?: number | undefined;
|
|
103830
103840
|
maxLength?: number | undefined;
|
|
103831
103841
|
connectsTo?: string | string[] | undefined;
|
|
@@ -103868,7 +103878,9 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103868
103878
|
};
|
|
103869
103879
|
key?: string | undefined;
|
|
103870
103880
|
thickness?: string | number | undefined;
|
|
103881
|
+
name?: string | undefined;
|
|
103871
103882
|
highlightColor?: string | undefined;
|
|
103883
|
+
displayName?: string | undefined;
|
|
103872
103884
|
width?: string | number | undefined;
|
|
103873
103885
|
maxLength?: string | number | undefined;
|
|
103874
103886
|
connectsTo?: string | string[] | undefined;
|
|
@@ -103914,6 +103926,8 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103914
103926
|
schStroke?: string | undefined;
|
|
103915
103927
|
}>, z.ZodObject<{
|
|
103916
103928
|
key: z.ZodOptional<z.ZodString>;
|
|
103929
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103930
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
103917
103931
|
thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
103918
103932
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
103919
103933
|
schematicRouteHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -104095,7 +104109,9 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
104095
104109
|
};
|
|
104096
104110
|
key?: string | undefined;
|
|
104097
104111
|
thickness?: number | undefined;
|
|
104112
|
+
name?: string | undefined;
|
|
104098
104113
|
highlightColor?: string | undefined;
|
|
104114
|
+
displayName?: string | undefined;
|
|
104099
104115
|
width?: number | undefined;
|
|
104100
104116
|
maxLength?: number | undefined;
|
|
104101
104117
|
connectsTo?: string | string[] | undefined;
|
|
@@ -104138,7 +104154,9 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
104138
104154
|
};
|
|
104139
104155
|
key?: string | undefined;
|
|
104140
104156
|
thickness?: string | number | undefined;
|
|
104157
|
+
name?: string | undefined;
|
|
104141
104158
|
highlightColor?: string | undefined;
|
|
104159
|
+
displayName?: string | undefined;
|
|
104142
104160
|
width?: string | number | undefined;
|
|
104143
104161
|
maxLength?: string | number | undefined;
|
|
104144
104162
|
connectsTo?: string | string[] | undefined;
|
|
@@ -163907,7 +163925,7 @@ declare const pcbKeepoutProps: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
163907
163925
|
}>]>;
|
|
163908
163926
|
type PcbKeepoutProps = z.input<typeof pcbKeepoutProps>;
|
|
163909
163927
|
|
|
163910
|
-
declare const courtyardRectProps: z.ZodObject<
|
|
163928
|
+
declare const courtyardRectProps: z.ZodObject<{
|
|
163911
163929
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
163912
163930
|
pcbY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
163913
163931
|
pcbLeftEdgeX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -163972,7 +163990,7 @@ declare const courtyardRectProps: z.ZodObject<Omit<{
|
|
|
163972
163990
|
pcbSx: z.ZodOptional<z.ZodType<PcbSx, z.ZodTypeDef, PcbSx>>;
|
|
163973
163991
|
pcbRelative: z.ZodOptional<z.ZodBoolean>;
|
|
163974
163992
|
relative: z.ZodOptional<z.ZodBoolean>;
|
|
163975
|
-
}
|
|
163993
|
+
} & {
|
|
163976
163994
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
163977
163995
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
163978
163996
|
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -163992,6 +164010,7 @@ declare const courtyardRectProps: z.ZodObject<Omit<{
|
|
|
163992
164010
|
pcbBottomEdgeY?: string | number | undefined;
|
|
163993
164011
|
pcbOffsetX?: number | undefined;
|
|
163994
164012
|
pcbOffsetY?: number | undefined;
|
|
164013
|
+
pcbRotation?: number | undefined;
|
|
163995
164014
|
pcbPositionAnchor?: string | undefined;
|
|
163996
164015
|
pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
|
|
163997
164016
|
shouldBeOnEdgeOfBoard?: boolean | undefined;
|
|
@@ -164033,6 +164052,7 @@ declare const courtyardRectProps: z.ZodObject<Omit<{
|
|
|
164033
164052
|
pcbBottomEdgeY?: string | number | undefined;
|
|
164034
164053
|
pcbOffsetX?: string | number | undefined;
|
|
164035
164054
|
pcbOffsetY?: string | number | undefined;
|
|
164055
|
+
pcbRotation?: string | number | undefined;
|
|
164036
164056
|
pcbPositionAnchor?: string | undefined;
|
|
164037
164057
|
pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
|
|
164038
164058
|
shouldBeOnEdgeOfBoard?: boolean | undefined;
|
package/dist/index.js
CHANGED
|
@@ -17213,6 +17213,8 @@ var pcbPathPoint = point.extend({
|
|
|
17213
17213
|
var pcbPath = z64.array(z64.union([pcbPathPoint, z64.string()]));
|
|
17214
17214
|
var baseTraceProps = z64.object({
|
|
17215
17215
|
key: z64.string().optional(),
|
|
17216
|
+
name: z64.string().optional(),
|
|
17217
|
+
displayName: z64.string().optional(),
|
|
17216
17218
|
thickness: distance18.optional(),
|
|
17217
17219
|
width: distance18.optional().describe("Alias for trace thickness"),
|
|
17218
17220
|
schematicRouteHints: z64.array(point).optional(),
|
|
@@ -17811,7 +17813,7 @@ var pcbKeepoutProps = z92.union([
|
|
|
17811
17813
|
// lib/components/courtyard-rect.ts
|
|
17812
17814
|
import { distance as distance26 } from "circuit-json";
|
|
17813
17815
|
import { z as z93 } from "zod";
|
|
17814
|
-
var courtyardRectProps = pcbLayoutProps.
|
|
17816
|
+
var courtyardRectProps = pcbLayoutProps.extend({
|
|
17815
17817
|
width: distance26,
|
|
17816
17818
|
height: distance26,
|
|
17817
17819
|
strokeWidth: distance26.optional(),
|