@cognite/reveal 4.0.0-dev.20221216 → 4.0.0-dev.20221220

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.
@@ -48,6 +48,7 @@ export declare class Cognite3DViewer {
48
48
  private readonly _revealManagerHelper;
49
49
  private readonly _domElement;
50
50
  private readonly _renderer;
51
+ private readonly _ownsRenderer;
51
52
  private readonly _pickingHandler;
52
53
  private readonly _pointCloudPickingHandler;
53
54
  private readonly _boundAnimate;
@@ -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, CadModelBudget } from '../../cad-geometry-loaders';
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;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright 2022 Cognite AS
3
3
  */
4
- import { SectorCuller } from '../../cad-geometry-loaders';
4
+ import { SectorCuller } from './sector/culling/SectorCuller';
5
5
  export type InternalRevealCadOptions = {
6
6
  sectorCuller?: SectorCuller;
7
7
  };
@@ -16,7 +16,9 @@ export declare class CadNode extends Object3D {
16
16
  private _geometryBatchingManager?;
17
17
  private readonly _sourceTransform;
18
18
  private readonly _customTransform;
19
+ private _needsRedraw;
19
20
  constructor(model: CadModelMetadata, materialManager: CadMaterialManager, sectorRepository: SectorRepository);
21
+ get needsRedraw(): boolean;
20
22
  get nodeTransformProvider(): NodeTransformProvider;
21
23
  get nodeAppearanceProvider(): NodeAppearanceProvider;
22
24
  get defaultNodeAppearance(): NodeAppearance;
@@ -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 '../../../data-providers';
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 {
@@ -37,6 +37,11 @@ export declare class PointCloudOctree extends PointCloudTree {
37
37
  toTreeNode(geometryNode: IPointCloudTreeGeometryNode, parent?: IPointCloudTreeNode | null): IPointCloudTreeNode;
38
38
  updateVisibleBounds(): void;
39
39
  updateBoundingBoxes(): void;
40
+ updateMatricesForDescendants(): void;
41
+ /**
42
+ * Override updateMatrixWorld to not update children recursively. Child transformations
43
+ * are defined in relation to the base octree, and are instead updated using updateMatricesfordescendants()
44
+ */
40
45
  updateMatrixWorld(force: boolean): void;
41
46
  hideDescendants(object: Object3D): void;
42
47
  moveToOrigin(): void;
@@ -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 '../../../rendering';
8
+ import { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
9
9
  export interface IPointCloudMaterialParameters {
10
10
  size: number;
11
11
  minSize: number;
@@ -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.20221216",
3
+ "version": "4.0.0-dev.20221220",
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": {
@@ -80,9 +80,9 @@
80
80
  "mixpanel-browser": "2.45.0",
81
81
  "path-browserify": "1.0.1",
82
82
  "proj4": "2.8.0",
83
- "rxjs": "7.5.7",
83
+ "rxjs": "7.6.0",
84
84
  "skmeans": "0.11.3",
85
- "three-stdlib": "2.19.0"
85
+ "three-stdlib": "2.20.4"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@azure/msal-browser": "2.32.1",
@@ -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.44.0",
107
- "@typescript-eslint/parser": "5.44.0",
106
+ "@typescript-eslint/eslint-plugin": "5.46.1",
107
+ "@typescript-eslint/parser": "5.46.1",
108
108
  "concurrently": "7.6.0",
109
109
  "cross-env": "7.0.3",
110
110
  "cross-var": "1.1.0",
@@ -126,7 +126,7 @@
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.1.1",
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",
@@ -163,5 +163,6 @@
163
163
  },
164
164
  "files": [
165
165
  "./dist/*"
166
- ]
166
+ ],
167
+ "packageManager": "yarn@3.3.0"
167
168
  }