circuit-json 0.0.212 → 0.0.214
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 +217 -82
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4671,6 +4671,7 @@ interface SchematicPort {
|
|
|
4671
4671
|
pin_number?: number;
|
|
4672
4672
|
display_pin_label?: string;
|
|
4673
4673
|
subcircuit_id?: string;
|
|
4674
|
+
is_connected?: boolean;
|
|
4674
4675
|
}
|
|
4675
4676
|
declare const schematic_port: z.ZodObject<{
|
|
4676
4677
|
type: z.ZodLiteral<"schematic_port">;
|
|
@@ -4694,6 +4695,7 @@ declare const schematic_port: z.ZodObject<{
|
|
|
4694
4695
|
pin_number: z.ZodOptional<z.ZodNumber>;
|
|
4695
4696
|
display_pin_label: z.ZodOptional<z.ZodString>;
|
|
4696
4697
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
4698
|
+
is_connected: z.ZodOptional<z.ZodBoolean>;
|
|
4697
4699
|
}, "strip", z.ZodTypeAny, {
|
|
4698
4700
|
type: "schematic_port";
|
|
4699
4701
|
center: {
|
|
@@ -4710,6 +4712,7 @@ declare const schematic_port: z.ZodObject<{
|
|
|
4710
4712
|
true_ccw_index?: number | undefined;
|
|
4711
4713
|
pin_number?: number | undefined;
|
|
4712
4714
|
display_pin_label?: string | undefined;
|
|
4715
|
+
is_connected?: boolean | undefined;
|
|
4713
4716
|
}, {
|
|
4714
4717
|
type: "schematic_port";
|
|
4715
4718
|
center: {
|
|
@@ -4726,6 +4729,7 @@ declare const schematic_port: z.ZodObject<{
|
|
|
4726
4729
|
true_ccw_index?: number | undefined;
|
|
4727
4730
|
pin_number?: number | undefined;
|
|
4728
4731
|
display_pin_label?: string | undefined;
|
|
4732
|
+
is_connected?: boolean | undefined;
|
|
4729
4733
|
}>;
|
|
4730
4734
|
type SchematicPortInput = z.input<typeof schematic_port>;
|
|
4731
4735
|
|
|
@@ -4740,6 +4744,11 @@ interface SchematicNetLabel {
|
|
|
4740
4744
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
4741
4745
|
text: string;
|
|
4742
4746
|
symbol_name?: string | undefined;
|
|
4747
|
+
/**
|
|
4748
|
+
* When true the net label can be repositioned. When false the label's
|
|
4749
|
+
* position is fixed by the element it is attached to.
|
|
4750
|
+
*/
|
|
4751
|
+
is_movable?: boolean;
|
|
4743
4752
|
subcircuit_id?: string;
|
|
4744
4753
|
}
|
|
4745
4754
|
declare const schematic_net_label: z.ZodObject<{
|
|
@@ -4771,6 +4780,7 @@ declare const schematic_net_label: z.ZodObject<{
|
|
|
4771
4780
|
anchor_side: z.ZodEnum<["top", "bottom", "left", "right"]>;
|
|
4772
4781
|
text: z.ZodString;
|
|
4773
4782
|
symbol_name: z.ZodOptional<z.ZodString>;
|
|
4783
|
+
is_movable: z.ZodOptional<z.ZodBoolean>;
|
|
4774
4784
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
4775
4785
|
}, "strip", z.ZodTypeAny, {
|
|
4776
4786
|
type: "schematic_net_label";
|
|
@@ -4790,6 +4800,7 @@ declare const schematic_net_label: z.ZodObject<{
|
|
|
4790
4800
|
} | undefined;
|
|
4791
4801
|
symbol_name?: string | undefined;
|
|
4792
4802
|
schematic_trace_id?: string | undefined;
|
|
4803
|
+
is_movable?: boolean | undefined;
|
|
4793
4804
|
}, {
|
|
4794
4805
|
type: "schematic_net_label";
|
|
4795
4806
|
center: {
|
|
@@ -4808,6 +4819,7 @@ declare const schematic_net_label: z.ZodObject<{
|
|
|
4808
4819
|
symbol_name?: string | undefined;
|
|
4809
4820
|
schematic_trace_id?: string | undefined;
|
|
4810
4821
|
schematic_net_label_id?: string | undefined;
|
|
4822
|
+
is_movable?: boolean | undefined;
|
|
4811
4823
|
}>;
|
|
4812
4824
|
type SchematicNetLabelInput = z.input<typeof schematic_net_label>;
|
|
4813
4825
|
type InferredSchematicNetLabel = z.infer<typeof schematic_net_label>;
|
|
@@ -12083,6 +12095,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12083
12095
|
pin_number: z.ZodOptional<z.ZodNumber>;
|
|
12084
12096
|
display_pin_label: z.ZodOptional<z.ZodString>;
|
|
12085
12097
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
12098
|
+
is_connected: z.ZodOptional<z.ZodBoolean>;
|
|
12086
12099
|
}, "strip", z.ZodTypeAny, {
|
|
12087
12100
|
type: "schematic_port";
|
|
12088
12101
|
center: {
|
|
@@ -12099,6 +12112,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12099
12112
|
true_ccw_index?: number | undefined;
|
|
12100
12113
|
pin_number?: number | undefined;
|
|
12101
12114
|
display_pin_label?: string | undefined;
|
|
12115
|
+
is_connected?: boolean | undefined;
|
|
12102
12116
|
}, {
|
|
12103
12117
|
type: "schematic_port";
|
|
12104
12118
|
center: {
|
|
@@ -12115,6 +12129,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12115
12129
|
true_ccw_index?: number | undefined;
|
|
12116
12130
|
pin_number?: number | undefined;
|
|
12117
12131
|
display_pin_label?: string | undefined;
|
|
12132
|
+
is_connected?: boolean | undefined;
|
|
12118
12133
|
}>, z.ZodObject<{
|
|
12119
12134
|
type: z.ZodLiteral<"schematic_trace">;
|
|
12120
12135
|
schematic_trace_id: z.ZodString;
|
|
@@ -12330,6 +12345,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12330
12345
|
anchor_side: z.ZodEnum<["top", "bottom", "left", "right"]>;
|
|
12331
12346
|
text: z.ZodString;
|
|
12332
12347
|
symbol_name: z.ZodOptional<z.ZodString>;
|
|
12348
|
+
is_movable: z.ZodOptional<z.ZodBoolean>;
|
|
12333
12349
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
12334
12350
|
}, "strip", z.ZodTypeAny, {
|
|
12335
12351
|
type: "schematic_net_label";
|
|
@@ -12349,6 +12365,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12349
12365
|
} | undefined;
|
|
12350
12366
|
symbol_name?: string | undefined;
|
|
12351
12367
|
schematic_trace_id?: string | undefined;
|
|
12368
|
+
is_movable?: boolean | undefined;
|
|
12352
12369
|
}, {
|
|
12353
12370
|
type: "schematic_net_label";
|
|
12354
12371
|
center: {
|
|
@@ -12367,6 +12384,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12367
12384
|
symbol_name?: string | undefined;
|
|
12368
12385
|
schematic_trace_id?: string | undefined;
|
|
12369
12386
|
schematic_net_label_id?: string | undefined;
|
|
12387
|
+
is_movable?: boolean | undefined;
|
|
12370
12388
|
}>, z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
|
|
12371
12389
|
type: z.ZodLiteral<"schematic_debug_object">;
|
|
12372
12390
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -17072,6 +17090,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17072
17090
|
pin_number: z.ZodOptional<z.ZodNumber>;
|
|
17073
17091
|
display_pin_label: z.ZodOptional<z.ZodString>;
|
|
17074
17092
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
17093
|
+
is_connected: z.ZodOptional<z.ZodBoolean>;
|
|
17075
17094
|
}, "strip", z.ZodTypeAny, {
|
|
17076
17095
|
type: "schematic_port";
|
|
17077
17096
|
center: {
|
|
@@ -17088,6 +17107,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17088
17107
|
true_ccw_index?: number | undefined;
|
|
17089
17108
|
pin_number?: number | undefined;
|
|
17090
17109
|
display_pin_label?: string | undefined;
|
|
17110
|
+
is_connected?: boolean | undefined;
|
|
17091
17111
|
}, {
|
|
17092
17112
|
type: "schematic_port";
|
|
17093
17113
|
center: {
|
|
@@ -17104,6 +17124,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17104
17124
|
true_ccw_index?: number | undefined;
|
|
17105
17125
|
pin_number?: number | undefined;
|
|
17106
17126
|
display_pin_label?: string | undefined;
|
|
17127
|
+
is_connected?: boolean | undefined;
|
|
17107
17128
|
}>, z.ZodObject<{
|
|
17108
17129
|
type: z.ZodLiteral<"schematic_trace">;
|
|
17109
17130
|
schematic_trace_id: z.ZodString;
|
|
@@ -17319,6 +17340,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17319
17340
|
anchor_side: z.ZodEnum<["top", "bottom", "left", "right"]>;
|
|
17320
17341
|
text: z.ZodString;
|
|
17321
17342
|
symbol_name: z.ZodOptional<z.ZodString>;
|
|
17343
|
+
is_movable: z.ZodOptional<z.ZodBoolean>;
|
|
17322
17344
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
17323
17345
|
}, "strip", z.ZodTypeAny, {
|
|
17324
17346
|
type: "schematic_net_label";
|
|
@@ -17338,6 +17360,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17338
17360
|
} | undefined;
|
|
17339
17361
|
symbol_name?: string | undefined;
|
|
17340
17362
|
schematic_trace_id?: string | undefined;
|
|
17363
|
+
is_movable?: boolean | undefined;
|
|
17341
17364
|
}, {
|
|
17342
17365
|
type: "schematic_net_label";
|
|
17343
17366
|
center: {
|
|
@@ -17356,6 +17379,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17356
17379
|
symbol_name?: string | undefined;
|
|
17357
17380
|
schematic_trace_id?: string | undefined;
|
|
17358
17381
|
schematic_net_label_id?: string | undefined;
|
|
17382
|
+
is_movable?: boolean | undefined;
|
|
17359
17383
|
}>, z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
|
|
17360
17384
|
type: z.ZodLiteral<"schematic_debug_object">;
|
|
17361
17385
|
label: z.ZodOptional<z.ZodString>;
|
package/dist/index.mjs
CHANGED
|
@@ -823,7 +823,8 @@ var schematic_port = z44.object({
|
|
|
823
823
|
true_ccw_index: z44.number().optional(),
|
|
824
824
|
pin_number: z44.number().optional(),
|
|
825
825
|
display_pin_label: z44.string().optional(),
|
|
826
|
-
subcircuit_id: z44.string().optional()
|
|
826
|
+
subcircuit_id: z44.string().optional(),
|
|
827
|
+
is_connected: z44.boolean().optional()
|
|
827
828
|
}).describe("Defines a port on a schematic component");
|
|
828
829
|
expectTypesMatch(true);
|
|
829
830
|
|
|
@@ -840,6 +841,7 @@ var schematic_net_label = z45.object({
|
|
|
840
841
|
anchor_side: z45.enum(["top", "bottom", "left", "right"]),
|
|
841
842
|
text: z45.string(),
|
|
842
843
|
symbol_name: z45.string().optional(),
|
|
844
|
+
is_movable: z45.boolean().optional(),
|
|
843
845
|
subcircuit_id: z45.string().optional()
|
|
844
846
|
});
|
|
845
847
|
expectTypesMatch(true);
|