@tscircuit/3d-viewer 0.0.511 → 0.0.513
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/index.d.ts +26 -17
- package/dist/index.js +719 -1043
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -44,21 +44,30 @@ declare function useExportGltfUrl(options?: Options): [
|
|
|
44
44
|
error: ErrorEvent | undefined
|
|
45
45
|
];
|
|
46
46
|
|
|
47
|
-
interface
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
interface LayerVisibilityState {
|
|
48
|
+
boardBody: boolean;
|
|
49
|
+
topCopper: boolean;
|
|
50
|
+
bottomCopper: boolean;
|
|
51
|
+
adhesive: boolean;
|
|
52
|
+
solderPaste: boolean;
|
|
53
|
+
topSilkscreen: boolean;
|
|
54
|
+
bottomSilkscreen: boolean;
|
|
55
|
+
topMask: boolean;
|
|
56
|
+
bottomMask: boolean;
|
|
57
|
+
throughHoleModels: boolean;
|
|
58
|
+
smtModels: boolean;
|
|
59
|
+
translucentModels: boolean;
|
|
60
|
+
modelsNotInPosFile: boolean;
|
|
61
|
+
modelsMarkedDNP: boolean;
|
|
62
|
+
modelBoundingBoxes: boolean;
|
|
63
|
+
threedAxis: boolean;
|
|
64
|
+
backgroundStart: boolean;
|
|
65
|
+
backgroundEnd: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface CombinedBoardTextures {
|
|
69
|
+
topBoard?: THREE.CanvasTexture | null;
|
|
70
|
+
bottomBoard?: THREE.CanvasTexture | null;
|
|
62
71
|
}
|
|
63
72
|
|
|
64
73
|
interface ManifoldGeoms {
|
|
@@ -86,14 +95,14 @@ interface ManifoldGeoms {
|
|
|
86
95
|
}
|
|
87
96
|
interface UseManifoldBoardBuilderResult {
|
|
88
97
|
geoms: ManifoldGeoms | null;
|
|
89
|
-
textures:
|
|
98
|
+
textures: CombinedBoardTextures | null;
|
|
90
99
|
pcbThickness: number | null;
|
|
91
100
|
error: string | null;
|
|
92
101
|
isLoading: boolean;
|
|
93
102
|
boardData: PcbBoard | null;
|
|
94
103
|
isFauxBoard: boolean;
|
|
95
104
|
}
|
|
96
|
-
declare const useManifoldBoardBuilder: (manifoldJSModule: ManifoldToplevel | null, circuitJson: AnyCircuitElement[]) => UseManifoldBoardBuilderResult;
|
|
105
|
+
declare const useManifoldBoardBuilder: (manifoldJSModule: ManifoldToplevel | null, circuitJson: AnyCircuitElement[], visibility: LayerVisibilityState) => UseManifoldBoardBuilderResult;
|
|
97
106
|
|
|
98
107
|
declare function applyJsdomShim(jsdom: JSDOM): void;
|
|
99
108
|
|