@tscircuit/eval 0.0.494 → 0.0.496
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 +21 -6
- package/dist/eval/index.js +27 -1
- package/dist/lib/index.d.ts +21 -6
- package/dist/lib/index.js +30 -1
- package/dist/webworker/entrypoint.js +24 -18
- package/dist/worker.d.ts +7 -0
- package/dist/worker.js +4 -1
- package/package.json +3 -3
package/dist/lib/index.d.ts
CHANGED
|
@@ -24,6 +24,13 @@ interface WebWorkerConfiguration extends CircuitRunnerConfiguration {
|
|
|
24
24
|
* Default: false
|
|
25
25
|
*/
|
|
26
26
|
enableFetchProxy?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Disable npm package resolution from jsDelivr CDN.
|
|
29
|
+
* When true, import statements for npm packages will throw an error instead
|
|
30
|
+
* of being resolved from the CDN.
|
|
31
|
+
* Default: false
|
|
32
|
+
*/
|
|
33
|
+
disableCdnLoading?: boolean;
|
|
27
34
|
}
|
|
28
35
|
/**
|
|
29
36
|
* API for the CircuitRunner class, used for eval'ing circuits
|
|
@@ -42,6 +49,7 @@ interface CircuitRunnerApi {
|
|
|
42
49
|
renderUntilSettled: () => Promise<void>;
|
|
43
50
|
getCircuitJson: () => Promise<AnyCircuitElement[]>;
|
|
44
51
|
setSnippetsApiBaseUrl: (baseUrl: string) => Promise<void>;
|
|
52
|
+
setDisableCdnLoading: (disable: boolean) => Promise<void>;
|
|
45
53
|
setPlatformConfig: (platform: PlatformConfig) => Promise<void>;
|
|
46
54
|
setProjectConfig: (project: Partial<PlatformConfig>) => Promise<void>;
|
|
47
55
|
setPlatformConfigProperty: (property: string, value: any) => Promise<void>;
|
|
@@ -133,6 +141,7 @@ declare class CircuitRunner implements CircuitRunnerApi {
|
|
|
133
141
|
clearEventListeners(): void;
|
|
134
142
|
kill(): Promise<void>;
|
|
135
143
|
setSnippetsApiBaseUrl(baseUrl: string): Promise<void>;
|
|
144
|
+
setDisableCdnLoading(disable: boolean): Promise<void>;
|
|
136
145
|
setPlatformConfig(platform: PlatformConfig): Promise<void>;
|
|
137
146
|
setPlatformConfigProperty(property: string, value: any): Promise<void>;
|
|
138
147
|
setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
|
|
@@ -950,7 +959,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
950
959
|
pcb_component_id?: string | undefined;
|
|
951
960
|
subcircuit_id?: string | undefined;
|
|
952
961
|
pcb_group_id?: string | undefined;
|
|
953
|
-
is_covered_with_solder_mask?: boolean | undefined;
|
|
954
962
|
soldermask_margin?: number | undefined;
|
|
955
963
|
port_hints?: string[] | undefined;
|
|
956
964
|
pcb_port_id?: string | undefined;
|
|
@@ -1170,6 +1178,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1170
1178
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
1171
1179
|
net_is_assignable?: boolean | undefined;
|
|
1172
1180
|
net_assigned?: boolean | undefined;
|
|
1181
|
+
is_tented?: boolean | undefined;
|
|
1173
1182
|
} | {
|
|
1174
1183
|
x: number;
|
|
1175
1184
|
y: number;
|
|
@@ -2350,6 +2359,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2350
2359
|
model_wrl_url?: string | undefined;
|
|
2351
2360
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
2352
2361
|
model_jscad?: any;
|
|
2362
|
+
show_as_translucent_model?: boolean | undefined;
|
|
2353
2363
|
} | {
|
|
2354
2364
|
type: "simulation_voltage_source";
|
|
2355
2365
|
voltage: number;
|
|
@@ -2408,9 +2418,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2408
2418
|
name?: string | undefined;
|
|
2409
2419
|
source_component_id?: string | undefined;
|
|
2410
2420
|
subcircuit_id?: string | undefined;
|
|
2411
|
-
source_port_id?: string | undefined;
|
|
2412
|
-
source_net_id?: string | undefined;
|
|
2413
2421
|
color?: string | undefined;
|
|
2422
|
+
signal_input_source_port_id?: string | undefined;
|
|
2423
|
+
signal_input_source_net_id?: string | undefined;
|
|
2424
|
+
reference_input_source_port_id?: string | undefined;
|
|
2425
|
+
reference_input_source_net_id?: string | undefined;
|
|
2414
2426
|
} | {
|
|
2415
2427
|
message: string;
|
|
2416
2428
|
type: "simulation_unknown_experiment_error";
|
|
@@ -3232,7 +3244,6 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3232
3244
|
pcb_component_id?: string | undefined;
|
|
3233
3245
|
subcircuit_id?: string | undefined;
|
|
3234
3246
|
pcb_group_id?: string | undefined;
|
|
3235
|
-
is_covered_with_solder_mask?: boolean | undefined;
|
|
3236
3247
|
soldermask_margin?: number | undefined;
|
|
3237
3248
|
port_hints?: string[] | undefined;
|
|
3238
3249
|
pcb_port_id?: string | undefined;
|
|
@@ -3452,6 +3463,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3452
3463
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
3453
3464
|
net_is_assignable?: boolean | undefined;
|
|
3454
3465
|
net_assigned?: boolean | undefined;
|
|
3466
|
+
is_tented?: boolean | undefined;
|
|
3455
3467
|
} | {
|
|
3456
3468
|
x: number;
|
|
3457
3469
|
y: number;
|
|
@@ -4632,6 +4644,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4632
4644
|
model_wrl_url?: string | undefined;
|
|
4633
4645
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
4634
4646
|
model_jscad?: any;
|
|
4647
|
+
show_as_translucent_model?: boolean | undefined;
|
|
4635
4648
|
} | {
|
|
4636
4649
|
type: "simulation_voltage_source";
|
|
4637
4650
|
voltage: number;
|
|
@@ -4690,9 +4703,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4690
4703
|
name?: string | undefined;
|
|
4691
4704
|
source_component_id?: string | undefined;
|
|
4692
4705
|
subcircuit_id?: string | undefined;
|
|
4693
|
-
source_port_id?: string | undefined;
|
|
4694
|
-
source_net_id?: string | undefined;
|
|
4695
4706
|
color?: string | undefined;
|
|
4707
|
+
signal_input_source_port_id?: string | undefined;
|
|
4708
|
+
signal_input_source_net_id?: string | undefined;
|
|
4709
|
+
reference_input_source_port_id?: string | undefined;
|
|
4710
|
+
reference_input_source_net_id?: string | undefined;
|
|
4696
4711
|
} | {
|
|
4697
4712
|
message: string;
|
|
4698
4713
|
type: "simulation_unknown_experiment_error";
|