circuit-json 0.0.286 → 0.0.288
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 +1 -4
- package/dist/index.d.mts +10 -40
- package/dist/index.mjs +1 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1009,10 +1009,6 @@ interface PcbCourtyardRect {
|
|
|
1009
1009
|
width: Length
|
|
1010
1010
|
height: Length
|
|
1011
1011
|
layer: VisibleLayer
|
|
1012
|
-
stroke_width: Length
|
|
1013
|
-
is_filled?: boolean
|
|
1014
|
-
has_stroke?: boolean
|
|
1015
|
-
is_stroke_dashed?: boolean
|
|
1016
1012
|
color?: string
|
|
1017
1013
|
}
|
|
1018
1014
|
```
|
|
@@ -2467,6 +2463,7 @@ interface SimulationExperiment {
|
|
|
2467
2463
|
interface SimulationSwitch {
|
|
2468
2464
|
type: "simulation_switch"
|
|
2469
2465
|
simulation_switch_id: string
|
|
2466
|
+
source_component_id?: string
|
|
2470
2467
|
closes_at?: number
|
|
2471
2468
|
opens_at?: number
|
|
2472
2469
|
starts_closed?: boolean
|
package/dist/index.d.mts
CHANGED
|
@@ -6247,10 +6247,6 @@ declare const pcb_courtyard_rect: z.ZodObject<{
|
|
|
6247
6247
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
6248
6248
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
6249
6249
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
6250
|
-
stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6251
|
-
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
6252
|
-
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
6253
|
-
is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
|
|
6254
6250
|
color: z.ZodOptional<z.ZodString>;
|
|
6255
6251
|
}, "strip", z.ZodTypeAny, {
|
|
6256
6252
|
type: "pcb_courtyard_rect";
|
|
@@ -6262,13 +6258,9 @@ declare const pcb_courtyard_rect: z.ZodObject<{
|
|
|
6262
6258
|
y: number;
|
|
6263
6259
|
};
|
|
6264
6260
|
layer: "top" | "bottom";
|
|
6265
|
-
stroke_width: number;
|
|
6266
6261
|
pcb_courtyard_rect_id: string;
|
|
6267
6262
|
subcircuit_id?: string | undefined;
|
|
6268
6263
|
pcb_group_id?: string | undefined;
|
|
6269
|
-
is_filled?: boolean | undefined;
|
|
6270
|
-
has_stroke?: boolean | undefined;
|
|
6271
|
-
is_stroke_dashed?: boolean | undefined;
|
|
6272
6264
|
color?: string | undefined;
|
|
6273
6265
|
}, {
|
|
6274
6266
|
type: "pcb_courtyard_rect";
|
|
@@ -6282,10 +6274,6 @@ declare const pcb_courtyard_rect: z.ZodObject<{
|
|
|
6282
6274
|
layer: "top" | "bottom";
|
|
6283
6275
|
subcircuit_id?: string | undefined;
|
|
6284
6276
|
pcb_group_id?: string | undefined;
|
|
6285
|
-
stroke_width?: string | number | undefined;
|
|
6286
|
-
is_filled?: boolean | undefined;
|
|
6287
|
-
has_stroke?: boolean | undefined;
|
|
6288
|
-
is_stroke_dashed?: boolean | undefined;
|
|
6289
6277
|
color?: string | undefined;
|
|
6290
6278
|
pcb_courtyard_rect_id?: string | undefined;
|
|
6291
6279
|
}>;
|
|
@@ -6303,10 +6291,6 @@ interface PcbCourtyardRect {
|
|
|
6303
6291
|
width: Length;
|
|
6304
6292
|
height: Length;
|
|
6305
6293
|
layer: VisibleLayer;
|
|
6306
|
-
stroke_width: Length;
|
|
6307
|
-
is_filled?: boolean;
|
|
6308
|
-
has_stroke?: boolean;
|
|
6309
|
-
is_stroke_dashed?: boolean;
|
|
6310
6294
|
color?: string;
|
|
6311
6295
|
}
|
|
6312
6296
|
/**
|
|
@@ -11375,6 +11359,7 @@ type SimulationTransientVoltageGraphInput = z.input<typeof simulation_transient_
|
|
|
11375
11359
|
declare const simulation_switch: z.ZodObject<{
|
|
11376
11360
|
type: z.ZodLiteral<"simulation_switch">;
|
|
11377
11361
|
simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11362
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
11378
11363
|
closes_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11379
11364
|
opens_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11380
11365
|
starts_closed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -11382,12 +11367,14 @@ declare const simulation_switch: z.ZodObject<{
|
|
|
11382
11367
|
}, "strip", z.ZodTypeAny, {
|
|
11383
11368
|
type: "simulation_switch";
|
|
11384
11369
|
simulation_switch_id: string;
|
|
11370
|
+
source_component_id?: string | undefined;
|
|
11385
11371
|
closes_at?: number | undefined;
|
|
11386
11372
|
opens_at?: number | undefined;
|
|
11387
11373
|
starts_closed?: boolean | undefined;
|
|
11388
11374
|
switching_frequency?: number | undefined;
|
|
11389
11375
|
}, {
|
|
11390
11376
|
type: "simulation_switch";
|
|
11377
|
+
source_component_id?: string | undefined;
|
|
11391
11378
|
simulation_switch_id?: string | undefined;
|
|
11392
11379
|
closes_at?: string | number | undefined;
|
|
11393
11380
|
opens_at?: string | number | undefined;
|
|
@@ -11398,6 +11385,7 @@ type SimulationSwitchInput = z.input<typeof simulation_switch>;
|
|
|
11398
11385
|
interface SimulationSwitch {
|
|
11399
11386
|
type: "simulation_switch";
|
|
11400
11387
|
simulation_switch_id: string;
|
|
11388
|
+
source_component_id?: string;
|
|
11401
11389
|
closes_at?: number;
|
|
11402
11390
|
opens_at?: number;
|
|
11403
11391
|
starts_closed?: boolean;
|
|
@@ -17065,10 +17053,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17065
17053
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
17066
17054
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
17067
17055
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
17068
|
-
stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
17069
|
-
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
17070
|
-
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
17071
|
-
is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
|
|
17072
17056
|
color: z.ZodOptional<z.ZodString>;
|
|
17073
17057
|
}, "strip", z.ZodTypeAny, {
|
|
17074
17058
|
type: "pcb_courtyard_rect";
|
|
@@ -17080,13 +17064,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17080
17064
|
y: number;
|
|
17081
17065
|
};
|
|
17082
17066
|
layer: "top" | "bottom";
|
|
17083
|
-
stroke_width: number;
|
|
17084
17067
|
pcb_courtyard_rect_id: string;
|
|
17085
17068
|
subcircuit_id?: string | undefined;
|
|
17086
17069
|
pcb_group_id?: string | undefined;
|
|
17087
|
-
is_filled?: boolean | undefined;
|
|
17088
|
-
has_stroke?: boolean | undefined;
|
|
17089
|
-
is_stroke_dashed?: boolean | undefined;
|
|
17090
17070
|
color?: string | undefined;
|
|
17091
17071
|
}, {
|
|
17092
17072
|
type: "pcb_courtyard_rect";
|
|
@@ -17100,10 +17080,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17100
17080
|
layer: "top" | "bottom";
|
|
17101
17081
|
subcircuit_id?: string | undefined;
|
|
17102
17082
|
pcb_group_id?: string | undefined;
|
|
17103
|
-
stroke_width?: string | number | undefined;
|
|
17104
|
-
is_filled?: boolean | undefined;
|
|
17105
|
-
has_stroke?: boolean | undefined;
|
|
17106
|
-
is_stroke_dashed?: boolean | undefined;
|
|
17107
17083
|
color?: string | undefined;
|
|
17108
17084
|
pcb_courtyard_rect_id?: string | undefined;
|
|
17109
17085
|
}>, z.ZodObject<{
|
|
@@ -18625,6 +18601,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18625
18601
|
}>, z.ZodObject<{
|
|
18626
18602
|
type: z.ZodLiteral<"simulation_switch">;
|
|
18627
18603
|
simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18604
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
18628
18605
|
closes_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
18629
18606
|
opens_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
18630
18607
|
starts_closed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -18632,12 +18609,14 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18632
18609
|
}, "strip", z.ZodTypeAny, {
|
|
18633
18610
|
type: "simulation_switch";
|
|
18634
18611
|
simulation_switch_id: string;
|
|
18612
|
+
source_component_id?: string | undefined;
|
|
18635
18613
|
closes_at?: number | undefined;
|
|
18636
18614
|
opens_at?: number | undefined;
|
|
18637
18615
|
starts_closed?: boolean | undefined;
|
|
18638
18616
|
switching_frequency?: number | undefined;
|
|
18639
18617
|
}, {
|
|
18640
18618
|
type: "simulation_switch";
|
|
18619
|
+
source_component_id?: string | undefined;
|
|
18641
18620
|
simulation_switch_id?: string | undefined;
|
|
18642
18621
|
closes_at?: string | number | undefined;
|
|
18643
18622
|
opens_at?: string | number | undefined;
|
|
@@ -24294,10 +24273,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
24294
24273
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
24295
24274
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
24296
24275
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
24297
|
-
stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
24298
|
-
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
24299
|
-
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
24300
|
-
is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
|
|
24301
24276
|
color: z.ZodOptional<z.ZodString>;
|
|
24302
24277
|
}, "strip", z.ZodTypeAny, {
|
|
24303
24278
|
type: "pcb_courtyard_rect";
|
|
@@ -24309,13 +24284,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
24309
24284
|
y: number;
|
|
24310
24285
|
};
|
|
24311
24286
|
layer: "top" | "bottom";
|
|
24312
|
-
stroke_width: number;
|
|
24313
24287
|
pcb_courtyard_rect_id: string;
|
|
24314
24288
|
subcircuit_id?: string | undefined;
|
|
24315
24289
|
pcb_group_id?: string | undefined;
|
|
24316
|
-
is_filled?: boolean | undefined;
|
|
24317
|
-
has_stroke?: boolean | undefined;
|
|
24318
|
-
is_stroke_dashed?: boolean | undefined;
|
|
24319
24290
|
color?: string | undefined;
|
|
24320
24291
|
}, {
|
|
24321
24292
|
type: "pcb_courtyard_rect";
|
|
@@ -24329,10 +24300,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
24329
24300
|
layer: "top" | "bottom";
|
|
24330
24301
|
subcircuit_id?: string | undefined;
|
|
24331
24302
|
pcb_group_id?: string | undefined;
|
|
24332
|
-
stroke_width?: string | number | undefined;
|
|
24333
|
-
is_filled?: boolean | undefined;
|
|
24334
|
-
has_stroke?: boolean | undefined;
|
|
24335
|
-
is_stroke_dashed?: boolean | undefined;
|
|
24336
24303
|
color?: string | undefined;
|
|
24337
24304
|
pcb_courtyard_rect_id?: string | undefined;
|
|
24338
24305
|
}>, z.ZodObject<{
|
|
@@ -25854,6 +25821,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25854
25821
|
}>, z.ZodObject<{
|
|
25855
25822
|
type: z.ZodLiteral<"simulation_switch">;
|
|
25856
25823
|
simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
25824
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
25857
25825
|
closes_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25858
25826
|
opens_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25859
25827
|
starts_closed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -25861,12 +25829,14 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25861
25829
|
}, "strip", z.ZodTypeAny, {
|
|
25862
25830
|
type: "simulation_switch";
|
|
25863
25831
|
simulation_switch_id: string;
|
|
25832
|
+
source_component_id?: string | undefined;
|
|
25864
25833
|
closes_at?: number | undefined;
|
|
25865
25834
|
opens_at?: number | undefined;
|
|
25866
25835
|
starts_closed?: boolean | undefined;
|
|
25867
25836
|
switching_frequency?: number | undefined;
|
|
25868
25837
|
}, {
|
|
25869
25838
|
type: "simulation_switch";
|
|
25839
|
+
source_component_id?: string | undefined;
|
|
25870
25840
|
simulation_switch_id?: string | undefined;
|
|
25871
25841
|
closes_at?: string | number | undefined;
|
|
25872
25842
|
opens_at?: string | number | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -2493,10 +2493,6 @@ var pcb_courtyard_rect = z117.object({
|
|
|
2493
2493
|
width: length,
|
|
2494
2494
|
height: length,
|
|
2495
2495
|
layer: visible_layer,
|
|
2496
|
-
stroke_width: length.default("0.1mm"),
|
|
2497
|
-
is_filled: z117.boolean().optional(),
|
|
2498
|
-
has_stroke: z117.boolean().optional(),
|
|
2499
|
-
is_stroke_dashed: z117.boolean().optional(),
|
|
2500
2496
|
color: z117.string().optional()
|
|
2501
2497
|
}).describe("Defines a courtyard rectangle on the PCB");
|
|
2502
2498
|
expectTypesMatch(true);
|
|
@@ -2640,6 +2636,7 @@ import { z as z123 } from "zod";
|
|
|
2640
2636
|
var simulation_switch = z123.object({
|
|
2641
2637
|
type: z123.literal("simulation_switch"),
|
|
2642
2638
|
simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
|
|
2639
|
+
source_component_id: z123.string().optional(),
|
|
2643
2640
|
closes_at: ms.optional(),
|
|
2644
2641
|
opens_at: ms.optional(),
|
|
2645
2642
|
starts_closed: z123.boolean().optional(),
|