circuit-json 0.0.346 → 0.0.348
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/dist/index.d.mts +20 -0
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4355,6 +4355,7 @@ declare const pcb_silkscreen_rect: z.ZodObject<{
|
|
|
4355
4355
|
is_filled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
4356
4356
|
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
4357
4357
|
is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
|
|
4358
|
+
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
4358
4359
|
}, "strip", z.ZodTypeAny, {
|
|
4359
4360
|
type: "pcb_silkscreen_rect";
|
|
4360
4361
|
width: number;
|
|
@@ -4369,6 +4370,7 @@ declare const pcb_silkscreen_rect: z.ZodObject<{
|
|
|
4369
4370
|
pcb_silkscreen_rect_id: string;
|
|
4370
4371
|
subcircuit_id?: string | undefined;
|
|
4371
4372
|
pcb_group_id?: string | undefined;
|
|
4373
|
+
ccw_rotation?: number | undefined;
|
|
4372
4374
|
corner_radius?: number | undefined;
|
|
4373
4375
|
is_filled?: boolean | undefined;
|
|
4374
4376
|
has_stroke?: boolean | undefined;
|
|
@@ -4387,6 +4389,7 @@ declare const pcb_silkscreen_rect: z.ZodObject<{
|
|
|
4387
4389
|
};
|
|
4388
4390
|
subcircuit_id?: string | undefined;
|
|
4389
4391
|
pcb_group_id?: string | undefined;
|
|
4392
|
+
ccw_rotation?: number | undefined;
|
|
4390
4393
|
corner_radius?: string | number | undefined;
|
|
4391
4394
|
stroke_width?: string | number | undefined;
|
|
4392
4395
|
pcb_silkscreen_rect_id?: string | undefined;
|
|
@@ -4413,6 +4416,7 @@ interface PcbSilkscreenRect {
|
|
|
4413
4416
|
is_filled?: boolean;
|
|
4414
4417
|
has_stroke?: boolean;
|
|
4415
4418
|
is_stroke_dashed?: boolean;
|
|
4419
|
+
ccw_rotation?: number;
|
|
4416
4420
|
}
|
|
4417
4421
|
/**
|
|
4418
4422
|
* @deprecated use PcbSilkscreenRect
|
|
@@ -4500,6 +4504,7 @@ declare const pcb_silkscreen_oval: z.ZodObject<{
|
|
|
4500
4504
|
radius_x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4501
4505
|
radius_y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4502
4506
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
4507
|
+
ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4503
4508
|
}, "strip", z.ZodTypeAny, {
|
|
4504
4509
|
type: "pcb_silkscreen_oval";
|
|
4505
4510
|
pcb_component_id: string;
|
|
@@ -4513,6 +4518,7 @@ declare const pcb_silkscreen_oval: z.ZodObject<{
|
|
|
4513
4518
|
radius_y: number;
|
|
4514
4519
|
subcircuit_id?: string | undefined;
|
|
4515
4520
|
pcb_group_id?: string | undefined;
|
|
4521
|
+
ccw_rotation?: number | undefined;
|
|
4516
4522
|
}, {
|
|
4517
4523
|
type: "pcb_silkscreen_oval";
|
|
4518
4524
|
pcb_component_id: string;
|
|
@@ -4525,6 +4531,7 @@ declare const pcb_silkscreen_oval: z.ZodObject<{
|
|
|
4525
4531
|
radius_y: string | number;
|
|
4526
4532
|
subcircuit_id?: string | undefined;
|
|
4527
4533
|
pcb_group_id?: string | undefined;
|
|
4534
|
+
ccw_rotation?: string | number | undefined;
|
|
4528
4535
|
pcb_silkscreen_oval_id?: string | undefined;
|
|
4529
4536
|
}>;
|
|
4530
4537
|
type PcbSilkscreenOvalInput = z.input<typeof pcb_silkscreen_oval>;
|
|
@@ -4541,6 +4548,7 @@ interface PcbSilkscreenOval {
|
|
|
4541
4548
|
radius_x: Distance;
|
|
4542
4549
|
radius_y: Distance;
|
|
4543
4550
|
layer: VisibleLayer;
|
|
4551
|
+
ccw_rotation?: number;
|
|
4544
4552
|
}
|
|
4545
4553
|
/**
|
|
4546
4554
|
* @deprecated use PcbSilkscreenOval
|
|
@@ -18116,6 +18124,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18116
18124
|
is_filled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
18117
18125
|
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
18118
18126
|
is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
|
|
18127
|
+
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
18119
18128
|
}, "strip", z.ZodTypeAny, {
|
|
18120
18129
|
type: "pcb_silkscreen_rect";
|
|
18121
18130
|
width: number;
|
|
@@ -18130,6 +18139,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18130
18139
|
pcb_silkscreen_rect_id: string;
|
|
18131
18140
|
subcircuit_id?: string | undefined;
|
|
18132
18141
|
pcb_group_id?: string | undefined;
|
|
18142
|
+
ccw_rotation?: number | undefined;
|
|
18133
18143
|
corner_radius?: number | undefined;
|
|
18134
18144
|
is_filled?: boolean | undefined;
|
|
18135
18145
|
has_stroke?: boolean | undefined;
|
|
@@ -18148,6 +18158,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18148
18158
|
};
|
|
18149
18159
|
subcircuit_id?: string | undefined;
|
|
18150
18160
|
pcb_group_id?: string | undefined;
|
|
18161
|
+
ccw_rotation?: number | undefined;
|
|
18151
18162
|
corner_radius?: string | number | undefined;
|
|
18152
18163
|
stroke_width?: string | number | undefined;
|
|
18153
18164
|
pcb_silkscreen_rect_id?: string | undefined;
|
|
@@ -18218,6 +18229,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18218
18229
|
radius_x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
18219
18230
|
radius_y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
18220
18231
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
18232
|
+
ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
18221
18233
|
}, "strip", z.ZodTypeAny, {
|
|
18222
18234
|
type: "pcb_silkscreen_oval";
|
|
18223
18235
|
pcb_component_id: string;
|
|
@@ -18231,6 +18243,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18231
18243
|
radius_y: number;
|
|
18232
18244
|
subcircuit_id?: string | undefined;
|
|
18233
18245
|
pcb_group_id?: string | undefined;
|
|
18246
|
+
ccw_rotation?: number | undefined;
|
|
18234
18247
|
}, {
|
|
18235
18248
|
type: "pcb_silkscreen_oval";
|
|
18236
18249
|
pcb_component_id: string;
|
|
@@ -18243,6 +18256,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18243
18256
|
radius_y: string | number;
|
|
18244
18257
|
subcircuit_id?: string | undefined;
|
|
18245
18258
|
pcb_group_id?: string | undefined;
|
|
18259
|
+
ccw_rotation?: string | number | undefined;
|
|
18246
18260
|
pcb_silkscreen_oval_id?: string | undefined;
|
|
18247
18261
|
}>, z.ZodObject<{
|
|
18248
18262
|
type: z.ZodLiteral<"pcb_trace_error">;
|
|
@@ -26360,6 +26374,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
26360
26374
|
is_filled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26361
26375
|
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
26362
26376
|
is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
|
|
26377
|
+
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
26363
26378
|
}, "strip", z.ZodTypeAny, {
|
|
26364
26379
|
type: "pcb_silkscreen_rect";
|
|
26365
26380
|
width: number;
|
|
@@ -26374,6 +26389,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
26374
26389
|
pcb_silkscreen_rect_id: string;
|
|
26375
26390
|
subcircuit_id?: string | undefined;
|
|
26376
26391
|
pcb_group_id?: string | undefined;
|
|
26392
|
+
ccw_rotation?: number | undefined;
|
|
26377
26393
|
corner_radius?: number | undefined;
|
|
26378
26394
|
is_filled?: boolean | undefined;
|
|
26379
26395
|
has_stroke?: boolean | undefined;
|
|
@@ -26392,6 +26408,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
26392
26408
|
};
|
|
26393
26409
|
subcircuit_id?: string | undefined;
|
|
26394
26410
|
pcb_group_id?: string | undefined;
|
|
26411
|
+
ccw_rotation?: number | undefined;
|
|
26395
26412
|
corner_radius?: string | number | undefined;
|
|
26396
26413
|
stroke_width?: string | number | undefined;
|
|
26397
26414
|
pcb_silkscreen_rect_id?: string | undefined;
|
|
@@ -26462,6 +26479,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
26462
26479
|
radius_x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
26463
26480
|
radius_y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
26464
26481
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
26482
|
+
ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
26465
26483
|
}, "strip", z.ZodTypeAny, {
|
|
26466
26484
|
type: "pcb_silkscreen_oval";
|
|
26467
26485
|
pcb_component_id: string;
|
|
@@ -26475,6 +26493,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
26475
26493
|
radius_y: number;
|
|
26476
26494
|
subcircuit_id?: string | undefined;
|
|
26477
26495
|
pcb_group_id?: string | undefined;
|
|
26496
|
+
ccw_rotation?: number | undefined;
|
|
26478
26497
|
}, {
|
|
26479
26498
|
type: "pcb_silkscreen_oval";
|
|
26480
26499
|
pcb_component_id: string;
|
|
@@ -26487,6 +26506,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
26487
26506
|
radius_y: string | number;
|
|
26488
26507
|
subcircuit_id?: string | undefined;
|
|
26489
26508
|
pcb_group_id?: string | undefined;
|
|
26509
|
+
ccw_rotation?: string | number | undefined;
|
|
26490
26510
|
pcb_silkscreen_oval_id?: string | undefined;
|
|
26491
26511
|
}>, z.ZodObject<{
|
|
26492
26512
|
type: z.ZodLiteral<"pcb_trace_error">;
|
package/dist/index.mjs
CHANGED
|
@@ -2188,7 +2188,8 @@ var pcb_silkscreen_rect = z97.object({
|
|
|
2188
2188
|
corner_radius: length.optional(),
|
|
2189
2189
|
is_filled: z97.boolean().default(true).optional(),
|
|
2190
2190
|
has_stroke: z97.boolean().optional(),
|
|
2191
|
-
is_stroke_dashed: z97.boolean().optional()
|
|
2191
|
+
is_stroke_dashed: z97.boolean().optional(),
|
|
2192
|
+
ccw_rotation: z97.number().optional()
|
|
2192
2193
|
}).describe("Defines a silkscreen rect on the PCB");
|
|
2193
2194
|
expectTypesMatch(true);
|
|
2194
2195
|
|
|
@@ -2220,7 +2221,8 @@ var pcb_silkscreen_oval = z99.object({
|
|
|
2220
2221
|
center: point,
|
|
2221
2222
|
radius_x: distance,
|
|
2222
2223
|
radius_y: distance,
|
|
2223
|
-
layer: visible_layer
|
|
2224
|
+
layer: visible_layer,
|
|
2225
|
+
ccw_rotation: rotation.optional()
|
|
2224
2226
|
}).describe("Defines a silkscreen oval on the PCB");
|
|
2225
2227
|
expectTypesMatch(true);
|
|
2226
2228
|
|