@tscircuit/3d-viewer 0.0.477 → 0.0.479

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +19 -21
  2. package/dist/index.js +610 -545
  3. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -44,6 +44,23 @@ declare function useExportGltfUrl(options?: Options): [
44
44
  error: ErrorEvent | undefined
45
45
  ];
46
46
 
47
+ interface LayerTextures {
48
+ topTrace?: THREE.CanvasTexture | null;
49
+ bottomTrace?: THREE.CanvasTexture | null;
50
+ topTraceWithMask?: THREE.CanvasTexture | null;
51
+ bottomTraceWithMask?: THREE.CanvasTexture | null;
52
+ topSilkscreen?: THREE.CanvasTexture | null;
53
+ bottomSilkscreen?: THREE.CanvasTexture | null;
54
+ topSoldermask?: THREE.CanvasTexture | null;
55
+ bottomSoldermask?: THREE.CanvasTexture | null;
56
+ topCopperText?: THREE.CanvasTexture | null;
57
+ bottomCopperText?: THREE.CanvasTexture | null;
58
+ topPanelOutlines?: THREE.CanvasTexture | null;
59
+ bottomPanelOutlines?: THREE.CanvasTexture | null;
60
+ topCopper?: THREE.CanvasTexture | null;
61
+ bottomCopper?: THREE.CanvasTexture | null;
62
+ }
63
+
47
64
  interface ManifoldGeoms {
48
65
  board?: {
49
66
  geometry: THREE.BufferGeometry;
@@ -66,29 +83,10 @@ interface ManifoldGeoms {
66
83
  geometry: THREE.BufferGeometry;
67
84
  color: THREE.Color;
68
85
  }>;
69
- copperPours?: Array<{
70
- key: string;
71
- geometry: THREE.BufferGeometry;
72
- color: THREE.Color;
73
- }>;
74
- }
75
- interface ManifoldTextures {
76
- topTrace?: THREE.CanvasTexture | null;
77
- bottomTrace?: THREE.CanvasTexture | null;
78
- topTraceWithMask?: THREE.CanvasTexture | null;
79
- bottomTraceWithMask?: THREE.CanvasTexture | null;
80
- topSilkscreen?: THREE.CanvasTexture | null;
81
- bottomSilkscreen?: THREE.CanvasTexture | null;
82
- topSoldermask?: THREE.CanvasTexture | null;
83
- bottomSoldermask?: THREE.CanvasTexture | null;
84
- topCopperText?: THREE.CanvasTexture | null;
85
- bottomCopperText?: THREE.CanvasTexture | null;
86
- topPanelOutlines?: THREE.CanvasTexture | null;
87
- bottomPanelOutlines?: THREE.CanvasTexture | null;
88
86
  }
89
87
  interface UseManifoldBoardBuilderResult {
90
88
  geoms: ManifoldGeoms | null;
91
- textures: ManifoldTextures | null;
89
+ textures: LayerTextures | null;
92
90
  pcbThickness: number | null;
93
91
  error: string | null;
94
92
  isLoading: boolean;
@@ -145,4 +143,4 @@ declare const useCameraSession: () => {
145
143
  handleControlsChange: () => void;
146
144
  };
147
145
 
148
- export { CadViewer, CameraAnimatorWithContext, CameraControllerProvider, type ManifoldGeoms, type ManifoldTextures, applyJsdomShim, convertCircuitJsonTo3dSvg, loadCameraFromSession, saveCameraToSession, useCameraController, useCameraSession, useExportGltfUrl, useManifoldBoardBuilder, useSaveGltfAs };
146
+ export { CadViewer, CameraAnimatorWithContext, CameraControllerProvider, type ManifoldGeoms, applyJsdomShim, convertCircuitJsonTo3dSvg, loadCameraFromSession, saveCameraToSession, useCameraController, useCameraSession, useExportGltfUrl, useManifoldBoardBuilder, useSaveGltfAs };