circuit-json 0.0.426 → 0.0.428

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
@@ -996,6 +996,8 @@ interface PcbBoard {
996
996
  outline?: Point[]
997
997
  shape?: "rect" | "polygon"
998
998
  material: "fr4" | "fr1"
999
+ solder_mask_color?: string
1000
+ silkscreen_color?: string
999
1001
  anchor_position?: Point
1000
1002
  anchor_alignment: NinePointAnchor
1001
1003
  position_mode?: "relative_to_panel_anchor" | "none"
@@ -2562,6 +2564,8 @@ interface SchematicLine {
2562
2564
  stroke_width?: number | null
2563
2565
  color: string
2564
2566
  is_dashed: boolean
2567
+ dash_length?: number
2568
+ dash_gap?: number
2565
2569
  subcircuit_id?: string
2566
2570
  }
2567
2571
  ```
@@ -2620,6 +2624,8 @@ interface SchematicPath {
2620
2624
  schematic_component_id: string
2621
2625
  fill_color?: "red" | "blue"
2622
2626
  is_filled?: boolean
2627
+ dash_length?: number
2628
+ dash_gap?: number
2623
2629
  points: Point[]
2624
2630
  subcircuit_id?: string
2625
2631
  }
package/dist/index.d.mts CHANGED
@@ -7827,6 +7827,8 @@ declare const pcb_board: z.ZodObject<{
7827
7827
  }>, "many">>;
7828
7828
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
7829
7829
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
7830
+ solder_mask_color: z.ZodOptional<z.ZodString>;
7831
+ silkscreen_color: z.ZodOptional<z.ZodString>;
7830
7832
  anchor_position: z.ZodOptional<z.ZodObject<{
7831
7833
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
7832
7834
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -7892,6 +7894,8 @@ declare const pcb_board: z.ZodObject<{
7892
7894
  x: number;
7893
7895
  y: number;
7894
7896
  }[] | undefined;
7897
+ solder_mask_color?: string | undefined;
7898
+ silkscreen_color?: string | undefined;
7895
7899
  }, {
7896
7900
  type: "pcb_board";
7897
7901
  center: {
@@ -7933,6 +7937,8 @@ declare const pcb_board: z.ZodObject<{
7933
7937
  y: string | number;
7934
7938
  }[] | undefined;
7935
7939
  material?: "fr4" | "fr1" | undefined;
7940
+ solder_mask_color?: string | undefined;
7941
+ silkscreen_color?: string | undefined;
7936
7942
  }>;
7937
7943
  /**
7938
7944
  * Defines the board outline of the PCB
@@ -7955,6 +7961,8 @@ interface PcbBoard extends ManufacturingDrcProperties {
7955
7961
  outline?: Point[];
7956
7962
  shape?: "rect" | "polygon";
7957
7963
  material: "fr4" | "fr1";
7964
+ solder_mask_color?: string;
7965
+ silkscreen_color?: string;
7958
7966
  anchor_position?: Point;
7959
7967
  anchor_alignment?: NinePointAnchor;
7960
7968
  position_mode?: "relative_to_panel_anchor" | "none";
@@ -12468,6 +12476,8 @@ interface SchematicPath {
12468
12476
  is_filled?: boolean;
12469
12477
  stroke_width?: number | null;
12470
12478
  stroke_color?: string;
12479
+ dash_length?: number;
12480
+ dash_gap?: number;
12471
12481
  points: Point[];
12472
12482
  subcircuit_id?: string;
12473
12483
  }
@@ -12480,6 +12490,8 @@ declare const schematic_path: z.ZodObject<{
12480
12490
  is_filled: z.ZodOptional<z.ZodBoolean>;
12481
12491
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
12482
12492
  stroke_color: z.ZodOptional<z.ZodString>;
12493
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12494
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12483
12495
  points: z.ZodArray<z.ZodObject<{
12484
12496
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12485
12497
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -12505,6 +12517,8 @@ declare const schematic_path: z.ZodObject<{
12505
12517
  schematic_symbol_id?: string | undefined;
12506
12518
  fill_color?: string | undefined;
12507
12519
  stroke_color?: string | undefined;
12520
+ dash_length?: number | undefined;
12521
+ dash_gap?: number | undefined;
12508
12522
  }, {
12509
12523
  type: "schematic_path";
12510
12524
  points: {
@@ -12519,6 +12533,8 @@ declare const schematic_path: z.ZodObject<{
12519
12533
  schematic_path_id?: string | undefined;
12520
12534
  fill_color?: string | undefined;
12521
12535
  stroke_color?: string | undefined;
12536
+ dash_length?: string | number | undefined;
12537
+ dash_gap?: string | number | undefined;
12522
12538
  }>;
12523
12539
  type SchematicPathInput = z.input<typeof schematic_path>;
12524
12540
 
@@ -23915,6 +23931,8 @@ interface SchematicLine {
23915
23931
  stroke_width?: number | null;
23916
23932
  color: string;
23917
23933
  is_dashed: boolean;
23934
+ dash_length?: number;
23935
+ dash_gap?: number;
23918
23936
  subcircuit_id?: string;
23919
23937
  }
23920
23938
  declare const schematic_line: z.ZodObject<{
@@ -23929,6 +23947,8 @@ declare const schematic_line: z.ZodObject<{
23929
23947
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
23930
23948
  color: z.ZodDefault<z.ZodString>;
23931
23949
  is_dashed: z.ZodDefault<z.ZodBoolean>;
23950
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23951
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23932
23952
  subcircuit_id: z.ZodOptional<z.ZodString>;
23933
23953
  }, "strip", z.ZodTypeAny, {
23934
23954
  type: "schematic_line";
@@ -23943,6 +23963,8 @@ declare const schematic_line: z.ZodObject<{
23943
23963
  stroke_width?: number | null | undefined;
23944
23964
  schematic_component_id?: string | undefined;
23945
23965
  schematic_symbol_id?: string | undefined;
23966
+ dash_length?: number | undefined;
23967
+ dash_gap?: number | undefined;
23946
23968
  }, {
23947
23969
  type: "schematic_line";
23948
23970
  x1: string | number;
@@ -23955,6 +23977,8 @@ declare const schematic_line: z.ZodObject<{
23955
23977
  is_dashed?: boolean | undefined;
23956
23978
  schematic_component_id?: string | undefined;
23957
23979
  schematic_symbol_id?: string | undefined;
23980
+ dash_length?: string | number | undefined;
23981
+ dash_gap?: string | number | undefined;
23958
23982
  schematic_line_id?: string | undefined;
23959
23983
  }>;
23960
23984
  type SchematicLineInput = z.input<typeof schematic_line>;
@@ -39831,6 +39855,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
39831
39855
  }>, "many">>;
39832
39856
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
39833
39857
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
39858
+ solder_mask_color: z.ZodOptional<z.ZodString>;
39859
+ silkscreen_color: z.ZodOptional<z.ZodString>;
39834
39860
  anchor_position: z.ZodOptional<z.ZodObject<{
39835
39861
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
39836
39862
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -39896,6 +39922,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
39896
39922
  x: number;
39897
39923
  y: number;
39898
39924
  }[] | undefined;
39925
+ solder_mask_color?: string | undefined;
39926
+ silkscreen_color?: string | undefined;
39899
39927
  }, {
39900
39928
  type: "pcb_board";
39901
39929
  center: {
@@ -39937,6 +39965,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
39937
39965
  y: string | number;
39938
39966
  }[] | undefined;
39939
39967
  material?: "fr4" | "fr1" | undefined;
39968
+ solder_mask_color?: string | undefined;
39969
+ silkscreen_color?: string | undefined;
39940
39970
  }>, z.ZodObject<{
39941
39971
  type: z.ZodLiteral<"pcb_panel">;
39942
39972
  pcb_panel_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -42795,6 +42825,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
42795
42825
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
42796
42826
  color: z.ZodDefault<z.ZodString>;
42797
42827
  is_dashed: z.ZodDefault<z.ZodBoolean>;
42828
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
42829
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
42798
42830
  subcircuit_id: z.ZodOptional<z.ZodString>;
42799
42831
  }, "strip", z.ZodTypeAny, {
42800
42832
  type: "schematic_line";
@@ -42809,6 +42841,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
42809
42841
  stroke_width?: number | null | undefined;
42810
42842
  schematic_component_id?: string | undefined;
42811
42843
  schematic_symbol_id?: string | undefined;
42844
+ dash_length?: number | undefined;
42845
+ dash_gap?: number | undefined;
42812
42846
  }, {
42813
42847
  type: "schematic_line";
42814
42848
  x1: string | number;
@@ -42821,6 +42855,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
42821
42855
  is_dashed?: boolean | undefined;
42822
42856
  schematic_component_id?: string | undefined;
42823
42857
  schematic_symbol_id?: string | undefined;
42858
+ dash_length?: string | number | undefined;
42859
+ dash_gap?: string | number | undefined;
42824
42860
  schematic_line_id?: string | undefined;
42825
42861
  }>, z.ZodObject<{
42826
42862
  type: z.ZodLiteral<"schematic_rect">;
@@ -50225,6 +50261,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
50225
50261
  is_filled: z.ZodOptional<z.ZodBoolean>;
50226
50262
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
50227
50263
  stroke_color: z.ZodOptional<z.ZodString>;
50264
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
50265
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
50228
50266
  points: z.ZodArray<z.ZodObject<{
50229
50267
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
50230
50268
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -50250,6 +50288,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
50250
50288
  schematic_symbol_id?: string | undefined;
50251
50289
  fill_color?: string | undefined;
50252
50290
  stroke_color?: string | undefined;
50291
+ dash_length?: number | undefined;
50292
+ dash_gap?: number | undefined;
50253
50293
  }, {
50254
50294
  type: "schematic_path";
50255
50295
  points: {
@@ -50264,6 +50304,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
50264
50304
  schematic_path_id?: string | undefined;
50265
50305
  fill_color?: string | undefined;
50266
50306
  stroke_color?: string | undefined;
50307
+ dash_length?: string | number | undefined;
50308
+ dash_gap?: string | number | undefined;
50267
50309
  }>, z.ZodObject<{
50268
50310
  message: z.ZodString;
50269
50311
  is_fatal: z.ZodOptional<z.ZodBoolean>;
@@ -58080,6 +58122,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
58080
58122
  }>, "many">>;
58081
58123
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
58082
58124
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
58125
+ solder_mask_color: z.ZodOptional<z.ZodString>;
58126
+ silkscreen_color: z.ZodOptional<z.ZodString>;
58083
58127
  anchor_position: z.ZodOptional<z.ZodObject<{
58084
58128
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
58085
58129
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -58145,6 +58189,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
58145
58189
  x: number;
58146
58190
  y: number;
58147
58191
  }[] | undefined;
58192
+ solder_mask_color?: string | undefined;
58193
+ silkscreen_color?: string | undefined;
58148
58194
  }, {
58149
58195
  type: "pcb_board";
58150
58196
  center: {
@@ -58186,6 +58232,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
58186
58232
  y: string | number;
58187
58233
  }[] | undefined;
58188
58234
  material?: "fr4" | "fr1" | undefined;
58235
+ solder_mask_color?: string | undefined;
58236
+ silkscreen_color?: string | undefined;
58189
58237
  }>, z.ZodObject<{
58190
58238
  type: z.ZodLiteral<"pcb_panel">;
58191
58239
  pcb_panel_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -61044,6 +61092,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
61044
61092
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
61045
61093
  color: z.ZodDefault<z.ZodString>;
61046
61094
  is_dashed: z.ZodDefault<z.ZodBoolean>;
61095
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
61096
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
61047
61097
  subcircuit_id: z.ZodOptional<z.ZodString>;
61048
61098
  }, "strip", z.ZodTypeAny, {
61049
61099
  type: "schematic_line";
@@ -61058,6 +61108,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
61058
61108
  stroke_width?: number | null | undefined;
61059
61109
  schematic_component_id?: string | undefined;
61060
61110
  schematic_symbol_id?: string | undefined;
61111
+ dash_length?: number | undefined;
61112
+ dash_gap?: number | undefined;
61061
61113
  }, {
61062
61114
  type: "schematic_line";
61063
61115
  x1: string | number;
@@ -61070,6 +61122,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
61070
61122
  is_dashed?: boolean | undefined;
61071
61123
  schematic_component_id?: string | undefined;
61072
61124
  schematic_symbol_id?: string | undefined;
61125
+ dash_length?: string | number | undefined;
61126
+ dash_gap?: string | number | undefined;
61073
61127
  schematic_line_id?: string | undefined;
61074
61128
  }>, z.ZodObject<{
61075
61129
  type: z.ZodLiteral<"schematic_rect">;
@@ -68474,6 +68528,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
68474
68528
  is_filled: z.ZodOptional<z.ZodBoolean>;
68475
68529
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
68476
68530
  stroke_color: z.ZodOptional<z.ZodString>;
68531
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
68532
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
68477
68533
  points: z.ZodArray<z.ZodObject<{
68478
68534
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
68479
68535
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -68499,6 +68555,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
68499
68555
  schematic_symbol_id?: string | undefined;
68500
68556
  fill_color?: string | undefined;
68501
68557
  stroke_color?: string | undefined;
68558
+ dash_length?: number | undefined;
68559
+ dash_gap?: number | undefined;
68502
68560
  }, {
68503
68561
  type: "schematic_path";
68504
68562
  points: {
@@ -68513,6 +68571,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
68513
68571
  schematic_path_id?: string | undefined;
68514
68572
  fill_color?: string | undefined;
68515
68573
  stroke_color?: string | undefined;
68574
+ dash_length?: string | number | undefined;
68575
+ dash_gap?: string | number | undefined;
68516
68576
  }>, z.ZodObject<{
68517
68577
  message: z.ZodString;
68518
68578
  is_fatal: z.ZodOptional<z.ZodBoolean>;
package/dist/index.mjs CHANGED
@@ -1250,6 +1250,8 @@ var schematic_path = z68.object({
1250
1250
  is_filled: z68.boolean().optional(),
1251
1251
  stroke_width: distance.nullable().optional(),
1252
1252
  stroke_color: z68.string().optional(),
1253
+ dash_length: distance.optional(),
1254
+ dash_gap: distance.optional(),
1253
1255
  points: z68.array(point),
1254
1256
  subcircuit_id: z68.string().optional()
1255
1257
  });
@@ -1350,6 +1352,8 @@ var schematic_line = z71.object({
1350
1352
  stroke_width: distance.nullable().optional(),
1351
1353
  color: z71.string().default("#000000"),
1352
1354
  is_dashed: z71.boolean().default(false),
1355
+ dash_length: distance.optional(),
1356
+ dash_gap: distance.optional(),
1353
1357
  subcircuit_id: z71.string().optional()
1354
1358
  }).describe("Draws a styled line on the schematic");
1355
1359
  expectTypesMatch(true);
@@ -2490,6 +2494,8 @@ var pcb_board = z108.object({
2490
2494
  outline: z108.array(point).optional(),
2491
2495
  shape: z108.enum(["rect", "polygon"]).optional(),
2492
2496
  material: z108.enum(["fr4", "fr1"]).default("fr4"),
2497
+ solder_mask_color: z108.string().optional(),
2498
+ silkscreen_color: z108.string().optional(),
2493
2499
  anchor_position: point.optional(),
2494
2500
  anchor_alignment: ninePointAnchor.optional(),
2495
2501
  position_mode: z108.enum(["relative_to_panel_anchor", "none"]).optional()