circuit-json 0.0.479 → 0.0.481
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 +264 -5
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3178,6 +3178,18 @@ expectTypesMatch(
|
|
|
3178
3178
|
|
|
3179
3179
|
// src/pcb/pcb_keepout.ts
|
|
3180
3180
|
import { z as z148 } from "zod";
|
|
3181
|
+
var pcb_keepout_outline = z148.object({
|
|
3182
|
+
type: z148.literal("pcb_keepout"),
|
|
3183
|
+
shape: z148.literal("outline"),
|
|
3184
|
+
pcb_group_id: z148.string().optional(),
|
|
3185
|
+
subcircuit_id: z148.string().optional(),
|
|
3186
|
+
outline: z148.array(point).min(2),
|
|
3187
|
+
stroke_width: length,
|
|
3188
|
+
pcb_keepout_id: z148.string(),
|
|
3189
|
+
layers: z148.array(z148.string()),
|
|
3190
|
+
description: z148.string().optional(),
|
|
3191
|
+
excluded_pcb_component_ids: z148.array(z148.string()).optional()
|
|
3192
|
+
});
|
|
3181
3193
|
var pcb_keepout = z148.object({
|
|
3182
3194
|
type: z148.literal("pcb_keepout"),
|
|
3183
3195
|
shape: z148.literal("rect"),
|
|
@@ -3207,7 +3219,8 @@ var pcb_keepout = z148.object({
|
|
|
3207
3219
|
// Optional description of the keepout
|
|
3208
3220
|
excluded_pcb_component_ids: z148.array(z148.string()).optional()
|
|
3209
3221
|
})
|
|
3210
|
-
);
|
|
3222
|
+
).or(pcb_keepout_outline);
|
|
3223
|
+
expectTypesMatch(true);
|
|
3211
3224
|
expectTypesMatch(true);
|
|
3212
3225
|
|
|
3213
3226
|
// src/pcb/pcb_cutout.ts
|
|
@@ -3215,6 +3228,7 @@ import { z as z149 } from "zod";
|
|
|
3215
3228
|
var pcb_cutout_base = z149.object({
|
|
3216
3229
|
type: z149.literal("pcb_cutout"),
|
|
3217
3230
|
pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
|
|
3231
|
+
pcb_component_id: z149.string().optional(),
|
|
3218
3232
|
pcb_group_id: z149.string().optional(),
|
|
3219
3233
|
subcircuit_id: z149.string().optional(),
|
|
3220
3234
|
pcb_board_id: z149.string().optional(),
|
|
@@ -4751,6 +4765,7 @@ export {
|
|
|
4751
4765
|
pcb_hole_rect_shape,
|
|
4752
4766
|
pcb_hole_rotated_pill_shape,
|
|
4753
4767
|
pcb_keepout,
|
|
4768
|
+
pcb_keepout_outline,
|
|
4754
4769
|
pcb_manual_edit_conflict_warning,
|
|
4755
4770
|
pcb_missing_footprint_error,
|
|
4756
4771
|
pcb_net,
|