@cognite/reveal 4.1.1-dev.20230306 → 4.1.1-dev.20230308
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.
- package/dist/index.js +71 -71
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/Image360Facade.d.ts +1 -1
- package/dist/packages/360-images/src/cache/Image360LoadingCache.d.ts +2 -1
- package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +2 -3
- package/package.json +15 -15
|
@@ -16,7 +16,7 @@ export declare class Image360Facade<T> {
|
|
|
16
16
|
constructor(_entityFactory: Image360CollectionFactory<T>);
|
|
17
17
|
create(dataProviderFilter: T, postTransform?: THREE.Matrix4, preComputedRotation?: boolean): Promise<DefaultImage360Collection>;
|
|
18
18
|
delete(entity: Image360Entity): Promise<void>;
|
|
19
|
-
preload(entity: Image360Entity): Promise<void>;
|
|
19
|
+
preload(entity: Image360Entity, lockDownload?: boolean): Promise<void>;
|
|
20
20
|
intersect(coords: {
|
|
21
21
|
x: number;
|
|
22
22
|
y: number;
|
|
@@ -12,11 +12,12 @@ export declare class Image360LoadingCache {
|
|
|
12
12
|
private readonly _downloadCacheSize;
|
|
13
13
|
private readonly _loaded360Images;
|
|
14
14
|
private readonly _inProgressDownloads;
|
|
15
|
+
private _lockedDownload;
|
|
15
16
|
get cachedEntities(): Image360Entity[];
|
|
16
17
|
get currentlyLoadingEntities(): DownloadRequest[];
|
|
17
18
|
getDownloadInProgress(entity: Image360Entity): DownloadRequest | undefined;
|
|
18
19
|
constructor(_imageCacheSize?: number, _downloadCacheSize?: number);
|
|
19
|
-
cachedPreload(entity: Image360Entity): Promise<void>;
|
|
20
|
+
cachedPreload(entity: Image360Entity, lockDownload?: boolean): Promise<void>;
|
|
20
21
|
purge(entity: Image360Entity): Promise<void>;
|
|
21
22
|
private purgeLastRecentlyUsedInvisibleEntity;
|
|
22
23
|
private abortLastRecentlyReqestedEntity;
|
|
@@ -451,7 +451,7 @@ export declare class Cognite3DViewer {
|
|
|
451
451
|
requestRedraw(): void;
|
|
452
452
|
/**
|
|
453
453
|
* Convert a point in world space to its coordinates in the canvas. This can be used to place HTML objects near 3D objects on top of the 3D viewer.
|
|
454
|
-
* @see {@link https://www.w3schools.com/graphics/canvas_coordinates.asp
|
|
454
|
+
* @see {@link https://www.w3schools.com/graphics/canvas_coordinates.asp} For details on HTML Canvas Coordinates.
|
|
455
455
|
* @param point World space coordinate.
|
|
456
456
|
* @param normalize Optional. If true, coordinates are normalized into [0,1]. If false, the values are in the range [0, <canvas_size>).
|
|
457
457
|
* @returns Returns 2D coordinates if the point is visible on screen, or `null` if object is outside screen.
|
|
@@ -513,8 +513,7 @@ export declare class Cognite3DViewer {
|
|
|
513
513
|
* @param offsetY Y coordinate in pixels (relative to the domElement).
|
|
514
514
|
* @returns A promise that if there was an intersection then return the intersection object - otherwise it
|
|
515
515
|
* returns `null` if there were no intersections.
|
|
516
|
-
* @see {@link https://en.wikipedia.org/wiki/Ray_casting}.
|
|
517
|
-
*
|
|
516
|
+
* @see {@link https://en.wikipedia.org/wiki/Ray_casting} For more details on Ray casting.
|
|
518
517
|
* @example For CAD model
|
|
519
518
|
* ```js
|
|
520
519
|
* const offsetX = 50 // pixels from the left
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.1.1-dev.
|
|
3
|
+
"version": "4.1.1-dev.20230308",
|
|
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": {
|
|
@@ -75,56 +75,56 @@
|
|
|
75
75
|
"rxjs": "7.8.0",
|
|
76
76
|
"skmeans": "0.11.3",
|
|
77
77
|
"sparse-octree": "7.1.6",
|
|
78
|
-
"three-stdlib": "2.21.
|
|
78
|
+
"three-stdlib": "2.21.8"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@azure/msal-browser": "2.33.0",
|
|
82
|
-
"@cognite/sdk": "7.
|
|
82
|
+
"@cognite/sdk": "7.19.1",
|
|
83
83
|
"@microsoft/api-extractor": "^7.33.6",
|
|
84
84
|
"@types/dat.gui": "0.7.7",
|
|
85
85
|
"@types/gl": "^6.0.2",
|
|
86
|
-
"@types/glob": "8.
|
|
86
|
+
"@types/glob": "8.1.0",
|
|
87
87
|
"@types/jest": "29.4.0",
|
|
88
88
|
"@types/jest-environment-puppeteer": "5.0.3",
|
|
89
89
|
"@types/jest-image-snapshot": "6.1.0",
|
|
90
90
|
"@types/jsdom": "21.1.0",
|
|
91
91
|
"@types/lodash": "4.14.191",
|
|
92
92
|
"@types/mixpanel-browser": "2.38.1",
|
|
93
|
-
"@types/node": "18.
|
|
93
|
+
"@types/node": "18.14.5",
|
|
94
94
|
"@types/random-seed": "0.3.3",
|
|
95
95
|
"@types/skmeans": "0.11.4",
|
|
96
96
|
"@types/stats": "0.16.30",
|
|
97
97
|
"@types/three": "0.149.0",
|
|
98
98
|
"@types/tween.js": "18.5.1",
|
|
99
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
100
|
-
"@typescript-eslint/parser": "5.
|
|
99
|
+
"@typescript-eslint/eslint-plugin": "5.54.0",
|
|
100
|
+
"@typescript-eslint/parser": "5.54.0",
|
|
101
101
|
"concurrently": "7.6.0",
|
|
102
102
|
"cross-env": "7.0.3",
|
|
103
103
|
"dat.gui": "0.7.9",
|
|
104
|
-
"eslint": "8.
|
|
105
|
-
"eslint-config-prettier": "8.
|
|
104
|
+
"eslint": "8.35.0",
|
|
105
|
+
"eslint-config-prettier": "8.7.0",
|
|
106
106
|
"eslint-plugin-header": "3.1.1",
|
|
107
|
-
"eslint-plugin-jsdoc": "
|
|
107
|
+
"eslint-plugin-jsdoc": "40.0.1",
|
|
108
108
|
"eslint-plugin-lodash": "7.4.0",
|
|
109
109
|
"eslint-plugin-prettier": "4.2.1",
|
|
110
110
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
111
111
|
"file-loader": "6.2.0",
|
|
112
112
|
"gl": "6.0.2",
|
|
113
|
-
"glob": "
|
|
113
|
+
"glob": "9.2.1",
|
|
114
114
|
"glslify-loader": "2.0.0",
|
|
115
115
|
"html-webpack-plugin": "5.5.0",
|
|
116
116
|
"jest": "29.4.3",
|
|
117
117
|
"jest-canvas-mock": "2.4.0",
|
|
118
118
|
"jest-environment-jsdom": "29.4.3",
|
|
119
|
-
"jest-extended": "3.2.
|
|
119
|
+
"jest-extended": "3.2.4",
|
|
120
120
|
"jest-image-snapshot": "6.1.0",
|
|
121
|
-
"jest-puppeteer": "7.0.
|
|
121
|
+
"jest-puppeteer": "7.0.1",
|
|
122
122
|
"jsdom": "21.1.0",
|
|
123
123
|
"moq.ts": "10.0.2",
|
|
124
124
|
"nock": "13.3.0",
|
|
125
|
-
"prettier": "2.8.
|
|
125
|
+
"prettier": "2.8.4",
|
|
126
126
|
"process": "0.11.10",
|
|
127
|
-
"puppeteer": "19.7.
|
|
127
|
+
"puppeteer": "19.7.2",
|
|
128
128
|
"random-seed": "0.3.0",
|
|
129
129
|
"raw-loader": "4.0.2",
|
|
130
130
|
"remove-files-webpack-plugin": "1.5.0",
|