circuit-json 0.0.158 → 0.0.160

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.mjs CHANGED
@@ -1068,9 +1068,64 @@ var pcb_solder_paste_rect = z52.object({
1068
1068
  pcb_component_id: z52.string().optional(),
1069
1069
  pcb_smtpad_id: z52.string().optional()
1070
1070
  });
1071
- var pcb_solder_paste = z52.union([pcb_solder_paste_circle, pcb_solder_paste_rect]).describe("Defines solderpaste on the PCB");
1071
+ var pcb_solder_paste_pill = z52.object({
1072
+ type: z52.literal("pcb_solder_paste"),
1073
+ shape: z52.literal("pill"),
1074
+ pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1075
+ pcb_group_id: z52.string().optional(),
1076
+ subcircuit_id: z52.string().optional(),
1077
+ x: distance,
1078
+ y: distance,
1079
+ width: z52.number(),
1080
+ height: z52.number(),
1081
+ radius: z52.number(),
1082
+ layer: layer_ref,
1083
+ pcb_component_id: z52.string().optional(),
1084
+ pcb_smtpad_id: z52.string().optional()
1085
+ });
1086
+ var pcb_solder_paste_rotated_rect = z52.object({
1087
+ type: z52.literal("pcb_solder_paste"),
1088
+ shape: z52.literal("rotated_rect"),
1089
+ pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1090
+ pcb_group_id: z52.string().optional(),
1091
+ subcircuit_id: z52.string().optional(),
1092
+ x: distance,
1093
+ y: distance,
1094
+ width: z52.number(),
1095
+ height: z52.number(),
1096
+ ccw_rotation: distance,
1097
+ layer: layer_ref,
1098
+ pcb_component_id: z52.string().optional(),
1099
+ pcb_smtpad_id: z52.string().optional()
1100
+ });
1101
+ var pcb_solder_paste_oval = z52.object({
1102
+ type: z52.literal("pcb_solder_paste"),
1103
+ shape: z52.literal("oval"),
1104
+ pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1105
+ pcb_group_id: z52.string().optional(),
1106
+ subcircuit_id: z52.string().optional(),
1107
+ x: distance,
1108
+ y: distance,
1109
+ width: z52.number(),
1110
+ height: z52.number(),
1111
+ layer: layer_ref,
1112
+ pcb_component_id: z52.string().optional(),
1113
+ pcb_smtpad_id: z52.string().optional()
1114
+ });
1115
+ var pcb_solder_paste = z52.union([
1116
+ pcb_solder_paste_circle,
1117
+ pcb_solder_paste_rect,
1118
+ pcb_solder_paste_pill,
1119
+ pcb_solder_paste_rotated_rect,
1120
+ pcb_solder_paste_oval
1121
+ ]).describe("Defines solderpaste on the PCB");
1122
+ expectTypesMatch(true);
1072
1123
  expectTypesMatch(true);
1073
1124
  expectTypesMatch(true);
1125
+ expectTypesMatch(
1126
+ true
1127
+ );
1128
+ expectTypesMatch(true);
1074
1129
 
1075
1130
  // src/pcb/pcb_text.ts
1076
1131
  import { z as z53 } from "zod";
@@ -1105,6 +1160,8 @@ var pcb_trace_route_point_via = z54.object({
1105
1160
  route_type: z54.literal("via"),
1106
1161
  x: distance,
1107
1162
  y: distance,
1163
+ hole_diameter: distance.optional(),
1164
+ outer_diameter: distance.optional(),
1108
1165
  from_layer: z54.string(),
1109
1166
  to_layer: z54.string()
1110
1167
  });
@@ -1123,26 +1180,7 @@ var pcb_trace = z54.object({
1123
1180
  route_order_index: z54.number().optional(),
1124
1181
  should_round_corners: z54.boolean().optional(),
1125
1182
  trace_length: z54.number().optional(),
1126
- route: z54.array(
1127
- z54.union([
1128
- z54.object({
1129
- route_type: z54.literal("wire"),
1130
- x: distance,
1131
- y: distance,
1132
- width: distance,
1133
- start_pcb_port_id: z54.string().optional(),
1134
- end_pcb_port_id: z54.string().optional(),
1135
- layer: layer_ref
1136
- }),
1137
- z54.object({
1138
- route_type: z54.literal("via"),
1139
- x: distance,
1140
- y: distance,
1141
- from_layer: z54.string(),
1142
- to_layer: z54.string()
1143
- })
1144
- ])
1145
- )
1183
+ route: z54.array(pcb_trace_route_point)
1146
1184
  }).describe("Defines a trace on the PCB");
1147
1185
  expectTypesMatch(true);
1148
1186
  expectTypesMatch(true);