@tscircuit/3d-viewer 0.0.512 → 0.0.514

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 +26 -17
  2. package/dist/index.js +721 -1043
  3. 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 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;
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: LayerTextures | null;
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