circuit-json 0.0.464 → 0.0.466
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 +26 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -25152,6 +25152,13 @@ interface SchematicText {
|
|
|
25152
25152
|
schematic_component_id?: string;
|
|
25153
25153
|
schematic_symbol_id?: string;
|
|
25154
25154
|
schematic_text_id: string;
|
|
25155
|
+
/**
|
|
25156
|
+
* Set when the text annotates a trace rather than a component, as an inline
|
|
25157
|
+
* net label does - the net name drawn alongside a point-to-point wire instead
|
|
25158
|
+
* of as an anchored `schematic_net_label`. Lets consumers tell such a label
|
|
25159
|
+
* apart from free-standing text and resolve the net it belongs to.
|
|
25160
|
+
*/
|
|
25161
|
+
source_trace_id?: string;
|
|
25155
25162
|
text: string;
|
|
25156
25163
|
font_size: number;
|
|
25157
25164
|
position: {
|
|
@@ -25169,6 +25176,7 @@ declare const schematic_text: z.ZodObject<{
|
|
|
25169
25176
|
schematic_component_id: z.ZodOptional<z.ZodString>;
|
|
25170
25177
|
schematic_symbol_id: z.ZodOptional<z.ZodString>;
|
|
25171
25178
|
schematic_text_id: z.ZodString;
|
|
25179
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
25172
25180
|
text: z.ZodString;
|
|
25173
25181
|
font_size: z.ZodDefault<z.ZodNumber>;
|
|
25174
25182
|
position: z.ZodObject<{
|
|
@@ -25198,6 +25206,7 @@ declare const schematic_text: z.ZodObject<{
|
|
|
25198
25206
|
y: number;
|
|
25199
25207
|
};
|
|
25200
25208
|
subcircuit_id?: string | undefined;
|
|
25209
|
+
source_trace_id?: string | undefined;
|
|
25201
25210
|
schematic_sheet_id?: string | undefined;
|
|
25202
25211
|
schematic_component_id?: string | undefined;
|
|
25203
25212
|
schematic_symbol_id?: string | undefined;
|
|
@@ -25212,6 +25221,7 @@ declare const schematic_text: z.ZodObject<{
|
|
|
25212
25221
|
anchor?: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right" | undefined;
|
|
25213
25222
|
rotation?: number | undefined;
|
|
25214
25223
|
subcircuit_id?: string | undefined;
|
|
25224
|
+
source_trace_id?: string | undefined;
|
|
25215
25225
|
font_size?: number | undefined;
|
|
25216
25226
|
color?: string | undefined;
|
|
25217
25227
|
schematic_sheet_id?: string | undefined;
|
|
@@ -35634,6 +35644,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
35634
35644
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
35635
35645
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
35636
35646
|
show_as_bounding_box: z.ZodOptional<z.ZodBoolean>;
|
|
35647
|
+
show_hidden_edges: z.ZodOptional<z.ZodBoolean>;
|
|
35637
35648
|
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
35638
35649
|
}, "strip", z.ZodTypeAny, {
|
|
35639
35650
|
type: "cad_component";
|
|
@@ -35683,6 +35694,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
35683
35694
|
model_jscad?: any;
|
|
35684
35695
|
show_as_translucent_model?: boolean | undefined;
|
|
35685
35696
|
show_as_bounding_box?: boolean | undefined;
|
|
35697
|
+
show_hidden_edges?: boolean | undefined;
|
|
35686
35698
|
}, {
|
|
35687
35699
|
type: "cad_component";
|
|
35688
35700
|
pcb_component_id: string;
|
|
@@ -35733,6 +35745,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
35733
35745
|
model_jscad?: any;
|
|
35734
35746
|
show_as_translucent_model?: boolean | undefined;
|
|
35735
35747
|
show_as_bounding_box?: boolean | undefined;
|
|
35748
|
+
show_hidden_edges?: boolean | undefined;
|
|
35736
35749
|
}>;
|
|
35737
35750
|
type CadComponentInput = z.input<typeof cad_component>;
|
|
35738
35751
|
type InferredCadComponent = z.infer<typeof cad_component>;
|
|
@@ -35764,6 +35777,7 @@ interface CadComponent {
|
|
|
35764
35777
|
model_jscad?: any;
|
|
35765
35778
|
show_as_translucent_model?: boolean;
|
|
35766
35779
|
show_as_bounding_box?: boolean;
|
|
35780
|
+
show_hidden_edges?: boolean;
|
|
35767
35781
|
anchor_alignment: CadComponentAnchorAlignment;
|
|
35768
35782
|
}
|
|
35769
35783
|
|
|
@@ -46060,6 +46074,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
46060
46074
|
schematic_component_id: z.ZodOptional<z.ZodString>;
|
|
46061
46075
|
schematic_symbol_id: z.ZodOptional<z.ZodString>;
|
|
46062
46076
|
schematic_text_id: z.ZodString;
|
|
46077
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
46063
46078
|
text: z.ZodString;
|
|
46064
46079
|
font_size: z.ZodDefault<z.ZodNumber>;
|
|
46065
46080
|
position: z.ZodObject<{
|
|
@@ -46089,6 +46104,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
46089
46104
|
y: number;
|
|
46090
46105
|
};
|
|
46091
46106
|
subcircuit_id?: string | undefined;
|
|
46107
|
+
source_trace_id?: string | undefined;
|
|
46092
46108
|
schematic_sheet_id?: string | undefined;
|
|
46093
46109
|
schematic_component_id?: string | undefined;
|
|
46094
46110
|
schematic_symbol_id?: string | undefined;
|
|
@@ -46103,6 +46119,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
46103
46119
|
anchor?: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right" | undefined;
|
|
46104
46120
|
rotation?: number | undefined;
|
|
46105
46121
|
subcircuit_id?: string | undefined;
|
|
46122
|
+
source_trace_id?: string | undefined;
|
|
46106
46123
|
font_size?: number | undefined;
|
|
46107
46124
|
color?: string | undefined;
|
|
46108
46125
|
schematic_sheet_id?: string | undefined;
|
|
@@ -54307,6 +54324,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
54307
54324
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
54308
54325
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
54309
54326
|
show_as_bounding_box: z.ZodOptional<z.ZodBoolean>;
|
|
54327
|
+
show_hidden_edges: z.ZodOptional<z.ZodBoolean>;
|
|
54310
54328
|
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
54311
54329
|
}, "strip", z.ZodTypeAny, {
|
|
54312
54330
|
type: "cad_component";
|
|
@@ -54356,6 +54374,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
54356
54374
|
model_jscad?: any;
|
|
54357
54375
|
show_as_translucent_model?: boolean | undefined;
|
|
54358
54376
|
show_as_bounding_box?: boolean | undefined;
|
|
54377
|
+
show_hidden_edges?: boolean | undefined;
|
|
54359
54378
|
}, {
|
|
54360
54379
|
type: "cad_component";
|
|
54361
54380
|
pcb_component_id: string;
|
|
@@ -54406,6 +54425,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
54406
54425
|
model_jscad?: any;
|
|
54407
54426
|
show_as_translucent_model?: boolean | undefined;
|
|
54408
54427
|
show_as_bounding_box?: boolean | undefined;
|
|
54428
|
+
show_hidden_edges?: boolean | undefined;
|
|
54409
54429
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
54410
54430
|
type: z.ZodLiteral<"simulation_voltage_source">;
|
|
54411
54431
|
simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -66054,6 +66074,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
66054
66074
|
schematic_component_id: z.ZodOptional<z.ZodString>;
|
|
66055
66075
|
schematic_symbol_id: z.ZodOptional<z.ZodString>;
|
|
66056
66076
|
schematic_text_id: z.ZodString;
|
|
66077
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
66057
66078
|
text: z.ZodString;
|
|
66058
66079
|
font_size: z.ZodDefault<z.ZodNumber>;
|
|
66059
66080
|
position: z.ZodObject<{
|
|
@@ -66083,6 +66104,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
66083
66104
|
y: number;
|
|
66084
66105
|
};
|
|
66085
66106
|
subcircuit_id?: string | undefined;
|
|
66107
|
+
source_trace_id?: string | undefined;
|
|
66086
66108
|
schematic_sheet_id?: string | undefined;
|
|
66087
66109
|
schematic_component_id?: string | undefined;
|
|
66088
66110
|
schematic_symbol_id?: string | undefined;
|
|
@@ -66097,6 +66119,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
66097
66119
|
anchor?: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right" | undefined;
|
|
66098
66120
|
rotation?: number | undefined;
|
|
66099
66121
|
subcircuit_id?: string | undefined;
|
|
66122
|
+
source_trace_id?: string | undefined;
|
|
66100
66123
|
font_size?: number | undefined;
|
|
66101
66124
|
color?: string | undefined;
|
|
66102
66125
|
schematic_sheet_id?: string | undefined;
|
|
@@ -74301,6 +74324,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
74301
74324
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
74302
74325
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
74303
74326
|
show_as_bounding_box: z.ZodOptional<z.ZodBoolean>;
|
|
74327
|
+
show_hidden_edges: z.ZodOptional<z.ZodBoolean>;
|
|
74304
74328
|
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
74305
74329
|
}, "strip", z.ZodTypeAny, {
|
|
74306
74330
|
type: "cad_component";
|
|
@@ -74350,6 +74374,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
74350
74374
|
model_jscad?: any;
|
|
74351
74375
|
show_as_translucent_model?: boolean | undefined;
|
|
74352
74376
|
show_as_bounding_box?: boolean | undefined;
|
|
74377
|
+
show_hidden_edges?: boolean | undefined;
|
|
74353
74378
|
}, {
|
|
74354
74379
|
type: "cad_component";
|
|
74355
74380
|
pcb_component_id: string;
|
|
@@ -74400,6 +74425,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
74400
74425
|
model_jscad?: any;
|
|
74401
74426
|
show_as_translucent_model?: boolean | undefined;
|
|
74402
74427
|
show_as_bounding_box?: boolean | undefined;
|
|
74428
|
+
show_hidden_edges?: boolean | undefined;
|
|
74403
74429
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
74404
74430
|
type: z.ZodLiteral<"simulation_voltage_source">;
|
|
74405
74431
|
simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
package/dist/index.mjs
CHANGED
|
@@ -1368,6 +1368,7 @@ var schematic_text = z82.object({
|
|
|
1368
1368
|
schematic_component_id: z82.string().optional(),
|
|
1369
1369
|
schematic_symbol_id: z82.string().optional(),
|
|
1370
1370
|
schematic_text_id: z82.string(),
|
|
1371
|
+
source_trace_id: z82.string().optional(),
|
|
1371
1372
|
text: z82.string(),
|
|
1372
1373
|
font_size: z82.number().default(0.18),
|
|
1373
1374
|
position: z82.object({
|
|
@@ -3687,6 +3688,7 @@ var cad_component = z171.object({
|
|
|
3687
3688
|
model_jscad: z171.any().optional(),
|
|
3688
3689
|
show_as_translucent_model: z171.boolean().optional(),
|
|
3689
3690
|
show_as_bounding_box: z171.boolean().optional(),
|
|
3691
|
+
show_hidden_edges: z171.boolean().optional(),
|
|
3690
3692
|
anchor_alignment: z171.enum(["center", "center_of_component_on_board_surface"]).optional().default("center")
|
|
3691
3693
|
}).describe("Defines a component on the PCB");
|
|
3692
3694
|
expectTypesMatch(true);
|