@cognite/reveal 4.39.0 → 4.39.2

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.
@@ -8,6 +8,7 @@ export type Image360FaceWithUrl = Image360Face & {
8
8
  export declare function hasDownloadUrl(face: Image360Face): face is Image360FaceWithUrl;
9
9
  export interface FaceTextureLoader {
10
10
  load(face: Image360Face, onFirstFaceReady?: () => void, onJpegTypeDetected?: (type: JpegType) => void, abortSignal?: AbortSignal): Promise<Image360Texture>;
11
+ disposeTexture(texture: Texture): void;
11
12
  }
12
13
  /**
13
14
  * Handles all texture loading for 360 image cube faces:
@@ -21,14 +22,17 @@ export declare class Image360FaceTextureLoader implements FaceTextureLoader {
21
22
  private readonly _updateFaceTexture;
22
23
  private readonly _isMeshAlive;
23
24
  private readonly MAX_MOBILE_IMAGE_SIZE;
25
+ private readonly _intermediateTextures;
24
26
  constructor(_device: DeviceDescriptor, _textureLoader: TextureLoader, _onUpdate: () => void, _updateFaceTexture: (face: Image360Face['face'], texture: Texture) => void, _isMeshAlive: () => boolean);
27
+ disposeTexture(texture: Texture): void;
25
28
  /**
26
29
  * Loads a texture for a single cube face. Automatically selects the streaming path when
27
30
  * face has a downloadUrl (progressive/baseline JPEG detection) or decodes from in-memory buffer otherwise.
28
31
  */
29
32
  load(face: Image360Face, onFirstFaceReady?: () => void, onJpegTypeDetected?: (type: JpegType) => void, abortSignal?: AbortSignal): Promise<Image360Texture>;
30
33
  private loadFromBuffer;
34
+ private decodeTexture;
31
35
  private streamFaceTexture;
32
- private finalizeTexture;
36
+ private throwIfNoLongerNeeded;
33
37
  private applyBitmapToTexture;
34
38
  }
@@ -58,6 +58,7 @@ export declare class Image360RevisionEntity<T extends DataSourceType> implements
58
58
  * Clear the cached textures used by this revision.
59
59
  */
60
60
  dispose(): void;
61
+ disposeGpuResources(): void;
61
62
  /**
62
63
  * Apply cached textures to the image360VisualizationBox.
63
64
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.39.0",
3
+ "version": "4.39.2",
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": {
@@ -95,7 +95,7 @@
95
95
  "eslint-plugin-unused-imports": "^4.0.0",
96
96
  "globals": "^17.0.0",
97
97
  "typescript-eslint": "^8.0.0",
98
- "glob": "^13.0.0",
98
+ "glob": "^14.0.0",
99
99
  "happy-dom": "^21.0.0",
100
100
  "moq.ts": "10.0.8",
101
101
  "prettier": "^3.2.5",
@@ -117,5 +117,5 @@
117
117
  "files": [
118
118
  "dist"
119
119
  ],
120
- "packageManager": "pnpm@12.15.0"
120
+ "packageManager": "pnpm@12.17.0"
121
121
  }