@yschindel/ara3d-webgl 1.3.8 → 1.3.10
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/ara3d-webgl.mjs +4599 -4486
- package/dist/ara3d-webgl.mjs.map +1 -1
- package/dist/ara3d-webgl.umd.js +153 -148
- package/dist/ara3d-webgl.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/loader/bimGeometry.d.ts +1 -0
- package/dist/types/loader/bimGhostController.d.ts +21 -0
- package/dist/types/loader/ghostMaterial.d.ts +6 -0
- package/dist/types/viewer/viewerSettings.d.ts +4 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Controller for ghosting/isolation of BIM elements by GlobalId.
|
|
4
|
+
* Allows focusing on specific elements while ghosting all others.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BimGhostController {
|
|
7
|
+
private root;
|
|
8
|
+
private globalIdToEntityIndex;
|
|
9
|
+
private entityToInstances;
|
|
10
|
+
constructor(root: THREE.Group);
|
|
11
|
+
/**
|
|
12
|
+
* Isolate elements: show these at full opacity, ghost everything else.
|
|
13
|
+
* @param globalIds Array of GlobalIds to keep at full opacity
|
|
14
|
+
* @param ghostOpacity Opacity for ghosted elements (default 0.1)
|
|
15
|
+
*/
|
|
16
|
+
isolate(globalIds: string[], ghostOpacity?: number): void;
|
|
17
|
+
/**
|
|
18
|
+
* Clear isolation: show all elements at full opacity.
|
|
19
|
+
*/
|
|
20
|
+
clearIsolation(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a material that supports per-instance opacity via instanceOpacity attribute.
|
|
4
|
+
* This allows ghosting individual instances within an InstancedMesh.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createGhostableMaterial(baseMaterial: THREE.MeshStandardMaterial): THREE.MeshStandardMaterial;
|
|
@@ -147,6 +147,10 @@ export type Settings = {
|
|
|
147
147
|
* Tone mapping exposure value
|
|
148
148
|
*/
|
|
149
149
|
toneMappingExposure: number;
|
|
150
|
+
/**
|
|
151
|
+
* Output color space for the renderer
|
|
152
|
+
*/
|
|
153
|
+
outputColorSpace: THREE.ColorSpace;
|
|
150
154
|
};
|
|
151
155
|
};
|
|
152
156
|
export type PartialSettings = RecursivePartial<Settings>;
|