@cognite/reveal 4.28.5-dev.20251205 → 4.28.6
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 +75 -75
- package/dist/index.js.map +1 -1
- package/dist/packages/cad-model/src/wrappers/CadNode.d.ts +2 -2
- package/dist/packages/cad-styling/index.d.ts +3 -0
- package/dist/packages/{rendering/src/rendering → cad-styling/src}/NodeAppearanceTextureBuilder.d.ts +3 -2
- package/dist/packages/pointclouds/src/potree-three-loader/Potree.d.ts +4 -0
- package/dist/packages/rendering/index.d.ts +0 -1
- package/dist/packages/rendering/src/CadMaterialManager.d.ts +1 -2
- package/dist/packages/rendering/src/pointcloud-rendering/constants.d.ts +3 -3
- package/package.json +1 -1
- /package/dist/packages/{rendering → cad-styling}/src/transform/NodeTransformProvider.d.ts +0 -0
- /package/dist/packages/{rendering → cad-styling}/src/transform/NodeTransformTextureBuilder.d.ts +0 -0
- /package/dist/packages/{rendering → cad-styling}/src/transform/TransformOverrideBuffer.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { NodeAppearanceProvider, NodeAppearance, PrioritizedArea } from '../../../cad-styling';
|
|
4
|
+
import { NodeAppearanceProvider, NodeAppearance, PrioritizedArea, type NodeTransformProvider } from '../../../cad-styling';
|
|
5
5
|
import { SectorScene, CadModelMetadata, RootSectorNode, WantedSector, ConsumedSector } from '../../../cad-parsers';
|
|
6
6
|
import { SectorRepository } from '../../../sector-loader';
|
|
7
7
|
import { ParsedGeometry } from '../../../sector-parser';
|
|
8
|
-
import { CadMaterialManager,
|
|
8
|
+
import { CadMaterialManager, RenderMode } from '../../../rendering';
|
|
9
9
|
import { Group, Object3D, Plane, Matrix4, Object3DEventMap } from 'three';
|
|
10
10
|
import { TreeIndexToSectorsMap } from '../utilities/TreeIndexToSectorsMap';
|
|
11
11
|
import { ParsedMeshGeometry } from '../../../cad-parsers';
|
|
@@ -22,3 +22,6 @@ export { AreaCollection } from './src/prioritized/AreaCollection';
|
|
|
22
22
|
export { EmptyAreaCollection } from './src/prioritized/EmptyAreaCollection';
|
|
23
23
|
export { ClusteredAreaCollection } from './src/prioritized/ClusteredAreaCollection';
|
|
24
24
|
export { PrioritizedArea } from './src/prioritized/types';
|
|
25
|
+
export { NodeTransformProvider } from './src/transform/NodeTransformProvider';
|
|
26
|
+
export { NodeTransformTextureBuilder } from './src/transform/NodeTransformTextureBuilder';
|
|
27
|
+
export { NodeAppearanceTextureBuilder } from './src/NodeAppearanceTextureBuilder';
|
package/dist/packages/{rendering/src/rendering → cad-styling/src}/NodeAppearanceTextureBuilder.d.ts
RENAMED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { IndexSet } from '
|
|
6
|
-
import {
|
|
5
|
+
import { IndexSet } from '../../utilities';
|
|
6
|
+
import { type NodeAppearance } from './NodeAppearance';
|
|
7
|
+
import type { NodeAppearanceProvider } from './NodeAppearanceProvider';
|
|
7
8
|
export declare class NodeAppearanceTextureBuilder {
|
|
8
9
|
private _defaultAppearance;
|
|
9
10
|
private readonly _styleProvider;
|
|
@@ -19,6 +19,9 @@ export declare class Potree implements IPotree {
|
|
|
19
19
|
private readonly _materialManager;
|
|
20
20
|
private _throttledUpdateFunc;
|
|
21
21
|
private _shouldLoad;
|
|
22
|
+
private _updateInProgress;
|
|
23
|
+
private readonly _tempCameraForward;
|
|
24
|
+
private readonly _tempToNode;
|
|
22
25
|
maxNumNodesLoading: number;
|
|
23
26
|
lru: LRU;
|
|
24
27
|
constructor(modelDataProvider: ModelDataProvider, pointCloudMaterialManager: PointCloudMaterialManager);
|
|
@@ -26,6 +29,7 @@ export declare class Potree implements IPotree {
|
|
|
26
29
|
loadPointCloud(baseUrl: string, fileName: string, stylableObject: StylableObject[], modelIdentifier: symbol): Promise<PointCloudOctree>;
|
|
27
30
|
updatePointClouds(pointClouds: PointCloudOctree[], camera: Camera, renderer: WebGLRenderer): void;
|
|
28
31
|
set shouldLoad(value: boolean);
|
|
32
|
+
private createEmptyVisibilityResult;
|
|
29
33
|
private innerUpdatePointClouds;
|
|
30
34
|
get pointBudget(): number;
|
|
31
35
|
set pointBudget(value: number);
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { CadMaterialManager } from './src/CadMaterialManager';
|
|
5
5
|
export { PointCloudMaterialManager } from './src/PointCloudMaterialManager';
|
|
6
|
-
export { NodeTransformProvider } from './src/transform/NodeTransformProvider';
|
|
7
6
|
export { RenderOptions, defaultRenderOptions, SsaoParameters, SsaoSampleQuality, AntiAliasingMode, EdlOptions } from './src/rendering/types';
|
|
8
7
|
export * from './src/pointcloud-rendering/constants';
|
|
9
8
|
export * from './src/pointcloud-rendering/enums';
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import { NodeTransformProvider } from './transform/NodeTransformProvider';
|
|
6
5
|
import { Materials } from './rendering/materials';
|
|
7
6
|
import { RenderMode } from './rendering/RenderMode';
|
|
8
|
-
import { NodeAppearance, NodeAppearanceProvider } from '../../cad-styling';
|
|
7
|
+
import { NodeAppearance, NodeAppearanceProvider, NodeTransformProvider } from '../../cad-styling';
|
|
9
8
|
import { IndexSet } from '../../utilities';
|
|
10
9
|
export declare class CadMaterialManager {
|
|
11
10
|
private readonly _events;
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Adapted from pnext/three-loader (https://github.com/pnext/three-loader)
|
|
3
3
|
*/
|
|
4
4
|
import { Color } from 'three';
|
|
5
|
-
export declare const DEFAULT_MAX_POINT_SIZE =
|
|
5
|
+
export declare const DEFAULT_MAX_POINT_SIZE = 10;
|
|
6
6
|
export declare const DEFAULT_MIN_NODE_PIXEL_SIZE = 50;
|
|
7
7
|
export declare const DEFAULT_MIN_POINT_SIZE = 1;
|
|
8
8
|
export declare const DEFAULT_PICK_WINDOW_SIZE = 15;
|
|
9
9
|
export declare const DEFAULT_POINT_BUDGET = 3000000;
|
|
10
|
-
export declare const MAX_LOADS_TO_GPU =
|
|
10
|
+
export declare const MAX_LOADS_TO_GPU = 15;
|
|
11
11
|
export declare const MAX_NUM_NODES_LOADING = 8;
|
|
12
12
|
export declare const UPDATE_THROTTLE_TIME_MS = 100;
|
|
13
13
|
export declare const PERSPECTIVE_CAMERA = "PerspectiveCamera";
|
|
14
14
|
export declare const COLOR_BLACK: Color;
|
|
15
15
|
export declare const COLOR_WHITE: Color;
|
|
16
|
-
export declare const DEFAULT_EDL_NEIGHBOURS_COUNT =
|
|
16
|
+
export declare const DEFAULT_EDL_NEIGHBOURS_COUNT = 16;
|
|
17
17
|
export declare const OBJECT_STYLING_TEXTURE_WIDTH = 256;
|
|
18
18
|
export declare const OBJECT_STYLING_TEXTURE_HEIGHT = 256;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.28.
|
|
3
|
+
"version": "4.28.6",
|
|
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": {
|
|
File without changes
|
/package/dist/packages/{rendering → cad-styling}/src/transform/NodeTransformTextureBuilder.d.ts
RENAMED
|
File without changes
|
|
File without changes
|