@tscircuit/3d-viewer 0.0.579 → 0.0.581
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 +4 -2
- package/dist/index.js +2029 -1830
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default from 'react';
|
|
3
2
|
import { AnyCircuitElement, PcbBoard } from 'circuit-json';
|
|
4
3
|
import * as THREE from 'three';
|
|
5
4
|
import { GLTFExporterOptions } from 'three-stdlib';
|
|
@@ -7,7 +6,7 @@ import { ManifoldToplevel } from 'manifold-3d';
|
|
|
7
6
|
import { JSDOM } from 'jsdom';
|
|
8
7
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
9
8
|
|
|
10
|
-
declare const CadViewer: (props: any) =>
|
|
9
|
+
declare const CadViewer: (props: any) => React.JSX.Element;
|
|
11
10
|
|
|
12
11
|
interface CircuitToSvgOptions {
|
|
13
12
|
width?: number;
|
|
@@ -70,6 +69,9 @@ interface LayerVisibilityState {
|
|
|
70
69
|
interface CombinedBoardTextures {
|
|
71
70
|
topBoard?: THREE.CanvasTexture | null;
|
|
72
71
|
bottomBoard?: THREE.CanvasTexture | null;
|
|
72
|
+
/** Geometry-only alpha masks used for relief, never as color maps. */
|
|
73
|
+
topMaskedCopper?: THREE.CanvasTexture | null;
|
|
74
|
+
bottomMaskedCopper?: THREE.CanvasTexture | null;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
interface ManifoldGeoms {
|