@cognite/reveal 4.27.0-dev.20250924 → 4.27.0

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns a fingerprint based on the current browser. This is can be used to
3
+ * distinguish between different users. However, it is not 100% reliable,
4
+ * and can produce duplicates for distinct users.
5
+ *
6
+ * See https://broprintjs.netlify.app/
7
+ */
8
+ export declare function getUserFingerprint(): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.27.0-dev.20250924",
3
+ "version": "4.27.0",
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": {
@@ -63,6 +63,7 @@
63
63
  "ws:lint": "cd $INIT_CWD && eslint . --ext .ts,.js --max-warnings 0 --cache"
64
64
  },
65
65
  "dependencies": {
66
+ "@rajesh896/broprint.js": "^2.1.1",
66
67
  "@tweenjs/tween.js": "^25.0.0",
67
68
  "assert": "^2.1.0",
68
69
  "async-mutex": "^0.5.0",
@@ -156,6 +157,6 @@
156
157
  ],
157
158
  "packageManager": "yarn@4.9.4",
158
159
  "resolutions": {
159
- "binary-install/axios": "^1.0.0"
160
+ "binary-install/axios": "^0.30.0"
160
161
  }
161
162
  }
@@ -1,5 +0,0 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- import { PartialOfflineAudioContext } from './types';
5
- export declare function generateAudioFingerprint(OfflineAudioContextCtor: PartialOfflineAudioContext): Promise<string>;
@@ -1,5 +0,0 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- import { PartialDocument } from './types';
5
- export declare function generateCanvasFingerprint(doc: PartialDocument): string;
@@ -1,2 +0,0 @@
1
- import { GlobalDependencies } from './types';
2
- export declare function getUserFingerprint(dependencies?: Partial<GlobalDependencies>): Promise<string>;
@@ -1,4 +0,0 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- export declare function hashFingerprint(str: string, seed?: number): number;
@@ -1,4 +0,0 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- export { getUserFingerprint } from './getUserFingerprint';
@@ -1,27 +0,0 @@
1
- /*!
2
- * Copyright 2025 Cognite AS
3
- */
4
- export type RequiredOfflineAudioContext = Pick<OfflineAudioContext, 'currentTime' | 'destination' | 'createOscillator' | 'createDynamicsCompressor' | 'startRendering'>;
5
- export type OfflineAudioContextCompressorInstance = ReturnType<RequiredOfflineAudioContext['createDynamicsCompressor']>;
6
- export type RequiredDynamicsCompressorNode = Pick<DynamicsCompressorNode, 'threshold' | 'knee' | 'ratio' | 'attack' | 'release' | 'connect'>;
7
- export type GetContextReturnType = Pick<CanvasRenderingContext2D, 'textBaseline' | 'font' | 'fillStyle' | 'fillRect' | 'fillText'>;
8
- export type PartialDocument = {
9
- createElement: (type: 'canvas') => {
10
- getContext: (type: '2d') => GetContextReturnType;
11
- toDataURL: () => string;
12
- };
13
- };
14
- export type PartialOfflineAudioContextInstance = {
15
- currentTime: RequiredOfflineAudioContext['currentTime'];
16
- destination: RequiredOfflineAudioContext['destination'];
17
- createOscillator: () => ReturnType<RequiredOfflineAudioContext['createOscillator']>;
18
- createDynamicsCompressor: () => ReturnType<RequiredOfflineAudioContext['createDynamicsCompressor']>;
19
- startRendering: () => Promise<AudioBuffer>;
20
- };
21
- export type PartialOfflineAudioContext = {
22
- new (numberOfChannels: number, length: number, sampleRate: number): PartialOfflineAudioContextInstance;
23
- };
24
- export type GlobalDependencies = {
25
- document: PartialDocument;
26
- OfflineAudioContext: PartialOfflineAudioContext;
27
- };