@cognite/reveal 4.0.0-dev.20221116 → 4.0.0-dev.20221117

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.
@@ -38,7 +38,9 @@ export declare class Image360Entity {
38
38
  * Disables the unit inverted cube which contains the 360 image.
39
39
  */
40
40
  deactivate360Image(): Promise<void>;
41
- private load360Image;
41
+ load360Image(): Promise<void>;
42
+ unload360Image(): Promise<void>;
43
+ dispose(): Promise<void>;
42
44
  private createImage360VisualizationObject;
43
45
  private computeTransform;
44
46
  }
@@ -8,11 +8,13 @@ export declare class Image360Facade<T> {
8
8
  private readonly _entityFactory;
9
9
  private readonly _image360Entities;
10
10
  private readonly _rayCaster;
11
+ private readonly _image360Cache;
11
12
  set allIconsVisibility(visible: boolean);
12
13
  set allHoverIconsVisibility(visible: boolean);
13
- constructor(entityFactory: Image360EntityFactory<T>);
14
+ constructor(_entityFactory: Image360EntityFactory<T>);
14
15
  create(dataProviderFilter: T, postTransform?: THREE.Matrix4, preComputedRotation?: boolean): Promise<Image360Entity[]>;
15
- delete(entity: Image360Entity): void;
16
+ delete(entity: Image360Entity): Promise<void>;
17
+ preload(entity: Image360Entity): Promise<void>;
16
18
  intersect(coords: {
17
19
  x: number;
18
20
  y: number;
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright 2022 Cognite AS
3
+ */
4
+ import { Image360Entity } from './Image360Entity';
5
+ export declare class Image360LoadingCache {
6
+ private readonly _cacheSize;
7
+ private readonly _loaded360Images;
8
+ private readonly _inFlightEntities;
9
+ get cachedEntities(): Image360Entity[];
10
+ get currentlyLoadingEntities(): Set<Image360Entity>;
11
+ constructor(_cacheSize?: number);
12
+ cachedPreload(entity: Image360Entity): Promise<void>;
13
+ }
@@ -11,7 +11,6 @@ export { PointCloudIntersection } from './src/PointCloudIntersection';
11
11
  export { CognitePointCloudModel } from './src/CognitePointCloudModel';
12
12
  export { PotreeNodeWrapper } from './src/PotreeNodeWrapper';
13
13
  export { PotreeGroupWrapper } from './src/PotreeGroupWrapper';
14
- export { Potree, PointCloudOctree } from './src/PotreePnextLoader';
15
14
  export { PointCloudFactory } from './src/PointCloudFactory';
16
15
  export { IPointClassificationsProvider } from './src/classificationsProviders/IPointClassificationsProvider';
17
16
  export { LocalPointClassificationsProvider } from './src/classificationsProviders/LocalPointClassificationsProvider';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.0.0-dev.20221116",
3
+ "version": "4.0.0-dev.20221117",
4
4
  "description": "WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.",
5
5
  "homepage": "https://github.com/cognitedata/reveal/tree/master/viewer",
6
6
  "repository": {
@@ -84,7 +84,7 @@
84
84
  "three-stdlib": "2.17.3"
85
85
  },
86
86
  "devDependencies": {
87
- "@azure/msal-browser": "2.30.0",
87
+ "@azure/msal-browser": "2.31.0",
88
88
  "@cognite/sdk": "7.11.0",
89
89
  "@cognite/sdk-core": "4.4.0",
90
90
  "@types/dat.gui": "0.7.7",
@@ -1,4 +0,0 @@
1
- /*!
2
- * Copyright 2022 Cognite AS
3
- */
4
- export { Potree, PointCloudOctree } from './potree-three-loader';