@cognite/reveal 4.0.0-dev.20221215 → 4.0.0-dev.20221219
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 +7 -7
- package/dist/index.js.map +1 -1
- package/dist/packages/cad-geometry-loaders/src/CadManager.d.ts +2 -1
- package/dist/packages/cad-geometry-loaders/src/InternalRevealCadOptions.d.ts +1 -1
- package/dist/packages/cad-parsers/src/utilities/SectorScene.d.ts +11 -0
- package/dist/packages/camera-manager/src/ComboControls.d.ts +1 -1
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/DummyPointCloudStylableObjectProvider.d.ts +1 -1
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudMaterial.d.ts +1 -1
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts +1 -1
- package/package.json +9 -8
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { CadModelMetadata } from '../../cad-parsers';
|
|
7
|
-
import { CadModelUpdateHandler
|
|
7
|
+
import { CadModelUpdateHandler } from './CadModelUpdateHandler';
|
|
8
8
|
import { LoadingState } from '../../model-base';
|
|
9
9
|
import { CadMaterialManager, RenderMode } from '../../rendering';
|
|
10
10
|
import { ModelIdentifier } from '../../data-providers';
|
|
11
|
+
import { CadModelBudget } from './CadModelBudget';
|
|
11
12
|
import { CadModelFactory, CadModelSectorLoadStatistics, CadNode, GeometryFilter } from '../../cad-model';
|
|
12
13
|
export declare class CadManager {
|
|
13
14
|
private readonly _materialManager;
|
|
@@ -19,5 +19,16 @@ export declare class SectorSceneImpl implements SectorScene {
|
|
|
19
19
|
getSectorsIntersectingBox(b: THREE.Box3): SectorMetadata[];
|
|
20
20
|
getBoundsOfMostGeometry(): THREE.Box3;
|
|
21
21
|
getSectorsIntersectingFrustum(projectionMatrix: THREE.Matrix4, inverseCameraModelMatrix: THREE.Matrix4): SectorMetadata[];
|
|
22
|
+
/**
|
|
23
|
+
* Recursive intersection detection.
|
|
24
|
+
*/
|
|
25
|
+
private detectIntersectingBounds;
|
|
26
|
+
/**
|
|
27
|
+
* Use kmeans to group inputBounds into clusters.
|
|
28
|
+
*
|
|
29
|
+
* @param inBounds The bounds to be grouped into clusters.
|
|
30
|
+
* @returns Both the list of cluster bounds and the cluster with the highest node count
|
|
31
|
+
*/
|
|
32
|
+
private generateClusters;
|
|
22
33
|
private computeBoundsOfMostGeometry;
|
|
23
34
|
}
|
|
@@ -76,7 +76,7 @@ export declare class ComboControls extends EventDispatcher {
|
|
|
76
76
|
private readonly _scrollTarget;
|
|
77
77
|
private readonly _targetEnd;
|
|
78
78
|
private readonly _spherical;
|
|
79
|
-
private _sphericalEnd;
|
|
79
|
+
private readonly _sphericalEnd;
|
|
80
80
|
private readonly _deltaTarget;
|
|
81
81
|
private readonly _rawCameraRotation;
|
|
82
82
|
private readonly _keyboard;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { ModelIdentifier } from '
|
|
4
|
+
import { ModelIdentifier } from '../ModelIdentifier';
|
|
5
5
|
import { PointCloudStylableObjectProvider } from '../PointCloudStylableObjectProvider';
|
|
6
6
|
import { PointCloudObject } from './types';
|
|
7
7
|
export declare class DummyPointCloudStylableObjectProvider implements PointCloudStylableObjectProvider {
|
|
@@ -5,7 +5,7 @@ import { Camera, RawShaderMaterial, Texture, WebGLRenderer } from 'three';
|
|
|
5
5
|
import { PointColorType, PointShape, PointSizeType } from './enums';
|
|
6
6
|
import { PointClassification, IUniform, OctreeMaterialParams } from './types';
|
|
7
7
|
import { PointCloudObjectAppearanceTexture } from './PointCloudObjectAppearanceTexture';
|
|
8
|
-
import { PointCloudObjectIdMaps } from '
|
|
8
|
+
import { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
|
|
9
9
|
export interface IPointCloudMaterialParameters {
|
|
10
10
|
size: number;
|
|
11
11
|
minSize: number;
|
package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as THREE from 'three';
|
|
|
5
5
|
import { StyledPointCloudObjectCollection, PointCloudObjectCollection, CompletePointCloudAppearance } from '../../../pointcloud-styling';
|
|
6
6
|
import { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
|
|
7
7
|
export declare class PointCloudObjectAppearanceTexture {
|
|
8
|
-
private _objectStyleTexture;
|
|
8
|
+
private readonly _objectStyleTexture;
|
|
9
9
|
private _needsReconstruction;
|
|
10
10
|
private readonly _styledObjectSets;
|
|
11
11
|
private _defaultAppearance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.0.0-dev.
|
|
3
|
+
"version": "4.0.0-dev.20221219",
|
|
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": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@azure/msal-browser": "2.32.1",
|
|
89
|
-
"@cognite/sdk": "7.
|
|
89
|
+
"@cognite/sdk": "7.14.0",
|
|
90
90
|
"@microsoft/api-extractor": "^7.33.6",
|
|
91
91
|
"@types/dat.gui": "0.7.7",
|
|
92
92
|
"@types/expect-puppeteer": "5.0.2",
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
"@types/skmeans": "0.11.3",
|
|
104
104
|
"@types/stats": "0.16.30",
|
|
105
105
|
"@types/tween.js": "18.5.1",
|
|
106
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
107
|
-
"@typescript-eslint/parser": "5.
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "5.46.0",
|
|
107
|
+
"@typescript-eslint/parser": "5.46.0",
|
|
108
108
|
"concurrently": "7.6.0",
|
|
109
109
|
"cross-env": "7.0.3",
|
|
110
110
|
"cross-var": "1.1.0",
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
"jest-environment-jsdom": "29.3.1",
|
|
127
127
|
"jest-extended": "3.2.0",
|
|
128
128
|
"jest-image-snapshot": "6.1.0",
|
|
129
|
-
"jest-puppeteer": "6.
|
|
129
|
+
"jest-puppeteer": "6.2.0",
|
|
130
130
|
"jsdom": "20.0.3",
|
|
131
131
|
"moq.ts": "9.0.2",
|
|
132
132
|
"nock": "13.2.9",
|
|
133
133
|
"prettier": "2.8.1",
|
|
134
134
|
"process": "0.11.10",
|
|
135
|
-
"puppeteer": "19.
|
|
135
|
+
"puppeteer": "19.4.0",
|
|
136
136
|
"random-seed": "0.3.0",
|
|
137
137
|
"raw-loader": "4.0.2",
|
|
138
138
|
"remove-files-webpack-plugin": "1.5.0",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"workerize-loader": "2.0.2"
|
|
154
154
|
},
|
|
155
155
|
"peerDependencies": {
|
|
156
|
-
"@cognite/sdk": "7.
|
|
156
|
+
"@cognite/sdk": "7.14.0",
|
|
157
157
|
"three": "0.146.0"
|
|
158
158
|
},
|
|
159
159
|
"glslify": {
|
|
@@ -163,5 +163,6 @@
|
|
|
163
163
|
},
|
|
164
164
|
"files": [
|
|
165
165
|
"./dist/*"
|
|
166
|
-
]
|
|
166
|
+
],
|
|
167
|
+
"packageManager": "yarn@3.3.0"
|
|
167
168
|
}
|