circuit-json 0.0.291 → 0.0.292

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
@@ -1093,6 +1093,11 @@ interface PcbFabricationNoteDimension {
1093
1093
  to: Point
1094
1094
  text?: string
1095
1095
  offset?: Length
1096
+ offset_distance?: Length
1097
+ offset_direction?: {
1098
+ x: number
1099
+ y: number
1100
+ }
1096
1101
  font: "tscircuit2024"
1097
1102
  font_size: Length
1098
1103
  color?: string
@@ -1361,6 +1366,11 @@ interface PcbNoteDimension {
1361
1366
  from: Point
1362
1367
  to: Point
1363
1368
  text?: string
1369
+ offset_distance?: Length
1370
+ offset_direction?: {
1371
+ x: number
1372
+ y: number
1373
+ }
1364
1374
  font: "tscircuit2024"
1365
1375
  font_size: Length
1366
1376
  color?: string
package/dist/index.d.mts CHANGED
@@ -4014,6 +4014,17 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
4014
4014
  }>;
4015
4015
  text: z.ZodOptional<z.ZodString>;
4016
4016
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4017
+ offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4018
+ offset_direction: z.ZodOptional<z.ZodObject<{
4019
+ x: z.ZodNumber;
4020
+ y: z.ZodNumber;
4021
+ }, "strip", z.ZodTypeAny, {
4022
+ x: number;
4023
+ y: number;
4024
+ }, {
4025
+ x: number;
4026
+ y: number;
4027
+ }>>;
4017
4028
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
4018
4029
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4019
4030
  color: z.ZodOptional<z.ZodString>;
@@ -4039,6 +4050,11 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
4039
4050
  text?: string | undefined;
4040
4051
  color?: string | undefined;
4041
4052
  offset?: number | undefined;
4053
+ offset_distance?: number | undefined;
4054
+ offset_direction?: {
4055
+ x: number;
4056
+ y: number;
4057
+ } | undefined;
4042
4058
  }, {
4043
4059
  type: "pcb_fabrication_note_dimension";
4044
4060
  pcb_component_id: string;
@@ -4059,6 +4075,11 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
4059
4075
  color?: string | undefined;
4060
4076
  pcb_fabrication_note_dimension_id?: string | undefined;
4061
4077
  offset?: string | number | undefined;
4078
+ offset_distance?: string | number | undefined;
4079
+ offset_direction?: {
4080
+ x: number;
4081
+ y: number;
4082
+ } | undefined;
4062
4083
  arrow_size?: string | number | undefined;
4063
4084
  }>;
4064
4085
  type PcbFabricationNoteDimensionInput = z.input<typeof pcb_fabrication_note_dimension>;
