circuit-json 0.0.415 → 0.0.417

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 CHANGED
@@ -1660,6 +1660,8 @@ interface PcbNoteText {
1660
1660
  | "top_right"
1661
1661
  | "bottom_left"
1662
1662
  | "bottom_right"
1663
+ layer: VisibleLayer
1664
+ is_mirrored?: boolean
1663
1665
  color?: string
1664
1666
  }
1665
1667
  ```
@@ -2059,7 +2061,7 @@ interface PcbSilkscreenText {
2059
2061
  }
2060
2062
  ccw_rotation?: number
2061
2063
  layer: LayerRef
2062
- is_mirrored?: boolean
2064
+ is_mirrored_from_top_view?: boolean
2063
2065
  anchor_position: Point
2064
2066
  anchor_alignment: NinePointAnchor
2065
2067
  }
package/dist/index.d.mts CHANGED
@@ -378,18 +378,21 @@ interface RouteHintPoint {
378
378
  }
379
379
 
380
380
  declare const manufacturing_drc_properties: z.ZodObject<{
381
+ min_trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
381
382
  min_via_to_via_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
382
383
  min_trace_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
383
384
  min_pad_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
384
385
  min_via_hole_diameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
385
386
  min_via_pad_diameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
386
387
  }, "strip", z.ZodTypeAny, {
388
+ min_trace_width?: number | undefined;
387
389
  min_via_to_via_spacing?: number | undefined;
388
390
  min_trace_to_pad_spacing?: number | undefined;
389
391
  min_pad_to_pad_spacing?: number | undefined;
390
392
  min_via_hole_diameter?: number | undefined;
391
393
  min_via_pad_diameter?: number | undefined;
392
394
  }, {
395
+ min_trace_width?: string | number | undefined;
393
396
  min_via_to_via_spacing?: string | number | undefined;
394
397
  min_trace_to_pad_spacing?: string | number | undefined;
395
398
  min_pad_to_pad_spacing?: string | number | undefined;
@@ -397,6 +400,7 @@ declare const manufacturing_drc_properties: z.ZodObject<{
397
400
  min_via_pad_diameter?: string | number | undefined;
398
401
  }>;
399
402
  interface ManufacturingDrcProperties {
403
+ min_trace_width?: Length;
400
404
  min_via_to_via_spacing?: Length;
401
405
  min_trace_to_pad_spacing?: Length;
402
406
  min_pad_to_pad_spacing?: Length;
@@ -7540,6 +7544,7 @@ declare const pcb_board: z.ZodObject<{
7540
7544
  anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
7541
7545
  position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
7542
7546
  } & {
7547
+ min_trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
7543
7548
  min_via_to_via_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
7544
7549
  min_trace_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
7545
7550
  min_pad_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -7557,6 +7562,7 @@ declare const pcb_board: z.ZodObject<{
7557
7562
  material: "fr4" | "fr1";
7558
7563
  width?: number | undefined;
7559
7564
  height?: number | undefined;
7565
+ min_trace_width?: number | undefined;
7560
7566
  min_via_to_via_spacing?: number | undefined;
7561
7567
  min_trace_to_pad_spacing?: number | undefined;
7562
7568
  min_pad_to_pad_spacing?: number | undefined;
@@ -7588,6 +7594,7 @@ declare const pcb_board: z.ZodObject<{
7588
7594
  };
7589
7595
  width?: string | number | undefined;
7590
7596
  height?: string | number | undefined;
7597
+ min_trace_width?: string | number | undefined;
7591
7598
  min_via_to_via_spacing?: string | number | undefined;
7592
7599
  min_trace_to_pad_spacing?: string | number | undefined;
7593
7600
  min_pad_to_pad_spacing?: string | number | undefined;
@@ -8960,6 +8967,7 @@ declare const pcb_note_text: z.ZodObject<{
8960
8967
  }>>;
8961
8968
  anchor_alignment: z.ZodDefault<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
8962
8969
  layer: z.ZodDefault<z.ZodEnum<["top", "bottom"]>>;
8970
+ is_mirrored_from_top_view: z.ZodOptional<z.ZodBoolean>;
8963
8971
  color: z.ZodOptional<z.ZodString>;
8964
8972
  }, "strip", z.ZodTypeAny, {
8965
8973
  type: "pcb_note_text";
@@ -8978,6 +8986,7 @@ declare const pcb_note_text: z.ZodObject<{
8978
8986
  pcb_group_id?: string | undefined;
8979
8987
  text?: string | undefined;
8980
8988
  color?: string | undefined;
8989
+ is_mirrored_from_top_view?: boolean | undefined;
8981
8990
  }, {
8982
8991
  type: "pcb_note_text";
8983
8992
  name?: string | undefined;
@@ -8995,6 +9004,7 @@ declare const pcb_note_text: z.ZodObject<{
8995
9004
  font_size?: string | number | undefined;
8996
9005
  color?: string | undefined;
8997
9006
  pcb_note_text_id?: string | undefined;
9007
+ is_mirrored_from_top_view?: boolean | undefined;
8998
9008
  }>;
8999
9009
  type PcbNoteTextInput = z.input<typeof pcb_note_text>;
9000
9010
  /**
@@ -9013,6 +9023,7 @@ interface PcbNoteText {
9013
9023
  anchor_position: Point;
9014
9024
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
9015
9025
  layer: VisibleLayer;
9026
+ is_mirrored_from_top_view?: boolean;
9016
9027
  color?: string;
9017
9028
  }
9018
9029
 
@@ -39305,6 +39316,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
39305
39316
  anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
39306
39317
  position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
39307
39318
  } & {
39319
+ min_trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
39308
39320
  min_via_to_via_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
39309
39321
  min_trace_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
39310
39322
  min_pad_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -39322,6 +39334,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
39322
39334
  material: "fr4" | "fr1";
39323
39335
  width?: number | undefined;
39324
39336
  height?: number | undefined;
39337
+ min_trace_width?: number | undefined;
39325
39338
  min_via_to_via_spacing?: number | undefined;
39326
39339
  min_trace_to_pad_spacing?: number | undefined;
39327
39340
  min_pad_to_pad_spacing?: number | undefined;
@@ -39353,6 +39366,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
39353
39366
  };
39354
39367
  width?: string | number | undefined;
39355
39368
  height?: string | number | undefined;
39369
+ min_trace_width?: string | number | undefined;
39356
39370
  min_via_to_via_spacing?: string | number | undefined;
39357
39371
  min_trace_to_pad_spacing?: string | number | undefined;
39358
39372
  min_pad_to_pad_spacing?: string | number | undefined;
@@ -40806,6 +40820,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
40806
40820
  }>>;
40807
40821
  anchor_alignment: z.ZodDefault<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
40808
40822
  layer: z.ZodDefault<z.ZodEnum<["top", "bottom"]>>;
40823
+ is_mirrored_from_top_view: z.ZodOptional<z.ZodBoolean>;
40809
40824
  color: z.ZodOptional<z.ZodString>;
40810
40825
  }, "strip", z.ZodTypeAny, {
40811
40826
  type: "pcb_note_text";
@@ -40824,6 +40839,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
40824
40839
  pcb_group_id?: string | undefined;
40825
40840
  text?: string | undefined;
40826
40841
  color?: string | undefined;
40842
+ is_mirrored_from_top_view?: boolean | undefined;
40827
40843
  }, {
40828
40844
  type: "pcb_note_text";
40829
40845
  name?: string | undefined;
@@ -40841,6 +40857,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
40841
40857
  font_size?: string | number | undefined;
40842
40858
  color?: string | undefined;
40843
40859
  pcb_note_text_id?: string | undefined;
40860
+ is_mirrored_from_top_view?: boolean | undefined;
40844
40861
  }>, z.ZodObject<{
40845
40862
  type: z.ZodLiteral<"pcb_note_rect">;
40846
40863
  pcb_note_rect_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -57377,6 +57394,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
57377
57394
  anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
57378
57395
  position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
57379
57396
  } & {
57397
+ min_trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
57380
57398
  min_via_to_via_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
57381
57399
  min_trace_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
57382
57400
  min_pad_to_pad_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -57394,6 +57412,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
57394
57412
  material: "fr4" | "fr1";
57395
57413
  width?: number | undefined;
57396
57414
  height?: number | undefined;
57415
+ min_trace_width?: number | undefined;
57397
57416
  min_via_to_via_spacing?: number | undefined;
57398
57417
  min_trace_to_pad_spacing?: number | undefined;
57399
57418
  min_pad_to_pad_spacing?: number | undefined;
@@ -57425,6 +57444,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
57425
57444
  };
57426
57445
  width?: string | number | undefined;
57427
57446
  height?: string | number | undefined;
57447
+ min_trace_width?: string | number | undefined;
57428
57448
  min_via_to_via_spacing?: string | number | undefined;
57429
57449
  min_trace_to_pad_spacing?: string | number | undefined;
57430
57450
  min_pad_to_pad_spacing?: string | number | undefined;
@@ -58878,6 +58898,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
58878
58898
  }>>;
58879
58899
  anchor_alignment: z.ZodDefault<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
58880
58900
  layer: z.ZodDefault<z.ZodEnum<["top", "bottom"]>>;
58901
+ is_mirrored_from_top_view: z.ZodOptional<z.ZodBoolean>;
58881
58902
  color: z.ZodOptional<z.ZodString>;
58882
58903
  }, "strip", z.ZodTypeAny, {
58883
58904
  type: "pcb_note_text";
@@ -58896,6 +58917,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
58896
58917
  pcb_group_id?: string | undefined;
58897
58918
  text?: string | undefined;
58898
58919
  color?: string | undefined;
58920
+ is_mirrored_from_top_view?: boolean | undefined;
58899
58921
  }, {
58900
58922
  type: "pcb_note_text";
58901
58923
  name?: string | undefined;
@@ -58913,6 +58935,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
58913
58935
  font_size?: string | number | undefined;
58914
58936
  color?: string | undefined;
58915
58937
  pcb_note_text_id?: string | undefined;
58938
+ is_mirrored_from_top_view?: boolean | undefined;
58916
58939
  }>, z.ZodObject<{
58917
58940
  type: z.ZodLiteral<"pcb_note_rect">;
58918
58941
  pcb_note_rect_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
package/dist/index.mjs CHANGED
@@ -1717,6 +1717,7 @@ expectTypesMatch(true);
1717
1717
  // src/pcb/properties/manufacturing_drc_properties.ts
1718
1718
  import { z as z92 } from "zod";
1719
1719
  var manufacturing_drc_properties = z92.object({
1720
+ min_trace_width: length.optional(),
1720
1721
  min_via_to_via_spacing: length.optional(),
1721
1722
  min_trace_to_pad_spacing: length.optional(),
1722
1723
  min_pad_to_pad_spacing: length.optional(),
@@ -2798,6 +2799,7 @@ var pcb_note_text = z125.object({
2798
2799
  anchor_position: point.default({ x: 0, y: 0 }),
2799
2800
  anchor_alignment: z125.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2800
2801
  layer: visible_layer.default("top"),
2802
+ is_mirrored_from_top_view: z125.boolean().optional(),
2801
2803
  color: z125.string().optional()
2802
2804
  }).describe("Defines a documentation note in text on the PCB");
2803
2805
  expectTypesMatch(true);