@cognite/reveal 4.2.0-dev.20230413 → 4.2.0-dev.20230417

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.
@@ -1,10 +1,8 @@
1
1
  /*!
2
2
  * Adapted from pnext/three-loader (https://github.com/pnext/three-loader)
3
3
  */
4
- import { Camera, RawShaderMaterial, Texture, WebGLRenderer } from 'three';
5
- import { PointColorType, PointShape, PointSizeType } from './enums';
6
- import { PointClassification, IUniform, OctreeMaterialParams } from './types';
7
- import { PointCloudObjectAppearanceTexture } from './PointCloudObjectAppearanceTexture';
4
+ import { Texture } from 'three';
5
+ import { IUniform } from './types';
8
6
  import { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
9
7
  export interface IPointCloudMaterialParameters {
10
8
  size: number;
@@ -28,7 +26,6 @@ export interface IPointCloudMaterialUniforms {
28
26
  minSize: IUniform<number>;
29
27
  objectIdLUT: IUniform<Texture>;
30
28
  octreeSize: IUniform<number>;
31
- opacity: IUniform<number>;
32
29
  pcIndex: IUniform<number>;
33
30
  screenHeight: IUniform<number>;
34
31
  screenWidth: IUniform<number>;
@@ -37,85 +34,3 @@ export interface IPointCloudMaterialUniforms {
37
34
  visibleNodes: IUniform<Texture>;
38
35
  vnStart: IUniform<number>;
39
36
  }
40
- export declare class PointCloudMaterial extends RawShaderMaterial {
41
- private static readonly helperVec3;
42
- /**
43
- * Use the drawing buffer size instead of the dom client width and height when passing the screen height and screen width uniforms to the
44
- * shader. This is useful if you have offscreen canvases (which in some browsers return 0 as client width and client height).
45
- */
46
- useDrawingBufferSize: boolean;
47
- lights: boolean;
48
- fog: boolean;
49
- visibleNodesTexture: Texture | undefined;
50
- visibleNodeTextureOffsets: Map<string, number>;
51
- private readonly _gradient;
52
- private gradientTexture;
53
- private _objectAppearanceTexture;
54
- private _classification;
55
- private classificationTexture;
56
- uniforms: IPointCloudMaterialUniforms & Record<string, IUniform<any>>;
57
- fov: number;
58
- heightMax: number;
59
- heightMin: number;
60
- intensityBrightness: number;
61
- intensityContrast: number;
62
- intensityGamma: number;
63
- intensityRange: [number, number];
64
- maxSize: number;
65
- minSize: number;
66
- octreeSize: number;
67
- opacity: number;
68
- screenHeight: number;
69
- screenWidth: number;
70
- size: number;
71
- spacing: number;
72
- weighted: boolean;
73
- hqDepthPass: boolean;
74
- pointColorType: PointColorType;
75
- pointSizeType: PointSizeType;
76
- useEDL: boolean;
77
- shape: PointShape;
78
- attributes: {
79
- position: {
80
- type: string;
81
- value: never[];
82
- };
83
- color: {
84
- type: string;
85
- value: never[];
86
- };
87
- intensity: {
88
- type: string;
89
- value: never[];
90
- };
91
- classification: {
92
- type: string;
93
- value: never[];
94
- };
95
- objectId: {
96
- type: string;
97
- value: never[];
98
- };
99
- indices: {
100
- type: string;
101
- value: never[];
102
- };
103
- };
104
- constructor(parameters?: Partial<IPointCloudMaterialParameters>);
105
- dispose(): void;
106
- clearVisibleNodeTextureOffsets(): void;
107
- updateShaderSource(): void;
108
- applyDefines(shaderSrc: string): string;
109
- get objectAppearanceTexture(): PointCloudObjectAppearanceTexture;
110
- set objectAppearanceTexture(texture: PointCloudObjectAppearanceTexture);
111
- get classification(): PointClassification;
112
- set classification(value: PointClassification);
113
- private recomputeClassification;
114
- get elevationRange(): [number, number];
115
- set elevationRange(value: [number, number]);
116
- getUniform<K extends keyof IPointCloudMaterialUniforms>(name: K): IPointCloudMaterialUniforms[K]['value'];
117
- setUniform<K extends keyof IPointCloudMaterialUniforms>(name: K, value: IPointCloudMaterialUniforms[K]['value']): void;
118
- onBeforeRender(renderer: WebGLRenderer): void;
119
- updateMaterial(octreeParams: OctreeMaterialParams, visibilityTextureData: Uint8Array, camera: Camera): void;
120
- private updateVisibilityTextureData;
121
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.2.0-dev.20230413",
3
+ "version": "4.2.0-dev.20230417",
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": {