@thatopen/components 2.0.0-alpha.8 → 2.0.0-alpha.9

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.
@@ -6,7 +6,7 @@ import { Component, Components, Disposable, Event } from "../../core";
6
6
  * A simple implementation of bounding box that works for fragments. The resulting bbox is not 100% precise, but
7
7
  * it's fast, and should suffice for general use cases such as camera zooming or general boundary determination.
8
8
  */
9
- export declare class FragmentBoundingBox extends Component implements Disposable {
9
+ export declare class BoundingBoxes extends Component implements Disposable {
10
10
  static readonly uuid: "d1444724-dba6-4cdd-a0c7-68ee1450d166";
11
11
  /** {@link Component.enabled} */
12
12
  enabled: boolean;
@@ -31,6 +31,6 @@ export declare class FragmentBoundingBox extends Component implements Disposable
31
31
  getMesh(): THREE.Mesh<THREE.BoxGeometry, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
32
32
  reset(): void;
33
33
  add(group: FragmentsGroup): void;
34
- addMesh(mesh: THREE.InstancedMesh | THREE.Mesh | FRAGS.CurveMesh): void;
34
+ addMesh(mesh: THREE.InstancedMesh | THREE.Mesh | FRAGS.CurveMesh, itemIDs?: Iterable<number>): void;
35
35
  private static getFragmentBounds;
36
36
  }
@@ -25,7 +25,7 @@ export declare class FragmentClassifier extends Component implements Disposable
25
25
  byEntity(group: FRAGS.FragmentsGroup): void;
26
26
  byStorey(group: FRAGS.FragmentsGroup): void;
27
27
  byIfcRel(group: FRAGS.FragmentsGroup, ifcRel: number, systemName: string): Promise<void>;
28
- setColor(items: FRAGS.FragmentIdMap, color: THREE.Color, _override?: boolean): void;
28
+ setColor(items: FRAGS.FragmentIdMap, color: THREE.Color, override?: boolean): void;
29
29
  resetColor(items: FRAGS.FragmentIdMap): void;
30
30
  private saveItem;
31
31
  }
@@ -1,4 +1,4 @@
1
- export * from "./FragmentBoundingBox";
1
+ export * from "./BoundingBoxes";
2
2
  export * from "./FragmentClassifier";
3
3
  export * from "./FragmentExploder";
4
4
  export * from "./FragmentHider";