circuit-json 0.0.302 → 0.0.303
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 +1 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -3077,6 +3077,7 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3077
3077
|
x: string | number;
|
|
3078
3078
|
y: string | number;
|
|
3079
3079
|
}>, "many">>;
|
|
3080
|
+
shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
|
|
3080
3081
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
3081
3082
|
}, "strip", z.ZodTypeAny, {
|
|
3082
3083
|
type: "pcb_board";
|
|
@@ -3091,6 +3092,7 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3091
3092
|
width?: number | undefined;
|
|
3092
3093
|
height?: number | undefined;
|
|
3093
3094
|
subcircuit_id?: string | undefined;
|
|
3095
|
+
shape?: "rect" | "polygon" | undefined;
|
|
3094
3096
|
pcb_panel_id?: string | undefined;
|
|
3095
3097
|
is_subcircuit?: boolean | undefined;
|
|
3096
3098
|
outline?: {
|
|
@@ -3106,6 +3108,7 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3106
3108
|
width?: string | number | undefined;
|
|
3107
3109
|
height?: string | number | undefined;
|
|
3108
3110
|
subcircuit_id?: string | undefined;
|
|
3111
|
+
shape?: "rect" | "polygon" | undefined;
|
|
3109
3112
|
pcb_board_id?: string | undefined;
|
|
3110
3113
|
pcb_panel_id?: string | undefined;
|
|
3111
3114
|
is_subcircuit?: boolean | undefined;
|
|
@@ -3132,6 +3135,7 @@ interface PcbBoard {
|
|
|
3132
3135
|
num_layers: number;
|
|
3133
3136
|
center: Point;
|
|
3134
3137
|
outline?: Point[];
|
|
3138
|
+
shape?: "rect" | "polygon";
|
|
3135
3139
|
material: "fr4" | "fr1";
|
|
3136
3140
|
}
|
|
3137
3141
|
type PcbBoardInput = z.input<typeof pcb_board>;
|
|
@@ -15569,6 +15573,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15569
15573
|
x: string | number;
|
|
15570
15574
|
y: string | number;
|
|
15571
15575
|
}>, "many">>;
|
|
15576
|
+
shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
|
|
15572
15577
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
15573
15578
|
}, "strip", z.ZodTypeAny, {
|
|
15574
15579
|
type: "pcb_board";
|
|
@@ -15583,6 +15588,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15583
15588
|
width?: number | undefined;
|
|
15584
15589
|
height?: number | undefined;
|
|
15585
15590
|
subcircuit_id?: string | undefined;
|
|
15591
|
+
shape?: "rect" | "polygon" | undefined;
|
|
15586
15592
|
pcb_panel_id?: string | undefined;
|
|
15587
15593
|
is_subcircuit?: boolean | undefined;
|
|
15588
15594
|
outline?: {
|
|
@@ -15598,6 +15604,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15598
15604
|
width?: string | number | undefined;
|
|
15599
15605
|
height?: string | number | undefined;
|
|
15600
15606
|
subcircuit_id?: string | undefined;
|
|
15607
|
+
shape?: "rect" | "polygon" | undefined;
|
|
15601
15608
|
pcb_board_id?: string | undefined;
|
|
15602
15609
|
pcb_panel_id?: string | undefined;
|
|
15603
15610
|
is_subcircuit?: boolean | undefined;
|
|
@@ -23094,6 +23101,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23094
23101
|
x: string | number;
|
|
23095
23102
|
y: string | number;
|
|
23096
23103
|
}>, "many">>;
|
|
23104
|
+
shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
|
|
23097
23105
|
material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
|
|
23098
23106
|
}, "strip", z.ZodTypeAny, {
|
|
23099
23107
|
type: "pcb_board";
|
|
@@ -23108,6 +23116,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23108
23116
|
width?: number | undefined;
|
|
23109
23117
|
height?: number | undefined;
|
|
23110
23118
|
subcircuit_id?: string | undefined;
|
|
23119
|
+
shape?: "rect" | "polygon" | undefined;
|
|
23111
23120
|
pcb_panel_id?: string | undefined;
|
|
23112
23121
|
is_subcircuit?: boolean | undefined;
|
|
23113
23122
|
outline?: {
|
|
@@ -23123,6 +23132,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23123
23132
|
width?: string | number | undefined;
|
|
23124
23133
|
height?: string | number | undefined;
|
|
23125
23134
|
subcircuit_id?: string | undefined;
|
|
23135
|
+
shape?: "rect" | "polygon" | undefined;
|
|
23126
23136
|
pcb_board_id?: string | undefined;
|
|
23127
23137
|
pcb_panel_id?: string | undefined;
|
|
23128
23138
|
is_subcircuit?: boolean | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -1850,6 +1850,7 @@ var pcb_board = z83.object({
|
|
|
1850
1850
|
thickness: length.optional().default(1.4),
|
|
1851
1851
|
num_layers: z83.number().optional().default(4),
|
|
1852
1852
|
outline: z83.array(point).optional(),
|
|
1853
|
+
shape: z83.enum(["rect", "polygon"]).optional(),
|
|
1853
1854
|
material: z83.enum(["fr4", "fr1"]).default("fr4")
|
|
1854
1855
|
}).describe("Defines the board outline of the PCB");
|
|
1855
1856
|
expectTypesMatch(true);
|