@tscircuit/3d-viewer 0.0.232 → 0.0.234

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 CHANGED
@@ -43,18 +43,36 @@ declare function useExportGltfUrl(options?: Options): [
43
43
  error: ErrorEvent | undefined
44
44
  ];
45
45
 
46
- interface UseManifoldBoardBuilderResult {
47
- boardThreeGeom: THREE.BufferGeometry | null;
48
- boardColor: THREE.Color;
49
- otherComponentGeoms: Array<{
46
+ interface ManifoldGeoms {
47
+ board?: {
48
+ geometry: THREE.BufferGeometry;
49
+ color: THREE.Color;
50
+ };
51
+ platedHoles?: Array<{
52
+ key: string;
53
+ geometry: THREE.BufferGeometry;
54
+ color: THREE.Color;
55
+ }>;
56
+ smtPads?: Array<{
50
57
  key: string;
51
58
  geometry: THREE.BufferGeometry;
52
59
  color: THREE.Color;
53
60
  }>;
54
- topTraceTexture: THREE.CanvasTexture | null;
55
- bottomTraceTexture: THREE.CanvasTexture | null;
56
- topSilkscreenTexture: THREE.CanvasTexture | null;
57
- bottomSilkscreenTexture: THREE.CanvasTexture | null;
61
+ vias?: Array<{
62
+ key: string;
63
+ geometry: THREE.BufferGeometry;
64
+ color: THREE.Color;
65
+ }>;
66
+ }
67
+ interface ManifoldTextures {
68
+ topTrace?: THREE.CanvasTexture | null;
69
+ bottomTrace?: THREE.CanvasTexture | null;
70
+ topSilkscreen?: THREE.CanvasTexture | null;
71
+ bottomSilkscreen?: THREE.CanvasTexture | null;
72
+ }
73
+ interface UseManifoldBoardBuilderResult {
74
+ geoms: ManifoldGeoms | null;
75
+ textures: ManifoldTextures | null;
58
76
  pcbThickness: number | null;
59
77
  error: string | null;
60
78
  isLoading: boolean;
@@ -64,4 +82,4 @@ declare const useManifoldBoardBuilder: (manifoldJSModule: ManifoldToplevel | nul
64
82
 
65
83
  declare function applyJsdomShim(jsdom: JSDOM): void;
66
84
 
67
- export { CadViewer, applyJsdomShim, convertCircuitJsonTo3dSvg, useExportGltfUrl, useManifoldBoardBuilder, useSaveGltfAs };
85
+ export { CadViewer, type ManifoldGeoms, type ManifoldTextures, applyJsdomShim, convertCircuitJsonTo3dSvg, useExportGltfUrl, useManifoldBoardBuilder, useSaveGltfAs };