@tscircuit/eval 0.0.319 → 0.0.321
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 +14 -1
- package/dist/eval/index.js +19 -59
- package/dist/lib/index.d.ts +14 -1
- package/dist/lib/index.js +19 -59
- package/dist/webworker/entrypoint.js +248 -248
- package/lib/index.ts +1 -0
- package/lib/runner/index.ts +1 -0
- package/lib/shared/static-asset-extensions.ts +10 -0
- package/package.json +4 -4
- package/tests/features/static-file-imports/static-file-import.test.ts +50 -0
- package/webworker/import-local-file.ts +6 -67
- package/tests/features/import-glb-file.test.tsx +0 -54
- package/tests/features/import-gltf-file.test.tsx +0 -78
- package/tests/features/import-obj-file.test.tsx +0 -49
package/dist/lib/index.d.ts
CHANGED
|
@@ -852,6 +852,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
852
852
|
pcb_group_id?: string | undefined;
|
|
853
853
|
port_hints?: string[] | undefined;
|
|
854
854
|
pcb_port_id?: string | undefined;
|
|
855
|
+
rect_border_radius?: number | undefined;
|
|
855
856
|
} | {
|
|
856
857
|
x: number;
|
|
857
858
|
y: number;
|
|
@@ -870,6 +871,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
870
871
|
pcb_group_id?: string | undefined;
|
|
871
872
|
port_hints?: string[] | undefined;
|
|
872
873
|
pcb_port_id?: string | undefined;
|
|
874
|
+
rect_border_radius?: number | undefined;
|
|
873
875
|
} | {
|
|
874
876
|
x: number;
|
|
875
877
|
y: number;
|
|
@@ -890,6 +892,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
890
892
|
pcb_group_id?: string | undefined;
|
|
891
893
|
port_hints?: string[] | undefined;
|
|
892
894
|
pcb_port_id?: string | undefined;
|
|
895
|
+
rect_border_radius?: number | undefined;
|
|
893
896
|
} | {
|
|
894
897
|
type: "pcb_keepout";
|
|
895
898
|
width: number;
|
|
@@ -1010,6 +1013,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1010
1013
|
pcb_group_id?: string | undefined;
|
|
1011
1014
|
port_hints?: string[] | undefined;
|
|
1012
1015
|
pcb_port_id?: string | undefined;
|
|
1016
|
+
rect_border_radius?: number | undefined;
|
|
1013
1017
|
} | {
|
|
1014
1018
|
x: number;
|
|
1015
1019
|
y: number;
|
|
@@ -1025,6 +1029,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1025
1029
|
pcb_group_id?: string | undefined;
|
|
1026
1030
|
port_hints?: string[] | undefined;
|
|
1027
1031
|
pcb_port_id?: string | undefined;
|
|
1032
|
+
rect_border_radius?: number | undefined;
|
|
1028
1033
|
} | {
|
|
1029
1034
|
x: number;
|
|
1030
1035
|
y: number;
|
|
@@ -2582,6 +2587,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2582
2587
|
pcb_group_id?: string | undefined;
|
|
2583
2588
|
port_hints?: string[] | undefined;
|
|
2584
2589
|
pcb_port_id?: string | undefined;
|
|
2590
|
+
rect_border_radius?: number | undefined;
|
|
2585
2591
|
} | {
|
|
2586
2592
|
x: number;
|
|
2587
2593
|
y: number;
|
|
@@ -2600,6 +2606,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2600
2606
|
pcb_group_id?: string | undefined;
|
|
2601
2607
|
port_hints?: string[] | undefined;
|
|
2602
2608
|
pcb_port_id?: string | undefined;
|
|
2609
|
+
rect_border_radius?: number | undefined;
|
|
2603
2610
|
} | {
|
|
2604
2611
|
x: number;
|
|
2605
2612
|
y: number;
|
|
@@ -2620,6 +2627,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2620
2627
|
pcb_group_id?: string | undefined;
|
|
2621
2628
|
port_hints?: string[] | undefined;
|
|
2622
2629
|
pcb_port_id?: string | undefined;
|
|
2630
|
+
rect_border_radius?: number | undefined;
|
|
2623
2631
|
} | {
|
|
2624
2632
|
type: "pcb_keepout";
|
|
2625
2633
|
width: number;
|
|
@@ -2740,6 +2748,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2740
2748
|
pcb_group_id?: string | undefined;
|
|
2741
2749
|
port_hints?: string[] | undefined;
|
|
2742
2750
|
pcb_port_id?: string | undefined;
|
|
2751
|
+
rect_border_radius?: number | undefined;
|
|
2743
2752
|
} | {
|
|
2744
2753
|
x: number;
|
|
2745
2754
|
y: number;
|
|
@@ -2755,6 +2764,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2755
2764
|
pcb_group_id?: string | undefined;
|
|
2756
2765
|
port_hints?: string[] | undefined;
|
|
2757
2766
|
pcb_port_id?: string | undefined;
|
|
2767
|
+
rect_border_radius?: number | undefined;
|
|
2758
2768
|
} | {
|
|
2759
2769
|
x: number;
|
|
2760
2770
|
y: number;
|
|
@@ -3565,6 +3575,9 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
3565
3575
|
duty_cycle?: number | undefined;
|
|
3566
3576
|
})[]>;
|
|
3567
3577
|
|
|
3578
|
+
declare const STATIC_ASSET_EXTENSIONS: string[];
|
|
3579
|
+
declare const isStaticAssetPath: (path: string) => boolean;
|
|
3580
|
+
|
|
3568
3581
|
declare const getImportsFromCode: (code: string) => string[];
|
|
3569
3582
|
|
|
3570
3583
|
declare global {
|
|
@@ -3579,4 +3592,4 @@ declare const getPossibleEntrypointComponentPaths: (fsMap: Record<string, string
|
|
|
3579
3592
|
|
|
3580
3593
|
declare const getPlatformConfig: () => PlatformConfig;
|
|
3581
3594
|
|
|
3582
|
-
export { CircuitRunner, type CircuitWebWorker, type WebWorkerConfiguration, createCircuitWebWorker, getImportsFromCode, getPlatformConfig, getPossibleEntrypointComponentPaths, runTscircuitCode, runTscircuitModule };
|
|
3595
|
+
export { CircuitRunner, type CircuitWebWorker, STATIC_ASSET_EXTENSIONS, type WebWorkerConfiguration, createCircuitWebWorker, getImportsFromCode, getPlatformConfig, getPossibleEntrypointComponentPaths, isStaticAssetPath, runTscircuitCode, runTscircuitModule };
|