@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.
@@ -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>;
@@ -117,6 +125,7 @@ declare class CircuitRunner implements CircuitRunnerApi {
117
125
  clearEventListeners(): void;
118
126
  kill(): Promise<void>;
119
127
  setSnippetsApiBaseUrl(baseUrl: string): Promise<void>;
128
+ setDisableCdnLoading(disable: boolean): Promise<void>;
120
129
  setPlatformConfig(platform: PlatformConfig): Promise<void>;
121
130
  setPlatformConfigProperty(property: string, value: any): Promise<void>;
122
131
  setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
@@ -934,7 +943,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
934
943
  pcb_component_id?: string | undefined;
935
944
  subcircuit_id?: string | undefined;
936
945
  pcb_group_id?: string | undefined;
937
- is_covered_with_solder_mask?: boolean | undefined;
938
946
  soldermask_margin?: number | undefined;
939
947
  port_hints?: string[] | undefined;
940
948
  pcb_port_id?: string | undefined;
@@ -1154,6 +1162,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1154
1162
  subcircuit_connectivity_map_key?: string | undefined;
1155
1163
  net_is_assignable?: boolean | undefined;
1156
1164
  net_assigned?: boolean | undefined;
1165
+ is_tented?: boolean | undefined;
1157
1166
  } | {
1158
1167
  x: number;
1159
1168
  y: number;
@@ -2334,6 +2343,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2334
2343
  model_wrl_url?: string | undefined;
2335
2344
  model_unit_to_mm_scale_factor?: number | undefined;
2336
2345
  model_jscad?: any;
2346
+ show_as_translucent_model?: boolean | undefined;
2337
2347
  } | {
2338
2348
  type: "simulation_voltage_source";
2339
2349
  voltage: number;
@@ -2392,9 +2402,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2392
2402
  name?: string | undefined;
2393
2403
  source_component_id?: string | undefined;
2394
2404
  subcircuit_id?: string | undefined;
2395
- source_port_id?: string | undefined;
2396
- source_net_id?: string | undefined;
2397
2405
  color?: string | undefined;
2406
+ signal_input_source_port_id?: string | undefined;
2407
+ signal_input_source_net_id?: string | undefined;
2408
+ reference_input_source_port_id?: string | undefined;
2409
+ reference_input_source_net_id?: string | undefined;
2398
2410
  } | {
2399
2411
  message: string;
2400
2412
  type: "simulation_unknown_experiment_error";
@@ -3216,7 +3228,6 @@ declare const runTscircuitModule: (module: string, opts?: {
3216
3228
  pcb_component_id?: string | undefined;
3217
3229
  subcircuit_id?: string | undefined;
3218
3230
  pcb_group_id?: string | undefined;
3219
- is_covered_with_solder_mask?: boolean | undefined;
3220
3231
  soldermask_margin?: number | undefined;
3221
3232
  port_hints?: string[] | undefined;
3222
3233
  pcb_port_id?: string | undefined;
@@ -3436,6 +3447,7 @@ declare const runTscircuitModule: (module: string, opts?: {
3436
3447
  subcircuit_connectivity_map_key?: string | undefined;
3437
3448
  net_is_assignable?: boolean | undefined;
3438
3449
  net_assigned?: boolean | undefined;
3450
+ is_tented?: boolean | undefined;
3439
3451
  } | {
3440
3452
  x: number;
3441
3453
  y: number;
@@ -4616,6 +4628,7 @@ declare const runTscircuitModule: (module: string, opts?: {
4616
4628
  model_wrl_url?: string | undefined;
4617
4629
  model_unit_to_mm_scale_factor?: number | undefined;
4618
4630
  model_jscad?: any;
4631
+ show_as_translucent_model?: boolean | undefined;
4619
4632
  } | {
4620
4633
  type: "simulation_voltage_source";
4621
4634
  voltage: number;
@@ -4674,9 +4687,11 @@ declare const runTscircuitModule: (module: string, opts?: {
4674
4687
  name?: string | undefined;
4675
4688
  source_component_id?: string | undefined;
4676
4689
  subcircuit_id?: string | undefined;
4677
- source_port_id?: string | undefined;
4678
- source_net_id?: string | undefined;
4679
4690
  color?: string | undefined;
4691
+ signal_input_source_port_id?: string | undefined;
4692
+ signal_input_source_net_id?: string | undefined;
4693
+ reference_input_source_port_id?: string | undefined;
4694
+ reference_input_source_net_id?: string | undefined;
4680
4695
  } | {
4681
4696
  message: string;
4682
4697
  type: "simulation_unknown_experiment_error";