circuit-json 0.0.426 → 0.0.427
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 +4 -0
- package/dist/index.d.mts +40 -0
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2562,6 +2562,8 @@ interface SchematicLine {
|
|
|
2562
2562
|
stroke_width?: number | null
|
|
2563
2563
|
color: string
|
|
2564
2564
|
is_dashed: boolean
|
|
2565
|
+
dash_length?: number
|
|
2566
|
+
dash_gap?: number
|
|
2565
2567
|
subcircuit_id?: string
|
|
2566
2568
|
}
|
|
2567
2569
|
```
|
|
@@ -2620,6 +2622,8 @@ interface SchematicPath {
|
|
|
2620
2622
|
schematic_component_id: string
|
|
2621
2623
|
fill_color?: "red" | "blue"
|
|
2622
2624
|
is_filled?: boolean
|
|
2625
|
+
dash_length?: number
|
|
2626
|
+
dash_gap?: number
|
|
2623
2627
|
points: Point[]
|
|
2624
2628
|
subcircuit_id?: string
|
|
2625
2629
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -12468,6 +12468,8 @@ interface SchematicPath {
|
|
|
12468
12468
|
is_filled?: boolean;
|
|
12469
12469
|
stroke_width?: number | null;
|
|
12470
12470
|
stroke_color?: string;
|
|
12471
|
+
dash_length?: number;
|
|
12472
|
+
dash_gap?: number;
|
|
12471
12473
|
points: Point[];
|
|
12472
12474
|
subcircuit_id?: string;
|
|
12473
12475
|
}
|
|
@@ -12480,6 +12482,8 @@ declare const schematic_path: z.ZodObject<{
|
|
|
12480
12482
|
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
12481
12483
|
stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
12482
12484
|
stroke_color: z.ZodOptional<z.ZodString>;
|
|
12485
|
+
dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
12486
|
+
dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
12483
12487
|
points: z.ZodArray<z.ZodObject<{
|
|
12484
12488
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
12485
12489
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -12505,6 +12509,8 @@ declare const schematic_path: z.ZodObject<{
|
|
|
12505
12509
|
schematic_symbol_id?: string | undefined;
|
|
12506
12510
|
fill_color?: string | undefined;
|
|
12507
12511
|
stroke_color?: string | undefined;
|
|
12512
|
+
dash_length?: number | undefined;
|
|
12513
|
+
dash_gap?: number | undefined;
|
|
12508
12514
|
}, {
|
|
12509
12515
|
type: "schematic_path";
|
|
12510
12516
|
points: {
|
|
@@ -12519,6 +12525,8 @@ declare const schematic_path: z.ZodObject<{
|
|
|
12519
12525
|
schematic_path_id?: string | undefined;
|
|
12520
12526
|
fill_color?: string | undefined;
|
|
12521
12527
|
stroke_color?: string | undefined;
|
|
12528
|
+
dash_length?: string | number | undefined;
|
|
12529
|
+
dash_gap?: string | number | undefined;
|
|
12522
12530
|
}>;
|
|
12523
12531
|
type SchematicPathInput = z.input<typeof schematic_path>;
|
|
12524
12532
|
|
|
@@ -23915,6 +23923,8 @@ interface SchematicLine {
|
|
|
23915
23923
|
stroke_width?: number | null;
|
|
23916
23924
|
color: string;
|
|
23917
23925
|
is_dashed: boolean;
|
|
23926
|
+
dash_length?: number;
|
|
23927
|
+
dash_gap?: number;
|
|
23918
23928
|
subcircuit_id?: string;
|
|
23919
23929
|
}
|
|
23920
23930
|
declare const schematic_line: z.ZodObject<{
|
|
@@ -23929,6 +23939,8 @@ declare const schematic_line: z.ZodObject<{
|
|
|
23929
23939
|
stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
23930
23940
|
color: z.ZodDefault<z.ZodString>;
|
|
23931
23941
|
is_dashed: z.ZodDefault<z.ZodBoolean>;
|
|
23942
|
+
dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23943
|
+
dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23932
23944
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
23933
23945
|
}, "strip", z.ZodTypeAny, {
|
|
23934
23946
|
type: "schematic_line";
|
|
@@ -23943,6 +23955,8 @@ declare const schematic_line: z.ZodObject<{
|
|
|
23943
23955
|
stroke_width?: number | null | undefined;
|
|
23944
23956
|
schematic_component_id?: string | undefined;
|
|
23945
23957
|
schematic_symbol_id?: string | undefined;
|
|
23958
|
+
dash_length?: number | undefined;
|
|
23959
|
+
dash_gap?: number | undefined;
|
|
23946
23960
|
}, {
|
|
23947
23961
|
type: "schematic_line";
|
|
23948
23962
|
x1: string | number;
|
|
@@ -23955,6 +23969,8 @@ declare const schematic_line: z.ZodObject<{
|
|
|
23955
23969
|
is_dashed?: boolean | undefined;
|
|
23956
23970
|
schematic_component_id?: string | undefined;
|
|
23957
23971
|
schematic_symbol_id?: string | undefined;
|
|
23972
|
+
dash_length?: string | number | undefined;
|
|
23973
|
+
dash_gap?: string | number | undefined;
|
|
23958
23974
|
schematic_line_id?: string | undefined;
|
|
23959
23975
|
}>;
|
|
23960
23976
|
type SchematicLineInput = z.input<typeof schematic_line>;
|
|
@@ -42795,6 +42811,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
42795
42811
|
stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
42796
42812
|
color: z.ZodDefault<z.ZodString>;
|
|
42797
42813
|
is_dashed: z.ZodDefault<z.ZodBoolean>;
|
|
42814
|
+
dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
42815
|
+
dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
42798
42816
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
42799
42817
|
}, "strip", z.ZodTypeAny, {
|
|
42800
42818
|
type: "schematic_line";
|
|
@@ -42809,6 +42827,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
42809
42827
|
stroke_width?: number | null | undefined;
|
|
42810
42828
|
schematic_component_id?: string | undefined;
|
|
42811
42829
|
schematic_symbol_id?: string | undefined;
|
|
42830
|
+
dash_length?: number | undefined;
|
|
42831
|
+
dash_gap?: number | undefined;
|
|
42812
42832
|
}, {
|
|
42813
42833
|
type: "schematic_line";
|
|
42814
42834
|
x1: string | number;
|
|
@@ -42821,6 +42841,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
42821
42841
|
is_dashed?: boolean | undefined;
|
|
42822
42842
|
schematic_component_id?: string | undefined;
|
|
42823
42843
|
schematic_symbol_id?: string | undefined;
|
|
42844
|
+
dash_length?: string | number | undefined;
|
|
42845
|
+
dash_gap?: string | number | undefined;
|
|
42824
42846
|
schematic_line_id?: string | undefined;
|
|
42825
42847
|
}>, z.ZodObject<{
|
|
42826
42848
|
type: z.ZodLiteral<"schematic_rect">;
|
|
@@ -50225,6 +50247,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50225
50247
|
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
50226
50248
|
stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
50227
50249
|
stroke_color: z.ZodOptional<z.ZodString>;
|
|
50250
|
+
dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
50251
|
+
dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
50228
50252
|
points: z.ZodArray<z.ZodObject<{
|
|
50229
50253
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
50230
50254
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -50250,6 +50274,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50250
50274
|
schematic_symbol_id?: string | undefined;
|
|
50251
50275
|
fill_color?: string | undefined;
|
|
50252
50276
|
stroke_color?: string | undefined;
|
|
50277
|
+
dash_length?: number | undefined;
|
|
50278
|
+
dash_gap?: number | undefined;
|
|
50253
50279
|
}, {
|
|
50254
50280
|
type: "schematic_path";
|
|
50255
50281
|
points: {
|
|
@@ -50264,6 +50290,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50264
50290
|
schematic_path_id?: string | undefined;
|
|
50265
50291
|
fill_color?: string | undefined;
|
|
50266
50292
|
stroke_color?: string | undefined;
|
|
50293
|
+
dash_length?: string | number | undefined;
|
|
50294
|
+
dash_gap?: string | number | undefined;
|
|
50267
50295
|
}>, z.ZodObject<{
|
|
50268
50296
|
message: z.ZodString;
|
|
50269
50297
|
is_fatal: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -61044,6 +61072,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
61044
61072
|
stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
61045
61073
|
color: z.ZodDefault<z.ZodString>;
|
|
61046
61074
|
is_dashed: z.ZodDefault<z.ZodBoolean>;
|
|
61075
|
+
dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
61076
|
+
dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
61047
61077
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
61048
61078
|
}, "strip", z.ZodTypeAny, {
|
|
61049
61079
|
type: "schematic_line";
|
|
@@ -61058,6 +61088,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
61058
61088
|
stroke_width?: number | null | undefined;
|
|
61059
61089
|
schematic_component_id?: string | undefined;
|
|
61060
61090
|
schematic_symbol_id?: string | undefined;
|
|
61091
|
+
dash_length?: number | undefined;
|
|
61092
|
+
dash_gap?: number | undefined;
|
|
61061
61093
|
}, {
|
|
61062
61094
|
type: "schematic_line";
|
|
61063
61095
|
x1: string | number;
|
|
@@ -61070,6 +61102,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
61070
61102
|
is_dashed?: boolean | undefined;
|
|
61071
61103
|
schematic_component_id?: string | undefined;
|
|
61072
61104
|
schematic_symbol_id?: string | undefined;
|
|
61105
|
+
dash_length?: string | number | undefined;
|
|
61106
|
+
dash_gap?: string | number | undefined;
|
|
61073
61107
|
schematic_line_id?: string | undefined;
|
|
61074
61108
|
}>, z.ZodObject<{
|
|
61075
61109
|
type: z.ZodLiteral<"schematic_rect">;
|
|
@@ -68474,6 +68508,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
68474
68508
|
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
68475
68509
|
stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
68476
68510
|
stroke_color: z.ZodOptional<z.ZodString>;
|
|
68511
|
+
dash_length: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
68512
|
+
dash_gap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
68477
68513
|
points: z.ZodArray<z.ZodObject<{
|
|
68478
68514
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
68479
68515
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -68499,6 +68535,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
68499
68535
|
schematic_symbol_id?: string | undefined;
|
|
68500
68536
|
fill_color?: string | undefined;
|
|
68501
68537
|
stroke_color?: string | undefined;
|
|
68538
|
+
dash_length?: number | undefined;
|
|
68539
|
+
dash_gap?: number | undefined;
|
|
68502
68540
|
}, {
|
|
68503
68541
|
type: "schematic_path";
|
|
68504
68542
|
points: {
|
|
@@ -68513,6 +68551,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
68513
68551
|
schematic_path_id?: string | undefined;
|
|
68514
68552
|
fill_color?: string | undefined;
|
|
68515
68553
|
stroke_color?: string | undefined;
|
|
68554
|
+
dash_length?: string | number | undefined;
|
|
68555
|
+
dash_gap?: string | number | undefined;
|
|
68516
68556
|
}>, z.ZodObject<{
|
|
68517
68557
|
message: z.ZodString;
|
|
68518
68558
|
is_fatal: z.ZodOptional<z.ZodBoolean>;
|
package/dist/index.mjs
CHANGED
|
@@ -1250,6 +1250,8 @@ var schematic_path = z68.object({
|
|
|
1250
1250
|
is_filled: z68.boolean().optional(),
|
|
1251
1251
|
stroke_width: distance.nullable().optional(),
|
|
1252
1252
|
stroke_color: z68.string().optional(),
|
|
1253
|
+
dash_length: distance.optional(),
|
|
1254
|
+
dash_gap: distance.optional(),
|
|
1253
1255
|
points: z68.array(point),
|
|
1254
1256
|
subcircuit_id: z68.string().optional()
|
|
1255
1257
|
});
|
|
@@ -1350,6 +1352,8 @@ var schematic_line = z71.object({
|
|
|
1350
1352
|
stroke_width: distance.nullable().optional(),
|
|
1351
1353
|
color: z71.string().default("#000000"),
|
|
1352
1354
|
is_dashed: z71.boolean().default(false),
|
|
1355
|
+
dash_length: distance.optional(),
|
|
1356
|
+
dash_gap: distance.optional(),
|
|
1353
1357
|
subcircuit_id: z71.string().optional()
|
|
1354
1358
|
}).describe("Draws a styled line on the schematic");
|
|
1355
1359
|
expectTypesMatch(true);
|