circuit-json 0.0.291 → 0.0.293
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 +12 -0
- package/dist/index.d.mts +156 -0
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1092,7 +1092,13 @@ interface PcbFabricationNoteDimension {
|
|
|
1092
1092
|
from: Point
|
|
1093
1093
|
to: Point
|
|
1094
1094
|
text?: string
|
|
1095
|
+
text_ccw_rotation?: number
|
|
1095
1096
|
offset?: Length
|
|
1097
|
+
offset_distance?: Length
|
|
1098
|
+
offset_direction?: {
|
|
1099
|
+
x: number
|
|
1100
|
+
y: number
|
|
1101
|
+
}
|
|
1096
1102
|
font: "tscircuit2024"
|
|
1097
1103
|
font_size: Length
|
|
1098
1104
|
color?: string
|
|
@@ -1361,6 +1367,12 @@ interface PcbNoteDimension {
|
|
|
1361
1367
|
from: Point
|
|
1362
1368
|
to: Point
|
|
1363
1369
|
text?: string
|
|
1370
|
+
text_ccw_rotation?: number
|
|
1371
|
+
offset_distance?: Length
|
|
1372
|
+
offset_direction?: {
|
|
1373
|
+
x: number
|
|
1374
|
+
y: number
|
|
1375
|
+
}
|
|
1364
1376
|
font: "tscircuit2024"
|
|
1365
1377
|
font_size: Length
|
|
1366
1378
|
color?: string
|
package/dist/index.d.mts
CHANGED
|
@@ -4013,7 +4013,19 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
4013
4013
|
y: string | number;
|
|
4014
4014
|
}>;
|
|
4015
4015
|
text: z.ZodOptional<z.ZodString>;
|
|
4016
|
+
text_ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
4016
4017
|
offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4018
|
+
offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4019
|
+
offset_direction: z.ZodOptional<z.ZodObject<{
|
|
4020
|
+
x: z.ZodNumber;
|
|
4021
|
+
y: z.ZodNumber;
|
|
4022
|
+
}, "strip", z.ZodTypeAny, {
|
|
4023
|
+
x: number;
|
|
4024
|
+
y: number;
|
|
4025
|
+
}, {
|
|
4026
|
+
x: number;
|
|
4027
|
+
y: number;
|
|
4028
|
+
}>>;
|
|
4017
4029
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
4018
4030
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4019
4031
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -4038,7 +4050,13 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
4038
4050
|
pcb_group_id?: string | undefined;
|
|
4039
4051
|
text?: string | undefined;
|
|
4040
4052
|
color?: string | undefined;
|
|
4053
|
+
text_ccw_rotation?: number | undefined;
|
|
4041
4054
|
offset?: number | undefined;
|
|
4055
|
+
offset_distance?: number | undefined;
|
|
4056
|
+
offset_direction?: {
|
|
4057
|
+
x: number;
|
|
4058
|
+
y: number;
|
|
4059
|
+
} | undefined;
|
|
4042
4060
|
}, {
|
|
4043
4061
|
type: "pcb_fabrication_note_dimension";
|
|
4044
4062
|
pcb_component_id: string;
|
|
@@ -4058,7 +4076,13 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
4058
4076
|
font_size?: string | number | undefined;
|
|
4059
4077
|
color?: string | undefined;
|
|
4060
4078
|
pcb_fabrication_note_dimension_id?: string | undefined;
|
|
4079
|
+
text_ccw_rotation?: number | undefined;
|
|
4061
4080
|
offset?: string | number | undefined;
|
|
4081
|
+
offset_distance?: string | number | undefined;
|
|
4082
|
+
offset_direction?: {
|
|
4083
|
+
x: number;
|
|
4084
|
+
y: number;
|
|
4085
|
+
} | undefined;
|
|
4062
4086
|
arrow_size?: string | number | undefined;
|
|
4063
4087
|
}>;
|
|
4064
4088
|
type PcbFabricationNoteDimensionInput = z.input<typeof pcb_fabrication_note_dimension>;
|
|
@@ -4075,7 +4099,13 @@ interface PcbFabricationNoteDimension {
|
|
|
4075
4099
|
from: Point;
|
|
4076
4100
|
to: Point;
|
|
4077
4101
|
text?: string;
|
|
4102
|
+
text_ccw_rotation?: number;
|
|
4078
4103
|
offset?: Length;
|
|
4104
|
+
offset_distance?: Length;
|
|
4105
|
+
offset_direction?: {
|
|
4106
|
+
x: number;
|
|
4107
|
+
y: number;
|
|
4108
|
+
};
|
|
4079
4109
|
font: "tscircuit2024";
|
|
4080
4110
|
font_size: Length;
|
|
4081
4111
|
color?: string;
|
|
@@ -4407,6 +4437,18 @@ declare const pcb_note_dimension: z.ZodObject<{
|
|
|
4407
4437
|
y: string | number;
|
|
4408
4438
|
}>;
|
|
4409
4439
|
text: z.ZodOptional<z.ZodString>;
|
|
4440
|
+
text_ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
4441
|
+
offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4442
|
+
offset_direction: z.ZodOptional<z.ZodObject<{
|
|
4443
|
+
x: z.ZodNumber;
|
|
4444
|
+
y: z.ZodNumber;
|
|
4445
|
+
}, "strip", z.ZodTypeAny, {
|
|
4446
|
+
x: number;
|
|
4447
|
+
y: number;
|
|
4448
|
+
}, {
|
|
4449
|
+
x: number;
|
|
4450
|
+
y: number;
|
|
4451
|
+
}>>;
|
|
4410
4452
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
4411
4453
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4412
4454
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -4431,6 +4473,12 @@ declare const pcb_note_dimension: z.ZodObject<{
|
|
|
4431
4473
|
pcb_group_id?: string | undefined;
|
|
4432
4474
|
text?: string | undefined;
|
|
4433
4475
|
color?: string | undefined;
|
|
4476
|
+
text_ccw_rotation?: number | undefined;
|
|
4477
|
+
offset_distance?: number | undefined;
|
|
4478
|
+
offset_direction?: {
|
|
4479
|
+
x: number;
|
|
4480
|
+
y: number;
|
|
4481
|
+
} | undefined;
|
|
4434
4482
|
}, {
|
|
4435
4483
|
type: "pcb_note_dimension";
|
|
4436
4484
|
from: {
|
|
@@ -4449,6 +4497,12 @@ declare const pcb_note_dimension: z.ZodObject<{
|
|
|
4449
4497
|
font?: "tscircuit2024" | undefined;
|
|
4450
4498
|
font_size?: string | number | undefined;
|
|
4451
4499
|
color?: string | undefined;
|
|
4500
|
+
text_ccw_rotation?: number | undefined;
|
|
4501
|
+
offset_distance?: string | number | undefined;
|
|
4502
|
+
offset_direction?: {
|
|
4503
|
+
x: number;
|
|
4504
|
+
y: number;
|
|
4505
|
+
} | undefined;
|
|
4452
4506
|
arrow_size?: string | number | undefined;
|
|
4453
4507
|
pcb_note_dimension_id?: string | undefined;
|
|
4454
4508
|
}>;
|
|
@@ -4466,6 +4520,12 @@ interface PcbNoteDimension {
|
|
|
4466
4520
|
from: Point;
|
|
4467
4521
|
to: Point;
|
|
4468
4522
|
text?: string;
|
|
4523
|
+
text_ccw_rotation?: number;
|
|
4524
|
+
offset_distance?: Length;
|
|
4525
|
+
offset_direction?: {
|
|
4526
|
+
x: number;
|
|
4527
|
+
y: number;
|
|
4528
|
+
};
|
|
4469
4529
|
font: "tscircuit2024";
|
|
4470
4530
|
font_size: Length;
|
|
4471
4531
|
color?: string;
|
|
@@ -16202,7 +16262,19 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16202
16262
|
y: string | number;
|
|
16203
16263
|
}>;
|
|
16204
16264
|
text: z.ZodOptional<z.ZodString>;
|
|
16265
|
+
text_ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
16205
16266
|
offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16267
|
+
offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16268
|
+
offset_direction: z.ZodOptional<z.ZodObject<{
|
|
16269
|
+
x: z.ZodNumber;
|
|
16270
|
+
y: z.ZodNumber;
|
|
16271
|
+
}, "strip", z.ZodTypeAny, {
|
|
16272
|
+
x: number;
|
|
16273
|
+
y: number;
|
|
16274
|
+
}, {
|
|
16275
|
+
x: number;
|
|
16276
|
+
y: number;
|
|
16277
|
+
}>>;
|
|
16206
16278
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
16207
16279
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16208
16280
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -16227,7 +16299,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16227
16299
|
pcb_group_id?: string | undefined;
|
|
16228
16300
|
text?: string | undefined;
|
|
16229
16301
|
color?: string | undefined;
|
|
16302
|
+
text_ccw_rotation?: number | undefined;
|
|
16230
16303
|
offset?: number | undefined;
|
|
16304
|
+
offset_distance?: number | undefined;
|
|
16305
|
+
offset_direction?: {
|
|
16306
|
+
x: number;
|
|
16307
|
+
y: number;
|
|
16308
|
+
} | undefined;
|
|
16231
16309
|
}, {
|
|
16232
16310
|
type: "pcb_fabrication_note_dimension";
|
|
16233
16311
|
pcb_component_id: string;
|
|
@@ -16247,7 +16325,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16247
16325
|
font_size?: string | number | undefined;
|
|
16248
16326
|
color?: string | undefined;
|
|
16249
16327
|
pcb_fabrication_note_dimension_id?: string | undefined;
|
|
16328
|
+
text_ccw_rotation?: number | undefined;
|
|
16250
16329
|
offset?: string | number | undefined;
|
|
16330
|
+
offset_distance?: string | number | undefined;
|
|
16331
|
+
offset_direction?: {
|
|
16332
|
+
x: number;
|
|
16333
|
+
y: number;
|
|
16334
|
+
} | undefined;
|
|
16251
16335
|
arrow_size?: string | number | undefined;
|
|
16252
16336
|
}>, z.ZodObject<{
|
|
16253
16337
|
type: z.ZodLiteral<"pcb_note_text">;
|
|
@@ -16487,6 +16571,18 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16487
16571
|
y: string | number;
|
|
16488
16572
|
}>;
|
|
16489
16573
|
text: z.ZodOptional<z.ZodString>;
|
|
16574
|
+
text_ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
16575
|
+
offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16576
|
+
offset_direction: z.ZodOptional<z.ZodObject<{
|
|
16577
|
+
x: z.ZodNumber;
|
|
16578
|
+
y: z.ZodNumber;
|
|
16579
|
+
}, "strip", z.ZodTypeAny, {
|
|
16580
|
+
x: number;
|
|
16581
|
+
y: number;
|
|
16582
|
+
}, {
|
|
16583
|
+
x: number;
|
|
16584
|
+
y: number;
|
|
16585
|
+
}>>;
|
|
16490
16586
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
16491
16587
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16492
16588
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -16511,6 +16607,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16511
16607
|
pcb_group_id?: string | undefined;
|
|
16512
16608
|
text?: string | undefined;
|
|
16513
16609
|
color?: string | undefined;
|
|
16610
|
+
text_ccw_rotation?: number | undefined;
|
|
16611
|
+
offset_distance?: number | undefined;
|
|
16612
|
+
offset_direction?: {
|
|
16613
|
+
x: number;
|
|
16614
|
+
y: number;
|
|
16615
|
+
} | undefined;
|
|
16514
16616
|
}, {
|
|
16515
16617
|
type: "pcb_note_dimension";
|
|
16516
16618
|
from: {
|
|
@@ -16529,6 +16631,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16529
16631
|
font?: "tscircuit2024" | undefined;
|
|
16530
16632
|
font_size?: string | number | undefined;
|
|
16531
16633
|
color?: string | undefined;
|
|
16634
|
+
text_ccw_rotation?: number | undefined;
|
|
16635
|
+
offset_distance?: string | number | undefined;
|
|
16636
|
+
offset_direction?: {
|
|
16637
|
+
x: number;
|
|
16638
|
+
y: number;
|
|
16639
|
+
} | undefined;
|
|
16532
16640
|
arrow_size?: string | number | undefined;
|
|
16533
16641
|
pcb_note_dimension_id?: string | undefined;
|
|
16534
16642
|
}>, z.ZodObject<{
|
|
@@ -23509,7 +23617,19 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23509
23617
|
y: string | number;
|
|
23510
23618
|
}>;
|
|
23511
23619
|
text: z.ZodOptional<z.ZodString>;
|
|
23620
|
+
text_ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
23512
23621
|
offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23622
|
+
offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23623
|
+
offset_direction: z.ZodOptional<z.ZodObject<{
|
|
23624
|
+
x: z.ZodNumber;
|
|
23625
|
+
y: z.ZodNumber;
|
|
23626
|
+
}, "strip", z.ZodTypeAny, {
|
|
23627
|
+
x: number;
|
|
23628
|
+
y: number;
|
|
23629
|
+
}, {
|
|
23630
|
+
x: number;
|
|
23631
|
+
y: number;
|
|
23632
|
+
}>>;
|
|
23513
23633
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
23514
23634
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23515
23635
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -23534,7 +23654,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23534
23654
|
pcb_group_id?: string | undefined;
|
|
23535
23655
|
text?: string | undefined;
|
|
23536
23656
|
color?: string | undefined;
|
|
23657
|
+
text_ccw_rotation?: number | undefined;
|
|
23537
23658
|
offset?: number | undefined;
|
|
23659
|
+
offset_distance?: number | undefined;
|
|
23660
|
+
offset_direction?: {
|
|
23661
|
+
x: number;
|
|
23662
|
+
y: number;
|
|
23663
|
+
} | undefined;
|
|
23538
23664
|
}, {
|
|
23539
23665
|
type: "pcb_fabrication_note_dimension";
|
|
23540
23666
|
pcb_component_id: string;
|
|
@@ -23554,7 +23680,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23554
23680
|
font_size?: string | number | undefined;
|
|
23555
23681
|
color?: string | undefined;
|
|
23556
23682
|
pcb_fabrication_note_dimension_id?: string | undefined;
|
|
23683
|
+
text_ccw_rotation?: number | undefined;
|
|
23557
23684
|
offset?: string | number | undefined;
|
|
23685
|
+
offset_distance?: string | number | undefined;
|
|
23686
|
+
offset_direction?: {
|
|
23687
|
+
x: number;
|
|
23688
|
+
y: number;
|
|
23689
|
+
} | undefined;
|
|
23558
23690
|
arrow_size?: string | number | undefined;
|
|
23559
23691
|
}>, z.ZodObject<{
|
|
23560
23692
|
type: z.ZodLiteral<"pcb_note_text">;
|
|
@@ -23794,6 +23926,18 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23794
23926
|
y: string | number;
|
|
23795
23927
|
}>;
|
|
23796
23928
|
text: z.ZodOptional<z.ZodString>;
|
|
23929
|
+
text_ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
23930
|
+
offset_distance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23931
|
+
offset_direction: z.ZodOptional<z.ZodObject<{
|
|
23932
|
+
x: z.ZodNumber;
|
|
23933
|
+
y: z.ZodNumber;
|
|
23934
|
+
}, "strip", z.ZodTypeAny, {
|
|
23935
|
+
x: number;
|
|
23936
|
+
y: number;
|
|
23937
|
+
}, {
|
|
23938
|
+
x: number;
|
|
23939
|
+
y: number;
|
|
23940
|
+
}>>;
|
|
23797
23941
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
23798
23942
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23799
23943
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -23818,6 +23962,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23818
23962
|
pcb_group_id?: string | undefined;
|
|
23819
23963
|
text?: string | undefined;
|
|
23820
23964
|
color?: string | undefined;
|
|
23965
|
+
text_ccw_rotation?: number | undefined;
|
|
23966
|
+
offset_distance?: number | undefined;
|
|
23967
|
+
offset_direction?: {
|
|
23968
|
+
x: number;
|
|
23969
|
+
y: number;
|
|
23970
|
+
} | undefined;
|
|
23821
23971
|
}, {
|
|
23822
23972
|
type: "pcb_note_dimension";
|
|
23823
23973
|
from: {
|
|
@@ -23836,6 +23986,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23836
23986
|
font?: "tscircuit2024" | undefined;
|
|
23837
23987
|
font_size?: string | number | undefined;
|
|
23838
23988
|
color?: string | undefined;
|
|
23989
|
+
text_ccw_rotation?: number | undefined;
|
|
23990
|
+
offset_distance?: string | number | undefined;
|
|
23991
|
+
offset_direction?: {
|
|
23992
|
+
x: number;
|
|
23993
|
+
y: number;
|
|
23994
|
+
} | undefined;
|
|
23839
23995
|
arrow_size?: string | number | undefined;
|
|
23840
23996
|
pcb_note_dimension_id?: string | undefined;
|
|
23841
23997
|
}>, z.ZodObject<{
|
package/dist/index.mjs
CHANGED
|
@@ -2060,7 +2060,13 @@ var pcb_fabrication_note_dimension = z95.object({
|
|
|
2060
2060
|
from: point,
|
|
2061
2061
|
to: point,
|
|
2062
2062
|
text: z95.string().optional(),
|
|
2063
|
+
text_ccw_rotation: z95.number().optional(),
|
|
2063
2064
|
offset: length.optional(),
|
|
2065
|
+
offset_distance: length.optional(),
|
|
2066
|
+
offset_direction: z95.object({
|
|
2067
|
+
x: z95.number(),
|
|
2068
|
+
y: z95.number()
|
|
2069
|
+
}).optional(),
|
|
2064
2070
|
font: z95.literal("tscircuit2024").default("tscircuit2024"),
|
|
2065
2071
|
font_size: length.default("1mm"),
|
|
2066
2072
|
color: z95.string().optional(),
|
|
@@ -2155,6 +2161,12 @@ var pcb_note_dimension = z100.object({
|
|
|
2155
2161
|
from: point,
|
|
2156
2162
|
to: point,
|
|
2157
2163
|
text: z100.string().optional(),
|
|
2164
|
+
text_ccw_rotation: z100.number().optional(),
|
|
2165
|
+
offset_distance: length.optional(),
|
|
2166
|
+
offset_direction: z100.object({
|
|
2167
|
+
x: z100.number(),
|
|
2168
|
+
y: z100.number()
|
|
2169
|
+
}).optional(),
|
|
2158
2170
|
font: z100.literal("tscircuit2024").default("tscircuit2024"),
|
|
2159
2171
|
font_size: length.default("1mm"),
|
|
2160
2172
|
color: z100.string().optional(),
|