@yschindel/ara3d-webgl 1.3.9 → 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.
@@ -5,3 +5,4 @@ export { DefaultInputScheme, KEYS } from './viewer/inputs/input';
5
5
  export * from './viewer/viewerSettings';
6
6
  export * from './loader/gltfLoader';
7
7
  export * from './loader/bimOpenSchemaLoader';
8
+ export { BimGhostController } from './loader/bimGhostController';
@@ -3,6 +3,7 @@ export interface BimGeometry {
3
3
  InstanceMaterialIndex: Int32Array;
4
4
  InstanceMeshIndex: Int32Array;
5
5
  InstanceTransformIndex: Int32Array;
6
+ InstanceGlobalId?: string[];
6
7
  VertexX: Int32Array;
7
8
  VertexY: Int32Array;
8
9
  VertexZ: Int32Array;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yschindel/ara3d-webgl",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "A 3D viewer designed for large architectural (BIM) models built on top of Three.JS.",
5
5
  "files": [
6
6
  "dist"