@tscircuit/eval 0.0.702 → 0.0.703
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/blob-url.js +1 -1
- package/dist/eval/index.d.ts +108 -0
- package/dist/lib/index.d.ts +108 -0
- package/dist/webworker/entrypoint.js +3 -3
- package/package.json +3 -3
package/dist/eval/index.d.ts
CHANGED
|
@@ -621,6 +621,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
621
621
|
property_name: string;
|
|
622
622
|
subcircuit_id?: string | undefined;
|
|
623
623
|
is_fatal?: boolean | undefined;
|
|
624
|
+
} | {
|
|
625
|
+
message: string;
|
|
626
|
+
type: "source_invalid_component_property_error";
|
|
627
|
+
source_component_id: string;
|
|
628
|
+
error_type: "source_invalid_component_property_error";
|
|
629
|
+
property_name: string;
|
|
630
|
+
source_invalid_component_property_error_id: string;
|
|
631
|
+
subcircuit_id?: string | undefined;
|
|
632
|
+
is_fatal?: boolean | undefined;
|
|
633
|
+
property_value?: unknown;
|
|
634
|
+
expected_format?: string | undefined;
|
|
624
635
|
} | {
|
|
625
636
|
message: string;
|
|
626
637
|
type: "source_failed_to_create_component_error";
|
|
@@ -981,6 +992,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
981
992
|
software_used_string?: string | undefined;
|
|
982
993
|
project_url?: string | undefined;
|
|
983
994
|
created_at?: string | undefined;
|
|
995
|
+
} | {
|
|
996
|
+
message: string;
|
|
997
|
+
type: "source_invalid_component_property_error";
|
|
998
|
+
source_component_id: string;
|
|
999
|
+
error_type: "source_invalid_component_property_error";
|
|
1000
|
+
property_name: string;
|
|
1001
|
+
source_invalid_component_property_error_id: string;
|
|
1002
|
+
subcircuit_id?: string | undefined;
|
|
1003
|
+
is_fatal?: boolean | undefined;
|
|
1004
|
+
property_value?: unknown;
|
|
1005
|
+
expected_format?: string | undefined;
|
|
984
1006
|
} | {
|
|
985
1007
|
message: string;
|
|
986
1008
|
type: "source_trace_not_connected_error";
|
|
@@ -1000,6 +1022,30 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1000
1022
|
warning_type: "source_pin_missing_trace_warning";
|
|
1001
1023
|
source_pin_missing_trace_warning_id: string;
|
|
1002
1024
|
subcircuit_id?: string | undefined;
|
|
1025
|
+
} | {
|
|
1026
|
+
message: string;
|
|
1027
|
+
type: "source_no_power_pin_defined_warning";
|
|
1028
|
+
source_component_id: string;
|
|
1029
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
1030
|
+
source_port_ids: string[];
|
|
1031
|
+
source_no_power_pin_defined_warning_id: string;
|
|
1032
|
+
subcircuit_id?: string | undefined;
|
|
1033
|
+
} | {
|
|
1034
|
+
message: string;
|
|
1035
|
+
type: "source_no_ground_pin_defined_warning";
|
|
1036
|
+
source_component_id: string;
|
|
1037
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
1038
|
+
source_port_ids: string[];
|
|
1039
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
1040
|
+
subcircuit_id?: string | undefined;
|
|
1041
|
+
} | {
|
|
1042
|
+
message: string;
|
|
1043
|
+
type: "source_component_pins_underspecified_warning";
|
|
1044
|
+
source_component_id: string;
|
|
1045
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
1046
|
+
source_port_ids: string[];
|
|
1047
|
+
source_component_pins_underspecified_warning_id: string;
|
|
1048
|
+
subcircuit_id?: string | undefined;
|
|
1003
1049
|
} | {
|
|
1004
1050
|
message: string;
|
|
1005
1051
|
type: "source_pin_must_be_connected_error";
|
|
@@ -4178,6 +4224,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
4178
4224
|
z: number;
|
|
4179
4225
|
};
|
|
4180
4226
|
cad_component_id: string;
|
|
4227
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
4181
4228
|
rotation?: {
|
|
4182
4229
|
x: number;
|
|
4183
4230
|
y: number;
|
|
@@ -4204,6 +4251,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
4204
4251
|
mimetype: string;
|
|
4205
4252
|
} | undefined;
|
|
4206
4253
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
4254
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
4255
|
+
model_origin_position?: {
|
|
4256
|
+
x: number;
|
|
4257
|
+
y: number;
|
|
4258
|
+
z: number;
|
|
4259
|
+
} | undefined;
|
|
4260
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
4207
4261
|
model_jscad?: any;
|
|
4208
4262
|
show_as_translucent_model?: boolean | undefined;
|
|
4209
4263
|
} | {
|
|
@@ -4792,6 +4846,17 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4792
4846
|
property_name: string;
|
|
4793
4847
|
subcircuit_id?: string | undefined;
|
|
4794
4848
|
is_fatal?: boolean | undefined;
|
|
4849
|
+
} | {
|
|
4850
|
+
message: string;
|
|
4851
|
+
type: "source_invalid_component_property_error";
|
|
4852
|
+
source_component_id: string;
|
|
4853
|
+
error_type: "source_invalid_component_property_error";
|
|
4854
|
+
property_name: string;
|
|
4855
|
+
source_invalid_component_property_error_id: string;
|
|
4856
|
+
subcircuit_id?: string | undefined;
|
|
4857
|
+
is_fatal?: boolean | undefined;
|
|
4858
|
+
property_value?: unknown;
|
|
4859
|
+
expected_format?: string | undefined;
|
|
4795
4860
|
} | {
|
|
4796
4861
|
message: string;
|
|
4797
4862
|
type: "source_failed_to_create_component_error";
|
|
@@ -5152,6 +5217,17 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5152
5217
|
software_used_string?: string | undefined;
|
|
5153
5218
|
project_url?: string | undefined;
|
|
5154
5219
|
created_at?: string | undefined;
|
|
5220
|
+
} | {
|
|
5221
|
+
message: string;
|
|
5222
|
+
type: "source_invalid_component_property_error";
|
|
5223
|
+
source_component_id: string;
|
|
5224
|
+
error_type: "source_invalid_component_property_error";
|
|
5225
|
+
property_name: string;
|
|
5226
|
+
source_invalid_component_property_error_id: string;
|
|
5227
|
+
subcircuit_id?: string | undefined;
|
|
5228
|
+
is_fatal?: boolean | undefined;
|
|
5229
|
+
property_value?: unknown;
|
|
5230
|
+
expected_format?: string | undefined;
|
|
5155
5231
|
} | {
|
|
5156
5232
|
message: string;
|
|
5157
5233
|
type: "source_trace_not_connected_error";
|
|
@@ -5171,6 +5247,30 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5171
5247
|
warning_type: "source_pin_missing_trace_warning";
|
|
5172
5248
|
source_pin_missing_trace_warning_id: string;
|
|
5173
5249
|
subcircuit_id?: string | undefined;
|
|
5250
|
+
} | {
|
|
5251
|
+
message: string;
|
|
5252
|
+
type: "source_no_power_pin_defined_warning";
|
|
5253
|
+
source_component_id: string;
|
|
5254
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
5255
|
+
source_port_ids: string[];
|
|
5256
|
+
source_no_power_pin_defined_warning_id: string;
|
|
5257
|
+
subcircuit_id?: string | undefined;
|
|
5258
|
+
} | {
|
|
5259
|
+
message: string;
|
|
5260
|
+
type: "source_no_ground_pin_defined_warning";
|
|
5261
|
+
source_component_id: string;
|
|
5262
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
5263
|
+
source_port_ids: string[];
|
|
5264
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
5265
|
+
subcircuit_id?: string | undefined;
|
|
5266
|
+
} | {
|
|
5267
|
+
message: string;
|
|
5268
|
+
type: "source_component_pins_underspecified_warning";
|
|
5269
|
+
source_component_id: string;
|
|
5270
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
5271
|
+
source_port_ids: string[];
|
|
5272
|
+
source_component_pins_underspecified_warning_id: string;
|
|
5273
|
+
subcircuit_id?: string | undefined;
|
|
5174
5274
|
} | {
|
|
5175
5275
|
message: string;
|
|
5176
5276
|
type: "source_pin_must_be_connected_error";
|
|
@@ -8349,6 +8449,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8349
8449
|
z: number;
|
|
8350
8450
|
};
|
|
8351
8451
|
cad_component_id: string;
|
|
8452
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
8352
8453
|
rotation?: {
|
|
8353
8454
|
x: number;
|
|
8354
8455
|
y: number;
|
|
@@ -8375,6 +8476,13 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8375
8476
|
mimetype: string;
|
|
8376
8477
|
} | undefined;
|
|
8377
8478
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
8479
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
8480
|
+
model_origin_position?: {
|
|
8481
|
+
x: number;
|
|
8482
|
+
y: number;
|
|
8483
|
+
z: number;
|
|
8484
|
+
} | undefined;
|
|
8485
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
8378
8486
|
model_jscad?: any;
|
|
8379
8487
|
show_as_translucent_model?: boolean | undefined;
|
|
8380
8488
|
} | {
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -637,6 +637,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
637
637
|
property_name: string;
|
|
638
638
|
subcircuit_id?: string | undefined;
|
|
639
639
|
is_fatal?: boolean | undefined;
|
|
640
|
+
} | {
|
|
641
|
+
message: string;
|
|
642
|
+
type: "source_invalid_component_property_error";
|
|
643
|
+
source_component_id: string;
|
|
644
|
+
error_type: "source_invalid_component_property_error";
|
|
645
|
+
property_name: string;
|
|
646
|
+
source_invalid_component_property_error_id: string;
|
|
647
|
+
subcircuit_id?: string | undefined;
|
|
648
|
+
is_fatal?: boolean | undefined;
|
|
649
|
+
property_value?: unknown;
|
|
650
|
+
expected_format?: string | undefined;
|
|
640
651
|
} | {
|
|
641
652
|
message: string;
|
|
642
653
|
type: "source_failed_to_create_component_error";
|
|
@@ -997,6 +1008,17 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
997
1008
|
software_used_string?: string | undefined;
|
|
998
1009
|
project_url?: string | undefined;
|
|
999
1010
|
created_at?: string | undefined;
|
|
1011
|
+
} | {
|
|
1012
|
+
message: string;
|
|
1013
|
+
type: "source_invalid_component_property_error";
|
|
1014
|
+
source_component_id: string;
|
|
1015
|
+
error_type: "source_invalid_component_property_error";
|
|
1016
|
+
property_name: string;
|
|
1017
|
+
source_invalid_component_property_error_id: string;
|
|
1018
|
+
subcircuit_id?: string | undefined;
|
|
1019
|
+
is_fatal?: boolean | undefined;
|
|
1020
|
+
property_value?: unknown;
|
|
1021
|
+
expected_format?: string | undefined;
|
|
1000
1022
|
} | {
|
|
1001
1023
|
message: string;
|
|
1002
1024
|
type: "source_trace_not_connected_error";
|
|
@@ -1016,6 +1038,30 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1016
1038
|
warning_type: "source_pin_missing_trace_warning";
|
|
1017
1039
|
source_pin_missing_trace_warning_id: string;
|
|
1018
1040
|
subcircuit_id?: string | undefined;
|
|
1041
|
+
} | {
|
|
1042
|
+
message: string;
|
|
1043
|
+
type: "source_no_power_pin_defined_warning";
|
|
1044
|
+
source_component_id: string;
|
|
1045
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
1046
|
+
source_port_ids: string[];
|
|
1047
|
+
source_no_power_pin_defined_warning_id: string;
|
|
1048
|
+
subcircuit_id?: string | undefined;
|
|
1049
|
+
} | {
|
|
1050
|
+
message: string;
|
|
1051
|
+
type: "source_no_ground_pin_defined_warning";
|
|
1052
|
+
source_component_id: string;
|
|
1053
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
1054
|
+
source_port_ids: string[];
|
|
1055
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
1056
|
+
subcircuit_id?: string | undefined;
|
|
1057
|
+
} | {
|
|
1058
|
+
message: string;
|
|
1059
|
+
type: "source_component_pins_underspecified_warning";
|
|
1060
|
+
source_component_id: string;
|
|
1061
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
1062
|
+
source_port_ids: string[];
|
|
1063
|
+
source_component_pins_underspecified_warning_id: string;
|
|
1064
|
+
subcircuit_id?: string | undefined;
|
|
1019
1065
|
} | {
|
|
1020
1066
|
message: string;
|
|
1021
1067
|
type: "source_pin_must_be_connected_error";
|
|
@@ -4194,6 +4240,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
4194
4240
|
z: number;
|
|
4195
4241
|
};
|
|
4196
4242
|
cad_component_id: string;
|
|
4243
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
4197
4244
|
rotation?: {
|
|
4198
4245
|
x: number;
|
|
4199
4246
|
y: number;
|
|
@@ -4220,6 +4267,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
4220
4267
|
mimetype: string;
|
|
4221
4268
|
} | undefined;
|
|
4222
4269
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
4270
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
4271
|
+
model_origin_position?: {
|
|
4272
|
+
x: number;
|
|
4273
|
+
y: number;
|
|
4274
|
+
z: number;
|
|
4275
|
+
} | undefined;
|
|
4276
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
4223
4277
|
model_jscad?: any;
|
|
4224
4278
|
show_as_translucent_model?: boolean | undefined;
|
|
4225
4279
|
} | {
|
|
@@ -4808,6 +4862,17 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4808
4862
|
property_name: string;
|
|
4809
4863
|
subcircuit_id?: string | undefined;
|
|
4810
4864
|
is_fatal?: boolean | undefined;
|
|
4865
|
+
} | {
|
|
4866
|
+
message: string;
|
|
4867
|
+
type: "source_invalid_component_property_error";
|
|
4868
|
+
source_component_id: string;
|
|
4869
|
+
error_type: "source_invalid_component_property_error";
|
|
4870
|
+
property_name: string;
|
|
4871
|
+
source_invalid_component_property_error_id: string;
|
|
4872
|
+
subcircuit_id?: string | undefined;
|
|
4873
|
+
is_fatal?: boolean | undefined;
|
|
4874
|
+
property_value?: unknown;
|
|
4875
|
+
expected_format?: string | undefined;
|
|
4811
4876
|
} | {
|
|
4812
4877
|
message: string;
|
|
4813
4878
|
type: "source_failed_to_create_component_error";
|
|
@@ -5168,6 +5233,17 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5168
5233
|
software_used_string?: string | undefined;
|
|
5169
5234
|
project_url?: string | undefined;
|
|
5170
5235
|
created_at?: string | undefined;
|
|
5236
|
+
} | {
|
|
5237
|
+
message: string;
|
|
5238
|
+
type: "source_invalid_component_property_error";
|
|
5239
|
+
source_component_id: string;
|
|
5240
|
+
error_type: "source_invalid_component_property_error";
|
|
5241
|
+
property_name: string;
|
|
5242
|
+
source_invalid_component_property_error_id: string;
|
|
5243
|
+
subcircuit_id?: string | undefined;
|
|
5244
|
+
is_fatal?: boolean | undefined;
|
|
5245
|
+
property_value?: unknown;
|
|
5246
|
+
expected_format?: string | undefined;
|
|
5171
5247
|
} | {
|
|
5172
5248
|
message: string;
|
|
5173
5249
|
type: "source_trace_not_connected_error";
|
|
@@ -5187,6 +5263,30 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5187
5263
|
warning_type: "source_pin_missing_trace_warning";
|
|
5188
5264
|
source_pin_missing_trace_warning_id: string;
|
|
5189
5265
|
subcircuit_id?: string | undefined;
|
|
5266
|
+
} | {
|
|
5267
|
+
message: string;
|
|
5268
|
+
type: "source_no_power_pin_defined_warning";
|
|
5269
|
+
source_component_id: string;
|
|
5270
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
5271
|
+
source_port_ids: string[];
|
|
5272
|
+
source_no_power_pin_defined_warning_id: string;
|
|
5273
|
+
subcircuit_id?: string | undefined;
|
|
5274
|
+
} | {
|
|
5275
|
+
message: string;
|
|
5276
|
+
type: "source_no_ground_pin_defined_warning";
|
|
5277
|
+
source_component_id: string;
|
|
5278
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
5279
|
+
source_port_ids: string[];
|
|
5280
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
5281
|
+
subcircuit_id?: string | undefined;
|
|
5282
|
+
} | {
|
|
5283
|
+
message: string;
|
|
5284
|
+
type: "source_component_pins_underspecified_warning";
|
|
5285
|
+
source_component_id: string;
|
|
5286
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
5287
|
+
source_port_ids: string[];
|
|
5288
|
+
source_component_pins_underspecified_warning_id: string;
|
|
5289
|
+
subcircuit_id?: string | undefined;
|
|
5190
5290
|
} | {
|
|
5191
5291
|
message: string;
|
|
5192
5292
|
type: "source_pin_must_be_connected_error";
|
|
@@ -8365,6 +8465,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8365
8465
|
z: number;
|
|
8366
8466
|
};
|
|
8367
8467
|
cad_component_id: string;
|
|
8468
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
8368
8469
|
rotation?: {
|
|
8369
8470
|
x: number;
|
|
8370
8471
|
y: number;
|
|
@@ -8391,6 +8492,13 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8391
8492
|
mimetype: string;
|
|
8392
8493
|
} | undefined;
|
|
8393
8494
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
8495
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
8496
|
+
model_origin_position?: {
|
|
8497
|
+
x: number;
|
|
8498
|
+
y: number;
|
|
8499
|
+
z: number;
|
|
8500
|
+
} | undefined;
|
|
8501
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
8394
8502
|
model_jscad?: any;
|
|
8395
8503
|
show_as_translucent_model?: boolean | undefined;
|
|
8396
8504
|
} | {
|