@tscircuit/eval 0.0.406 → 0.0.407
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 +26 -10
- package/dist/lib/index.d.ts +26 -10
- package/dist/webworker/entrypoint.js +128 -128
- package/package.json +8 -8
package/dist/eval/index.d.ts
CHANGED
|
@@ -1227,15 +1227,20 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1227
1227
|
num_layers: number;
|
|
1228
1228
|
material: "fr4" | "fr1";
|
|
1229
1229
|
subcircuit_id?: string | undefined;
|
|
1230
|
+
pcb_panel_id?: string | undefined;
|
|
1230
1231
|
is_subcircuit?: boolean | undefined;
|
|
1231
1232
|
outline?: {
|
|
1232
1233
|
x: number;
|
|
1233
1234
|
y: number;
|
|
1234
1235
|
}[] | undefined;
|
|
1235
1236
|
} | {
|
|
1236
|
-
type: "
|
|
1237
|
+
type: "pcb_panel";
|
|
1237
1238
|
width: number;
|
|
1238
1239
|
height: number;
|
|
1240
|
+
pcb_panel_id: string;
|
|
1241
|
+
covered_with_solder_mask: boolean;
|
|
1242
|
+
} | {
|
|
1243
|
+
type: "pcb_group";
|
|
1239
1244
|
center: {
|
|
1240
1245
|
x: number;
|
|
1241
1246
|
y: number;
|
|
@@ -1244,9 +1249,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1244
1249
|
pcb_component_ids: string[];
|
|
1245
1250
|
source_group_id: string;
|
|
1246
1251
|
description?: string | undefined;
|
|
1252
|
+
width?: number | undefined;
|
|
1253
|
+
height?: number | undefined;
|
|
1247
1254
|
name?: string | undefined;
|
|
1248
1255
|
subcircuit_id?: string | undefined;
|
|
1249
1256
|
is_subcircuit?: boolean | undefined;
|
|
1257
|
+
outline?: {
|
|
1258
|
+
x: number;
|
|
1259
|
+
y: number;
|
|
1260
|
+
}[] | undefined;
|
|
1250
1261
|
anchor_position?: {
|
|
1251
1262
|
x: number;
|
|
1252
1263
|
y: number;
|
|
@@ -1742,13 +1753,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1742
1753
|
y: number;
|
|
1743
1754
|
};
|
|
1744
1755
|
layer: "top" | "bottom";
|
|
1745
|
-
stroke_width: number;
|
|
1746
1756
|
pcb_courtyard_rect_id: string;
|
|
1747
1757
|
subcircuit_id?: string | undefined;
|
|
1748
1758
|
pcb_group_id?: string | undefined;
|
|
1749
|
-
is_filled?: boolean | undefined;
|
|
1750
|
-
has_stroke?: boolean | undefined;
|
|
1751
|
-
is_stroke_dashed?: boolean | undefined;
|
|
1752
1759
|
color?: string | undefined;
|
|
1753
1760
|
} | {
|
|
1754
1761
|
type: "pcb_courtyard_outline";
|
|
@@ -2166,6 +2173,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2166
2173
|
} | {
|
|
2167
2174
|
type: "simulation_switch";
|
|
2168
2175
|
simulation_switch_id: string;
|
|
2176
|
+
source_component_id?: string | undefined;
|
|
2169
2177
|
closes_at?: number | undefined;
|
|
2170
2178
|
opens_at?: number | undefined;
|
|
2171
2179
|
starts_closed?: boolean | undefined;
|
|
@@ -3288,15 +3296,20 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3288
3296
|
num_layers: number;
|
|
3289
3297
|
material: "fr4" | "fr1";
|
|
3290
3298
|
subcircuit_id?: string | undefined;
|
|
3299
|
+
pcb_panel_id?: string | undefined;
|
|
3291
3300
|
is_subcircuit?: boolean | undefined;
|
|
3292
3301
|
outline?: {
|
|
3293
3302
|
x: number;
|
|
3294
3303
|
y: number;
|
|
3295
3304
|
}[] | undefined;
|
|
3296
3305
|
} | {
|
|
3297
|
-
type: "
|
|
3306
|
+
type: "pcb_panel";
|
|
3298
3307
|
width: number;
|
|
3299
3308
|
height: number;
|
|
3309
|
+
pcb_panel_id: string;
|
|
3310
|
+
covered_with_solder_mask: boolean;
|
|
3311
|
+
} | {
|
|
3312
|
+
type: "pcb_group";
|
|
3300
3313
|
center: {
|
|
3301
3314
|
x: number;
|
|
3302
3315
|
y: number;
|
|
@@ -3305,9 +3318,15 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3305
3318
|
pcb_component_ids: string[];
|
|
3306
3319
|
source_group_id: string;
|
|
3307
3320
|
description?: string | undefined;
|
|
3321
|
+
width?: number | undefined;
|
|
3322
|
+
height?: number | undefined;
|
|
3308
3323
|
name?: string | undefined;
|
|
3309
3324
|
subcircuit_id?: string | undefined;
|
|
3310
3325
|
is_subcircuit?: boolean | undefined;
|
|
3326
|
+
outline?: {
|
|
3327
|
+
x: number;
|
|
3328
|
+
y: number;
|
|
3329
|
+
}[] | undefined;
|
|
3311
3330
|
anchor_position?: {
|
|
3312
3331
|
x: number;
|
|
3313
3332
|
y: number;
|
|
@@ -3803,13 +3822,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3803
3822
|
y: number;
|
|
3804
3823
|
};
|
|
3805
3824
|
layer: "top" | "bottom";
|
|
3806
|
-
stroke_width: number;
|
|
3807
3825
|
pcb_courtyard_rect_id: string;
|
|
3808
3826
|
subcircuit_id?: string | undefined;
|
|
3809
3827
|
pcb_group_id?: string | undefined;
|
|
3810
|
-
is_filled?: boolean | undefined;
|
|
3811
|
-
has_stroke?: boolean | undefined;
|
|
3812
|
-
is_stroke_dashed?: boolean | undefined;
|
|
3813
3828
|
color?: string | undefined;
|
|
3814
3829
|
} | {
|
|
3815
3830
|
type: "pcb_courtyard_outline";
|
|
@@ -4227,6 +4242,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4227
4242
|
} | {
|
|
4228
4243
|
type: "simulation_switch";
|
|
4229
4244
|
simulation_switch_id: string;
|
|
4245
|
+
source_component_id?: string | undefined;
|
|
4230
4246
|
closes_at?: number | undefined;
|
|
4231
4247
|
opens_at?: number | undefined;
|
|
4232
4248
|
starts_closed?: boolean | undefined;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1243,15 +1243,20 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1243
1243
|
num_layers: number;
|
|
1244
1244
|
material: "fr4" | "fr1";
|
|
1245
1245
|
subcircuit_id?: string | undefined;
|
|
1246
|
+
pcb_panel_id?: string | undefined;
|
|
1246
1247
|
is_subcircuit?: boolean | undefined;
|
|
1247
1248
|
outline?: {
|
|
1248
1249
|
x: number;
|
|
1249
1250
|
y: number;
|
|
1250
1251
|
}[] | undefined;
|
|
1251
1252
|
} | {
|
|
1252
|
-
type: "
|
|
1253
|
+
type: "pcb_panel";
|
|
1253
1254
|
width: number;
|
|
1254
1255
|
height: number;
|
|
1256
|
+
pcb_panel_id: string;
|
|
1257
|
+
covered_with_solder_mask: boolean;
|
|
1258
|
+
} | {
|
|
1259
|
+
type: "pcb_group";
|
|
1255
1260
|
center: {
|
|
1256
1261
|
x: number;
|
|
1257
1262
|
y: number;
|
|
@@ -1260,9 +1265,15 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1260
1265
|
pcb_component_ids: string[];
|
|
1261
1266
|
source_group_id: string;
|
|
1262
1267
|
description?: string | undefined;
|
|
1268
|
+
width?: number | undefined;
|
|
1269
|
+
height?: number | undefined;
|
|
1263
1270
|
name?: string | undefined;
|
|
1264
1271
|
subcircuit_id?: string | undefined;
|
|
1265
1272
|
is_subcircuit?: boolean | undefined;
|
|
1273
|
+
outline?: {
|
|
1274
|
+
x: number;
|
|
1275
|
+
y: number;
|
|
1276
|
+
}[] | undefined;
|
|
1266
1277
|
anchor_position?: {
|
|
1267
1278
|
x: number;
|
|
1268
1279
|
y: number;
|
|
@@ -1758,13 +1769,9 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1758
1769
|
y: number;
|
|
1759
1770
|
};
|
|
1760
1771
|
layer: "top" | "bottom";
|
|
1761
|
-
stroke_width: number;
|
|
1762
1772
|
pcb_courtyard_rect_id: string;
|
|
1763
1773
|
subcircuit_id?: string | undefined;
|
|
1764
1774
|
pcb_group_id?: string | undefined;
|
|
1765
|
-
is_filled?: boolean | undefined;
|
|
1766
|
-
has_stroke?: boolean | undefined;
|
|
1767
|
-
is_stroke_dashed?: boolean | undefined;
|
|
1768
1775
|
color?: string | undefined;
|
|
1769
1776
|
} | {
|
|
1770
1777
|
type: "pcb_courtyard_outline";
|
|
@@ -2182,6 +2189,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2182
2189
|
} | {
|
|
2183
2190
|
type: "simulation_switch";
|
|
2184
2191
|
simulation_switch_id: string;
|
|
2192
|
+
source_component_id?: string | undefined;
|
|
2185
2193
|
closes_at?: number | undefined;
|
|
2186
2194
|
opens_at?: number | undefined;
|
|
2187
2195
|
starts_closed?: boolean | undefined;
|
|
@@ -3304,15 +3312,20 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3304
3312
|
num_layers: number;
|
|
3305
3313
|
material: "fr4" | "fr1";
|
|
3306
3314
|
subcircuit_id?: string | undefined;
|
|
3315
|
+
pcb_panel_id?: string | undefined;
|
|
3307
3316
|
is_subcircuit?: boolean | undefined;
|
|
3308
3317
|
outline?: {
|
|
3309
3318
|
x: number;
|
|
3310
3319
|
y: number;
|
|
3311
3320
|
}[] | undefined;
|
|
3312
3321
|
} | {
|
|
3313
|
-
type: "
|
|
3322
|
+
type: "pcb_panel";
|
|
3314
3323
|
width: number;
|
|
3315
3324
|
height: number;
|
|
3325
|
+
pcb_panel_id: string;
|
|
3326
|
+
covered_with_solder_mask: boolean;
|
|
3327
|
+
} | {
|
|
3328
|
+
type: "pcb_group";
|
|
3316
3329
|
center: {
|
|
3317
3330
|
x: number;
|
|
3318
3331
|
y: number;
|
|
@@ -3321,9 +3334,15 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3321
3334
|
pcb_component_ids: string[];
|
|
3322
3335
|
source_group_id: string;
|
|
3323
3336
|
description?: string | undefined;
|
|
3337
|
+
width?: number | undefined;
|
|
3338
|
+
height?: number | undefined;
|
|
3324
3339
|
name?: string | undefined;
|
|
3325
3340
|
subcircuit_id?: string | undefined;
|
|
3326
3341
|
is_subcircuit?: boolean | undefined;
|
|
3342
|
+
outline?: {
|
|
3343
|
+
x: number;
|
|
3344
|
+
y: number;
|
|
3345
|
+
}[] | undefined;
|
|
3327
3346
|
anchor_position?: {
|
|
3328
3347
|
x: number;
|
|
3329
3348
|
y: number;
|
|
@@ -3819,13 +3838,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3819
3838
|
y: number;
|
|
3820
3839
|
};
|
|
3821
3840
|
layer: "top" | "bottom";
|
|
3822
|
-
stroke_width: number;
|
|
3823
3841
|
pcb_courtyard_rect_id: string;
|
|
3824
3842
|
subcircuit_id?: string | undefined;
|
|
3825
3843
|
pcb_group_id?: string | undefined;
|
|
3826
|
-
is_filled?: boolean | undefined;
|
|
3827
|
-
has_stroke?: boolean | undefined;
|
|
3828
|
-
is_stroke_dashed?: boolean | undefined;
|
|
3829
3844
|
color?: string | undefined;
|
|
3830
3845
|
} | {
|
|
3831
3846
|
type: "pcb_courtyard_outline";
|
|
@@ -4243,6 +4258,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4243
4258
|
} | {
|
|
4244
4259
|
type: "simulation_switch";
|
|
4245
4260
|
simulation_switch_id: string;
|
|
4261
|
+
source_component_id?: string | undefined;
|
|
4246
4262
|
closes_at?: number | undefined;
|
|
4247
4263
|
opens_at?: number | undefined;
|
|
4248
4264
|
starts_closed?: boolean | undefined;
|