circuit-json 0.0.330 → 0.0.332

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
@@ -980,6 +980,8 @@ interface PcbComponent {
980
980
  center: Point
981
981
  layer: LayerRef
982
982
  rotation: Rotation
983
+ display_offset_x?: string
984
+ display_offset_y?: string
983
985
  width: Length
984
986
  height: Length
985
987
  do_not_place?: boolean
@@ -1365,6 +1367,8 @@ interface PcbGroup {
1365
1367
  width?: Length
1366
1368
  height?: Length
1367
1369
  center: Point
1370
+ display_offset_x?: string
1371
+ display_offset_y?: string
1368
1372
  outline?: Point[]
1369
1373
  anchor_position?: Point
1370
1374
  anchor_alignment?:
@@ -1373,6 +1377,9 @@ interface PcbGroup {
1373
1377
  | "top_right"
1374
1378
  | "bottom_left"
1375
1379
  | "bottom_right"
1380
+ position_mode?: "packed" | "relative_to_group_anchor" | "none"
1381
+ positioned_relative_to_pcb_group_id?: string
1382
+ positioned_relative_to_pcb_board_id?: string
1376
1383
  pcb_component_ids: string[]
1377
1384
  child_layout_mode?: "packed" | "none"
1378
1385
  name?: string
package/dist/index.d.mts CHANGED
@@ -401,6 +401,8 @@ declare const pcb_component: z.ZodObject<{
401
401
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
402
402
  }>;
403
403
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
404
+ display_offset_x: z.ZodOptional<z.ZodString>;
405
+ display_offset_y: z.ZodOptional<z.ZodString>;
404
406
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
405
407
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
406
408
  do_not_place: z.ZodOptional<z.ZodBoolean>;
@@ -423,6 +425,8 @@ declare const pcb_component: z.ZodObject<{
423
425
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
424
426
  rotation: number;
425
427
  obstructs_within_bounds: boolean;
428
+ display_offset_x?: string | undefined;
429
+ display_offset_y?: string | undefined;
426
430
  do_not_place?: boolean | undefined;
427
431
  subcircuit_id?: string | undefined;
428
432
  pcb_group_id?: string | undefined;
@@ -443,6 +447,8 @@ declare const pcb_component: z.ZodObject<{
443
447
  };
444
448
  rotation: string | number;
445
449
  pcb_component_id?: string | undefined;
450
+ display_offset_x?: string | undefined;
451
+ display_offset_y?: string | undefined;
446
452
  do_not_place?: boolean | undefined;
447
453
  subcircuit_id?: string | undefined;
448
454
  pcb_group_id?: string | undefined;
@@ -463,6 +469,8 @@ interface PcbComponent {
463
469
  center: Point;
464
470
  layer: LayerRef;
465
471
  rotation: Rotation;
472
+ display_offset_x?: string;
473
+ display_offset_y?: string;
466
474
  width: Length;
467
475
  height: Length;
468
476
  do_not_place?: boolean;
@@ -6020,6 +6028,8 @@ declare const pcb_group: z.ZodObject<{
6020
6028
  x: string | number;
6021
6029
  y: string | number;
6022
6030
  }>;
6031
+ display_offset_x: z.ZodOptional<z.ZodString>;
6032
+ display_offset_y: z.ZodOptional<z.ZodString>;
6023
6033
  outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
6024
6034
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6025
6035
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -6041,6 +6051,9 @@ declare const pcb_group: z.ZodObject<{
6041
6051
  y: string | number;
6042
6052
  }>>;
6043
6053
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
6054
+ position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
6055
+ positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
6056
+ positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
6044
6057
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
6045
6058
  child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
6046
6059
  name: z.ZodOptional<z.ZodString>;
@@ -6067,7 +6080,12 @@ declare const pcb_group: z.ZodObject<{
6067
6080
  width?: number | undefined;
6068
6081
  height?: number | undefined;
6069
6082
  name?: string | undefined;
6083
+ display_offset_x?: string | undefined;
6084
+ display_offset_y?: string | undefined;
6070
6085
  subcircuit_id?: string | undefined;
6086
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
6087
+ positioned_relative_to_pcb_group_id?: string | undefined;
6088
+ positioned_relative_to_pcb_board_id?: string | undefined;
6071
6089
  is_subcircuit?: boolean | undefined;
6072
6090
  outline?: {
6073
6091
  x: number;
@@ -6096,8 +6114,13 @@ declare const pcb_group: z.ZodObject<{
6096
6114
  width?: string | number | undefined;
6097
6115
  height?: string | number | undefined;
6098
6116
  name?: string | undefined;
6117
+ display_offset_x?: string | undefined;
6118
+ display_offset_y?: string | undefined;
6099
6119
  subcircuit_id?: string | undefined;
6100
6120
  pcb_group_id?: string | undefined;
6121
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
6122
+ positioned_relative_to_pcb_group_id?: string | undefined;
6123
+ positioned_relative_to_pcb_board_id?: string | undefined;
6101
6124
  is_subcircuit?: boolean | undefined;
6102
6125
  outline?: {
6103
6126
  x: string | number;
@@ -6128,9 +6151,14 @@ interface PcbGroup {
6128
6151
  width?: Length;
6129
6152
  height?: Length;
6130
6153
  center: Point;
6154
+ display_offset_x?: string;
6155
+ display_offset_y?: string;
6131
6156
  outline?: Point[];
6132
6157
  anchor_position?: Point;
6133
6158
  anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
6159
+ position_mode?: "packed" | "relative_to_group_anchor" | "none";
6160
+ positioned_relative_to_pcb_group_id?: string;
6161
+ positioned_relative_to_pcb_board_id?: string;
6134
6162
  pcb_component_ids: string[];
6135
6163
  child_layout_mode?: "packed" | "none";
6136
6164
  name?: string;
@@ -15027,6 +15055,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15027
15055
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
15028
15056
  }>;
15029
15057
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15058
+ display_offset_x: z.ZodOptional<z.ZodString>;
15059
+ display_offset_y: z.ZodOptional<z.ZodString>;
15030
15060
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15031
15061
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15032
15062
  do_not_place: z.ZodOptional<z.ZodBoolean>;
@@ -15049,6 +15079,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15049
15079
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
15050
15080
  rotation: number;
15051
15081
  obstructs_within_bounds: boolean;
15082
+ display_offset_x?: string | undefined;
15083
+ display_offset_y?: string | undefined;
15052
15084
  do_not_place?: boolean | undefined;
15053
15085
  subcircuit_id?: string | undefined;
15054
15086
  pcb_group_id?: string | undefined;
@@ -15069,6 +15101,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15069
15101
  };
15070
15102
  rotation: string | number;
15071
15103
  pcb_component_id?: string | undefined;
15104
+ display_offset_x?: string | undefined;
15105
+ display_offset_y?: string | undefined;
15072
15106
  do_not_place?: boolean | undefined;
15073
15107
  subcircuit_id?: string | undefined;
15074
15108
  pcb_group_id?: string | undefined;
@@ -17026,6 +17060,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17026
17060
  x: string | number;
17027
17061
  y: string | number;
17028
17062
  }>;
17063
+ display_offset_x: z.ZodOptional<z.ZodString>;
17064
+ display_offset_y: z.ZodOptional<z.ZodString>;
17029
17065
  outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
17030
17066
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17031
17067
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -17047,6 +17083,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17047
17083
  y: string | number;
17048
17084
  }>>;
17049
17085
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
17086
+ position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
17087
+ positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
17088
+ positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
17050
17089
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
17051
17090
  child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
17052
17091
  name: z.ZodOptional<z.ZodString>;
@@ -17073,7 +17112,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17073
17112
  width?: number | undefined;
17074
17113
  height?: number | undefined;
17075
17114
  name?: string | undefined;
17115
+ display_offset_x?: string | undefined;
17116
+ display_offset_y?: string | undefined;
17076
17117
  subcircuit_id?: string | undefined;
17118
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
17119
+ positioned_relative_to_pcb_group_id?: string | undefined;
17120
+ positioned_relative_to_pcb_board_id?: string | undefined;
17077
17121
  is_subcircuit?: boolean | undefined;
17078
17122
  outline?: {
17079
17123
  x: number;
@@ -17102,8 +17146,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17102
17146
  width?: string | number | undefined;
17103
17147
  height?: string | number | undefined;
17104
17148
  name?: string | undefined;
17149
+ display_offset_x?: string | undefined;
17150
+ display_offset_y?: string | undefined;
17105
17151
  subcircuit_id?: string | undefined;
17106
17152
  pcb_group_id?: string | undefined;
17153
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
17154
+ positioned_relative_to_pcb_group_id?: string | undefined;
17155
+ positioned_relative_to_pcb_board_id?: string | undefined;
17107
17156
  is_subcircuit?: boolean | undefined;
17108
17157
  outline?: {
17109
17158
  x: string | number;
@@ -23038,6 +23087,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23038
23087
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
23039
23088
  }>;
23040
23089
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23090
+ display_offset_x: z.ZodOptional<z.ZodString>;
23091
+ display_offset_y: z.ZodOptional<z.ZodString>;
23041
23092
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23042
23093
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
23043
23094
  do_not_place: z.ZodOptional<z.ZodBoolean>;
@@ -23060,6 +23111,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23060
23111
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
23061
23112
  rotation: number;
23062
23113
  obstructs_within_bounds: boolean;
23114
+ display_offset_x?: string | undefined;
23115
+ display_offset_y?: string | undefined;
23063
23116
  do_not_place?: boolean | undefined;
23064
23117
  subcircuit_id?: string | undefined;
23065
23118
  pcb_group_id?: string | undefined;
@@ -23080,6 +23133,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23080
23133
  };
23081
23134
  rotation: string | number;
23082
23135
  pcb_component_id?: string | undefined;
23136
+ display_offset_x?: string | undefined;
23137
+ display_offset_y?: string | undefined;
23083
23138
  do_not_place?: boolean | undefined;
23084
23139
  subcircuit_id?: string | undefined;
23085
23140
  pcb_group_id?: string | undefined;
@@ -25037,6 +25092,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25037
25092
  x: string | number;
25038
25093
  y: string | number;
25039
25094
  }>;
25095
+ display_offset_x: z.ZodOptional<z.ZodString>;
25096
+ display_offset_y: z.ZodOptional<z.ZodString>;
25040
25097
  outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
25041
25098
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
25042
25099
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -25058,6 +25115,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25058
25115
  y: string | number;
25059
25116
  }>>;
25060
25117
  anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
25118
+ position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
25119
+ positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
25120
+ positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
25061
25121
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
25062
25122
  child_layout_mode: z.ZodOptional<z.ZodEnum<["packed", "none"]>>;
25063
25123
  name: z.ZodOptional<z.ZodString>;
@@ -25084,7 +25144,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25084
25144
  width?: number | undefined;
25085
25145
  height?: number | undefined;
25086
25146
  name?: string | undefined;
25147
+ display_offset_x?: string | undefined;
25148
+ display_offset_y?: string | undefined;
25087
25149
  subcircuit_id?: string | undefined;
25150
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
25151
+ positioned_relative_to_pcb_group_id?: string | undefined;
25152
+ positioned_relative_to_pcb_board_id?: string | undefined;
25088
25153
  is_subcircuit?: boolean | undefined;
25089
25154
  outline?: {
25090
25155
  x: number;
@@ -25113,8 +25178,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
25113
25178
  width?: string | number | undefined;
25114
25179
  height?: string | number | undefined;
25115
25180
  name?: string | undefined;
25181
+ display_offset_x?: string | undefined;
25182
+ display_offset_y?: string | undefined;
25116
25183
  subcircuit_id?: string | undefined;
25117
25184
  pcb_group_id?: string | undefined;
25185
+ position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
25186
+ positioned_relative_to_pcb_group_id?: string | undefined;
25187
+ positioned_relative_to_pcb_board_id?: string | undefined;
25118
25188
  is_subcircuit?: boolean | undefined;
25119
25189
  outline?: {
25120
25190
  x: string | number;
package/dist/index.mjs CHANGED
@@ -1316,6 +1316,12 @@ var pcb_component = z73.object({
1316
1316
  center: point,
1317
1317
  layer: layer_ref,
1318
1318
  rotation,
1319
+ display_offset_x: z73.string().optional().describe(
1320
+ "How to display the x offset for this part, usually corresponding with how the user specified it"
1321
+ ),
1322
+ display_offset_y: z73.string().optional().describe(
1323
+ "How to display the y offset for this part, usually corresponding with how the user specified it"
1324
+ ),
1319
1325
  width: length,
1320
1326
  height: length,
1321
1327
  do_not_place: z73.boolean().optional(),
@@ -2523,9 +2529,18 @@ var pcb_group = z113.object({
2523
2529
  width: length.optional(),
2524
2530
  height: length.optional(),
2525
2531
  center: point,
2532
+ display_offset_x: z113.string().optional().describe(
2533
+ "How to display the x offset for this group, usually corresponding with how the user specified it"
2534
+ ),
2535
+ display_offset_y: z113.string().optional().describe(
2536
+ "How to display the y offset for this group, usually corresponding with how the user specified it"
2537
+ ),
2526
2538
  outline: z113.array(point).optional(),
2527
2539
  anchor_position: point.optional(),
2528
2540
  anchor_alignment: z113.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
2541
+ position_mode: z113.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
2542
+ positioned_relative_to_pcb_group_id: z113.string().optional(),
2543
+ positioned_relative_to_pcb_board_id: z113.string().optional(),
2529
2544
  pcb_component_ids: z113.array(z113.string()),
2530
2545
  child_layout_mode: z113.enum(["packed", "none"]).optional(),
2531
2546
  name: z113.string().optional(),