circuit-json 0.0.425 → 0.0.427

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
@@ -2562,6 +2562,8 @@ interface SchematicLine {
2562
2562
  stroke_width?: number | null
2563
2563
  color: string
2564
2564
  is_dashed: boolean
2565
+ dash_length?: number
2566
+ dash_gap?: number
2565
2567
  subcircuit_id?: string
2566
2568
  }
2567
2569
  ```
@@ -2620,6 +2622,8 @@ interface SchematicPath {
2620
2622
  schematic_component_id: string
2621
2623
  fill_color?: "red" | "blue"
2622
2624
  is_filled?: boolean
2625
+ dash_length?: number
2626
+ dash_gap?: number
2623
2627
  points: Point[]
2624
2628
  subcircuit_id?: string
2625
2629
  }
package/dist/index.d.mts CHANGED
@@ -8894,6 +8894,7 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
8894
8894
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
8895
8895
  pcb_component_id: z.ZodString;
8896
8896
  text: z.ZodString;
8897
+ ccw_rotation: z.ZodOptional<z.ZodNumber>;
8897
8898
  layer: z.ZodEnum<["top", "bottom"]>;
8898
8899
  anchor_position: z.ZodDefault<z.ZodObject<{
8899
8900
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -8922,6 +8923,7 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
8922
8923
  pcb_fabrication_note_text_id: string;
8923
8924
  subcircuit_id?: string | undefined;
8924
8925
  pcb_group_id?: string | undefined;
8926
+ ccw_rotation?: number | undefined;
8925
8927
  color?: string | undefined;
8926
8928
  }, {
8927
8929
  type: "pcb_fabrication_note_text";
@@ -8936,6 +8938,7 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
8936
8938
  y: string | number;
8937
8939
  } | undefined;
8938
8940
  anchor_alignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
8941
+ ccw_rotation?: number | undefined;
8939
8942
  font_size?: string | number | undefined;
8940
8943
  pcb_fabrication_note_text_id?: string | undefined;
8941
8944
  color?: string | undefined;
@@ -8953,6 +8956,7 @@ interface PcbFabricationNoteText {
8953
8956
  font_size: Length;
8954
8957
  pcb_component_id: string;
8955
8958
  text: string;
8959
+ ccw_rotation?: number;
8956
8960
  layer: VisibleLayer;
8957
8961
  anchor_position: Point;
8958
8962
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
@@ -12464,6 +12468,8 @@ interface SchematicPath {
12464
12468
  is_filled?: boolean;
12465
12469
  stroke_width?: number | null;
12466
12470
  stroke_color?: string;
12471
+ dash_length?: number;
12472
+ dash_gap?: number;
12467
12473
  points: Point[];
12468
12474
  subcircuit_id?: string;
12469
12475
  }
@@ -12476,6 +12482,8 @@ declare const schematic_path: z.ZodObject<{
12476
12482
  is_filled: z.ZodOptional<z.ZodBoolean>;
12477
12483
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
12478
12484
  stroke_color: z.ZodOptional<z.ZodString>;
12485
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12486
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12479
12487
  points: z.ZodArray<z.ZodObject<{
12480
12488
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12481
12489
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -12501,6 +12509,8 @@ declare const schematic_path: z.ZodObject<{
12501
12509
  schematic_symbol_id?: string | undefined;
12502
12510
  fill_color?: string | undefined;
12503
12511
  stroke_color?: string | undefined;
12512
+ dash_length?: number | undefined;
12513
+ dash_gap?: number | undefined;
12504
12514
  }, {
12505
12515
  type: "schematic_path";
12506
12516
  points: {
@@ -12515,6 +12525,8 @@ declare const schematic_path: z.ZodObject<{
12515
12525
  schematic_path_id?: string | undefined;
12516
12526
  fill_color?: string | undefined;
12517
12527
  stroke_color?: string | undefined;
12528
+ dash_length?: string | number | undefined;
12529
+ dash_gap?: string | number | undefined;
12518
12530
  }>;
12519
12531
  type SchematicPathInput = z.input<typeof schematic_path>;
12520
12532
 
@@ -23911,6 +23923,8 @@ interface SchematicLine {
23911
23923
  stroke_width?: number | null;
23912
23924
  color: string;
23913
23925
  is_dashed: boolean;
23926
+ dash_length?: number;
23927
+ dash_gap?: number;
23914
23928
  subcircuit_id?: string;
23915
23929
  }
23916
23930
  declare const schematic_line: z.ZodObject<{
@@ -23925,6 +23939,8 @@ declare const schematic_line: z.ZodObject<{
23925
23939
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
23926
23940
  color: z.ZodDefault<z.ZodString>;
23927
23941
  is_dashed: z.ZodDefault<z.ZodBoolean>;
23942
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23943
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23928
23944
  subcircuit_id: z.ZodOptional<z.ZodString>;
23929
23945
  }, "strip", z.ZodTypeAny, {
23930
23946
  type: "schematic_line";
@@ -23939,6 +23955,8 @@ declare const schematic_line: z.ZodObject<{
23939
23955
  stroke_width?: number | null | undefined;
23940
23956
  schematic_component_id?: string | undefined;
23941
23957
  schematic_symbol_id?: string | undefined;
23958
+ dash_length?: number | undefined;
23959
+ dash_gap?: number | undefined;
23942
23960
  }, {
23943
23961
  type: "schematic_line";
23944
23962
  x1: string | number;
@@ -23951,6 +23969,8 @@ declare const schematic_line: z.ZodObject<{
23951
23969
  is_dashed?: boolean | undefined;
23952
23970
  schematic_component_id?: string | undefined;
23953
23971
  schematic_symbol_id?: string | undefined;
23972
+ dash_length?: string | number | undefined;
23973
+ dash_gap?: string | number | undefined;
23954
23974
  schematic_line_id?: string | undefined;
23955
23975
  }>;
23956
23976
  type SchematicLineInput = z.input<typeof schematic_line>;
@@ -41130,6 +41150,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
41130
41150
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
41131
41151
  pcb_component_id: z.ZodString;
41132
41152
  text: z.ZodString;
41153
+ ccw_rotation: z.ZodOptional<z.ZodNumber>;
41133
41154
  layer: z.ZodEnum<["top", "bottom"]>;
41134
41155
  anchor_position: z.ZodDefault<z.ZodObject<{
41135
41156
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -41158,6 +41179,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
41158
41179
  pcb_fabrication_note_text_id: string;
41159
41180
  subcircuit_id?: string | undefined;
41160
41181
  pcb_group_id?: string | undefined;
41182
+ ccw_rotation?: number | undefined;
41161
41183
  color?: string | undefined;
41162
41184
  }, {
41163
41185
  type: "pcb_fabrication_note_text";
@@ -41172,6 +41194,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
41172
41194
  y: string | number;
41173
41195
  } | undefined;
41174
41196
  anchor_alignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
41197
+ ccw_rotation?: number | undefined;
41175
41198
  font_size?: string | number | undefined;
41176
41199
  pcb_fabrication_note_text_id?: string | undefined;
41177
41200
  color?: string | undefined;
@@ -42788,6 +42811,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
42788
42811
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
42789
42812
  color: z.ZodDefault<z.ZodString>;
42790
42813
  is_dashed: z.ZodDefault<z.ZodBoolean>;
42814
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
42815
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
42791
42816
  subcircuit_id: z.ZodOptional<z.ZodString>;
42792
42817
  }, "strip", z.ZodTypeAny, {
42793
42818
  type: "schematic_line";
@@ -42802,6 +42827,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
42802
42827
  stroke_width?: number | null | undefined;
42803
42828
  schematic_component_id?: string | undefined;
42804
42829
  schematic_symbol_id?: string | undefined;
42830
+ dash_length?: number | undefined;
42831
+ dash_gap?: number | undefined;
42805
42832
  }, {
42806
42833
  type: "schematic_line";
42807
42834
  x1: string | number;
@@ -42814,6 +42841,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
42814
42841
  is_dashed?: boolean | undefined;
42815
42842
  schematic_component_id?: string | undefined;
42816
42843
  schematic_symbol_id?: string | undefined;
42844
+ dash_length?: string | number | undefined;
42845
+ dash_gap?: string | number | undefined;
42817
42846
  schematic_line_id?: string | undefined;
42818
42847
  }>, z.ZodObject<{
42819
42848
  type: z.ZodLiteral<"schematic_rect">;
@@ -50218,6 +50247,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
50218
50247
  is_filled: z.ZodOptional<z.ZodBoolean>;
50219
50248
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
50220
50249
  stroke_color: z.ZodOptional<z.ZodString>;
50250
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
50251
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
50221
50252
  points: z.ZodArray<z.ZodObject<{
50222
50253
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
50223
50254
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -50243,6 +50274,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
50243
50274
  schematic_symbol_id?: string | undefined;
50244
50275
  fill_color?: string | undefined;
50245
50276
  stroke_color?: string | undefined;
50277
+ dash_length?: number | undefined;
50278
+ dash_gap?: number | undefined;
50246
50279
  }, {
50247
50280
  type: "schematic_path";
50248
50281
  points: {
@@ -50257,6 +50290,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
50257
50290
  schematic_path_id?: string | undefined;
50258
50291
  fill_color?: string | undefined;
50259
50292
  stroke_color?: string | undefined;
50293
+ dash_length?: string | number | undefined;
50294
+ dash_gap?: string | number | undefined;
50260
50295
  }>, z.ZodObject<{
50261
50296
  message: z.ZodString;
50262
50297
  is_fatal: z.ZodOptional<z.ZodBoolean>;
@@ -59376,6 +59411,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
59376
59411
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
59377
59412
  pcb_component_id: z.ZodString;
59378
59413
  text: z.ZodString;
59414
+ ccw_rotation: z.ZodOptional<z.ZodNumber>;
59379
59415
  layer: z.ZodEnum<["top", "bottom"]>;
59380
59416
  anchor_position: z.ZodDefault<z.ZodObject<{
59381
59417
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -59404,6 +59440,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
59404
59440
  pcb_fabrication_note_text_id: string;
59405
59441
  subcircuit_id?: string | undefined;
59406
59442
  pcb_group_id?: string | undefined;
59443
+ ccw_rotation?: number | undefined;
59407
59444
  color?: string | undefined;
59408
59445
  }, {
59409
59446
  type: "pcb_fabrication_note_text";
@@ -59418,6 +59455,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
59418
59455
  y: string | number;
59419
59456
  } | undefined;
59420
59457
  anchor_alignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
59458
+ ccw_rotation?: number | undefined;
59421
59459
  font_size?: string | number | undefined;
59422
59460
  pcb_fabrication_note_text_id?: string | undefined;
59423
59461
  color?: string | undefined;
@@ -61034,6 +61072,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
61034
61072
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
61035
61073
  color: z.ZodDefault<z.ZodString>;
61036
61074
  is_dashed: z.ZodDefault<z.ZodBoolean>;
61075
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
61076
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
61037
61077
  subcircuit_id: z.ZodOptional<z.ZodString>;
61038
61078
  }, "strip", z.ZodTypeAny, {
61039
61079
  type: "schematic_line";
@@ -61048,6 +61088,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
61048
61088
  stroke_width?: number | null | undefined;
61049
61089
  schematic_component_id?: string | undefined;
61050
61090
  schematic_symbol_id?: string | undefined;
61091
+ dash_length?: number | undefined;
61092
+ dash_gap?: number | undefined;
61051
61093
  }, {
61052
61094
  type: "schematic_line";
61053
61095
  x1: string | number;
@@ -61060,6 +61102,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
61060
61102
  is_dashed?: boolean | undefined;
61061
61103
  schematic_component_id?: string | undefined;
61062
61104
  schematic_symbol_id?: string | undefined;
61105
+ dash_length?: string | number | undefined;
61106
+ dash_gap?: string | number | undefined;
61063
61107
  schematic_line_id?: string | undefined;
61064
61108
  }>, z.ZodObject<{
61065
61109
  type: z.ZodLiteral<"schematic_rect">;
@@ -68464,6 +68508,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
68464
68508
  is_filled: z.ZodOptional<z.ZodBoolean>;
68465
68509
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
68466
68510
  stroke_color: z.ZodOptional<z.ZodString>;
68511
+ dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
68512
+ dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
68467
68513
  points: z.ZodArray<z.ZodObject<{
68468
68514
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
68469
68515
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -68489,6 +68535,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
68489
68535
  schematic_symbol_id?: string | undefined;
68490
68536
  fill_color?: string | undefined;
68491
68537
  stroke_color?: string | undefined;
68538
+ dash_length?: number | undefined;
68539
+ dash_gap?: number | undefined;
68492
68540
  }, {
68493
68541
  type: "schematic_path";
68494
68542
  points: {
@@ -68503,6 +68551,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
68503
68551
  schematic_path_id?: string | undefined;
68504
68552
  fill_color?: string | undefined;
68505
68553
  stroke_color?: string | undefined;
68554
+ dash_length?: string | number | undefined;
68555
+ dash_gap?: string | number | undefined;
68506
68556
  }>, z.ZodObject<{
68507
68557
  message: z.ZodString;
68508
68558
  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);
@@ -2722,6 +2726,7 @@ var pcb_fabrication_note_text = z121.object({
2722
2726
  font_size: distance.default("1mm"),
2723
2727
  pcb_component_id: z121.string(),
2724
2728
  text: z121.string(),
2729
+ ccw_rotation: z121.number().optional(),
2725
2730
  layer: visible_layer,
2726
2731
  anchor_position: point.default({ x: 0, y: 0 }),
2727
2732
  anchor_alignment: z121.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),