@@ -4076,6 +4097,11 @@ interface PcbFabricationNoteDimension {
4076
4097
  to: Point;
4077
4098
  text?: string;
4078
4099
  offset?: Length;
4100
+ offset_distance?: Length;
4101
+ offset_direction?: {
4102
+ x: number;
4103
+ y: number;
4104
+ };
4079
4105
  font: "tscircuit2024";
4080
4106
  font_size: Length;
4081
4107
  color?: string;
@@ -4407,6 +4433,17 @@ declare const pcb_note_dimension: z.ZodObject<{
4407
4433
  y: string | number;
4408
4434
  }>;
4409
4435
  text: z.ZodOptional<z.ZodString>;
4436
+ offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4437
+ offset_direction: z.ZodOptional<z.ZodObject<{
4438
+ x: z.ZodNumber;
4439
+ y: z.ZodNumber;
4440
+ }, "strip", z.ZodTypeAny, {
4441
+ x: number;
4442
+ y: number;
4443
+ }, {
4444
+ x: number;
4445
+ y: number;
4446
+ }>>;
4410
4447
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
4411
4448
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4412
4449
  color: z.ZodOptional<z.ZodString>;
@@ -4431,6 +4468,11 @@ declare const pcb_note_dimension: z.ZodObject<{
4431
4468
  pcb_group_id?: string | undefined;
4432
4469
  text?: string | undefined;
4433
4470
  color?: string | undefined;
4471
+ offset_distance?: number | undefined;
4472
+ offset_direction?: {
4473
+ x: number;
4474
+ y: number;
4475
+ } | undefined;
4434
4476
  }, {
4435
4477
  type: "pcb_note_dimension";
4436
4478
  from: {
@@ -4449,6 +4491,11 @@ declare const pcb_note_dimension: z.ZodObject<{
4449
4491
  font?: "tscircuit2024" | undefined;
4450
4492
  font_size?: string | number | undefined;
4451
4493
  color?: string | undefined;
4494
+ offset_distance?: string | number | undefined;
4495
+ offset_direction?: {
4496
+ x: number;
4497
+ y: number;
4498
+ } | undefined;
4452
4499
  arrow_size?: string | number | undefined;
4453
4500
  pcb_note_dimension_id?: string | undefined;
4454
4501
  }>;
@@ -4466,6 +4513,11 @@ interface PcbNoteDimension {
4466
4513
  from: Point;
4467
4514
  to: Point;
4468
4515
  text?: string;
4516
+ offset_distance?: Length;
4517
+ offset_direction?: {
4518
+ x: number;
4519
+ y: number;
4520
+ };
4469
4521
  font: "tscircuit2024";
4470
4522
  font_size: Length;
4471
4523
  color?: string;
@@ -16203,6 +16255,17 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16203
16255
  }>;
16204
16256
  text: z.ZodOptional<z.ZodString>;
16205
16257
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16258
+ offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16259
+ offset_direction: z.ZodOptional<z.ZodObject<{
16260
+ x: z.ZodNumber;
16261
+ y: z.ZodNumber;
16262
+ }, "strip", z.ZodTypeAny, {
16263
+ x: number;
16264
+ y: number;
16265
+ }, {
16266
+ x: number;
16267
+ y: number;
16268
+ }>>;
16206
16269
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
16207
16270
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16208
16271
  color: z.ZodOptional<z.ZodString>;
@@ -16228,6 +16291,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16228
16291
  text?: string | undefined;
16229
16292
  color?: string | undefined;
16230
16293
  offset?: number | undefined;
16294
+ offset_distance?: number | undefined;
16295
+ offset_direction?: {
16296
+ x: number;
16297
+ y: number;
16298
+ } | undefined;
16231
16299
  }, {
16232
16300
  type: "pcb_fabrication_note_dimension";
16233
16301
  pcb_component_id: string;
@@ -16248,6 +16316,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16248
16316
  color?: string | undefined;
16249
16317
  pcb_fabrication_note_dimension_id?: string | undefined;
16250
16318
  offset?: string | number | undefined;
16319
+ offset_distance?: string | number | undefined;
16320
+ offset_direction?: {
16321
+ x: number;
16322
+ y: number;
16323
+ } | undefined;
16251
16324
  arrow_size?: string | number | undefined;
16252
16325
  }>, z.ZodObject<{
16253
16326
  type: z.ZodLiteral<"pcb_note_text">;
@@ -16487,6 +16560,17 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16487
16560
  y: string | number;
16488
16561
  }>;
16489
16562
  text: z.ZodOptional<z.ZodString>;
16563
+ offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16564
+ offset_direction: z.ZodOptional<z.ZodObject<{
16565
+ x: z.ZodNumber;
16566
+ y: z.ZodNumber;
16567
+ }, "strip", z.ZodTypeAny, {
16568
+ x: number;
16569
+ y: number;
16570
+ }, {
16571
+ x: number;
16572
+ y: number;
16573
+ }>>;
16490
16574
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
16491
16575
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16492
16576
  color: z.ZodOptional<z.ZodString>;
@@ -16511,6 +16595,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16511
16595
  pcb_group_id?: string | undefined;
16512
16596
  text?: string | undefined;
16513
16597
  color?: string | undefined;
16598
+ offset_distance?: number | undefined;
16599
+ offset_direction?: {
16600
+ x: number;
16601
+ y: number;
16602
+ } | undefined;
16514
16603
  }, {
16515
16604
  type: "pcb_note_dimension";
16516
16605
  from: {
@@ -16529,6 +16618,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16529
16618
  font?: "tscircuit2024" | undefined;
16530
16619
  font_size?: string | number | undefined;
16531
16620
  color?: string | undefined;
16621
+ offset_distance?: string | number | undefined;
16622
+ offset_direction?: {
16623
+ x: number;
16624
+ y: number;
16625
+ } | undefined;
16532
16626
  arrow_size?: string | number | undefined;
16533
16627
  pcb_note_dimension_id?: string | undefined;
16534
16628
  }>, z.ZodObject<{
@@ -23510,6 +23604,17 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23510
23604
  }>;
23511
23605
  text: z.ZodOptional<z.ZodString>;
23512
23606
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23607
+ offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23608
+ offset_direction: z.ZodOptional<z.ZodObject<{
23609
+ x: z.ZodNumber;
23610
+ y: z.ZodNumber;
23611
+ }, "strip", z.ZodTypeAny, {
23612
+ x: number;
23613
+ y: number;
23614
+ }, {
23615
+ x: number;
23616
+ y: number;
23617
+ }>>;
23513
23618
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
23514
23619
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23515
23620
  color: z.ZodOptional<z.ZodString>;
@@ -23535,6 +23640,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23535
23640
  text?: string | undefined;
23536
23641
  color?: string | undefined;
23537
23642
  offset?: number | undefined;
23643
+ offset_distance?: number | undefined;
23644
+ offset_direction?: {
23645
+ x: number;
23646
+ y: number;
23647
+ } | undefined;
23538
23648
  }, {
23539
23649
  type: "pcb_fabrication_note_dimension";
23540
23650
  pcb_component_id: string;
@@ -23555,6 +23665,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23555
23665
  color?: string | undefined;
23556
23666
  pcb_fabrication_note_dimension_id?: string | undefined;
23557
23667
  offset?: string | number | undefined;
23668
+ offset_distance?: string | number | undefined;
23669
+ offset_direction?: {
23670
+ x: number;
23671
+ y: number;
23672
+ } | undefined;
23558
23673
  arrow_size?: string | number | undefined;
23559
23674
  }>, z.ZodObject<{
23560
23675
  type: z.ZodLiteral<"pcb_note_text">;
@@ -23794,6 +23909,17 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23794
23909
  y: string | number;
23795
23910
  }>;
23796
23911
  text: z.ZodOptional<z.ZodString>;
23912
+ offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23913
+ offset_direction: z.ZodOptional<z.ZodObject<{
23914
+ x: z.ZodNumber;
23915
+ y: z.ZodNumber;
23916
+ }, "strip", z.ZodTypeAny, {
23917
+ x: number;
23918
+ y: number;
23919
+ }, {
23920
+ x: number;
23921
+ y: number;
23922
+ }>>;
23797
23923
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
23798
23924
  font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23799
23925
  color: z.ZodOptional<z.ZodString>;
@@ -23818,6 +23944,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23818
23944
  pcb_group_id?: string | undefined;
23819
23945
  text?: string | undefined;
23820
23946
  color?: string | undefined;
23947
+ offset_distance?: number | undefined;
23948
+ offset_direction?: {
23949
+ x: number;
23950
+ y: number;
23951
+ } | undefined;
23821
23952
  }, {
23822
23953
  type: "pcb_note_dimension";
23823
23954
  from: {
@@ -23836,6 +23967,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23836
23967
  font?: "tscircuit2024" | undefined;
23837
23968
  font_size?: string | number | undefined;
23838
23969
  color?: string | undefined;
23970
+ offset_distance?: string | number | undefined;
23971
+ offset_direction?: {
23972
+ x: number;
23973
+ y: number;
23974
+ } | undefined;
23839
23975
  arrow_size?: string | number | undefined;
23840
23976
  pcb_note_dimension_id?: string | undefined;
23841
23977
  }>, z.ZodObject<{
package/dist/index.mjs CHANGED
@@ -2061,6 +2061,11 @@ var pcb_fabrication_note_dimension = z95.object({
2061
2061
  to: point,
2062
2062
  text: z95.string().optional(),
2063
2063
  offset: length.optional(),
2064
+ offset_distance: length.optional(),
2065
+ offset_direction: z95.object({
2066
+ x: z95.number(),
2067
+ y: z95.number()
2068
+ }).optional(),
2064
2069
  font: z95.literal("tscircuit2024").default("tscircuit2024"),
2065
2070
  font_size: length.default("1mm"),
2066
2071
  color: z95.string().optional(),
@@ -2155,6 +2160,11 @@ var pcb_note_dimension = z100.object({
2155
2160
  from: point,
2156
2161
  to: point,
2157
2162
  text: z100.string().optional(),
2163
+ offset_distance: length.optional(),
2164
+ offset_direction: z100.object({
2165
+ x: z100.number(),
2166
+ y: z100.number()
2167
+ }).optional(),
2158
2168
  font: z100.literal("tscircuit2024").default("tscircuit2024"),
2159
2169
  font_size: length.default("1mm"),
2160
2170
  color: z100.string().optional(),