@cognite/reveal 4.2.0-dev.20230522 → 4.2.0-dev.20230524

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.
Files changed (27) hide show
  1. package/dist/api-entry-points/core.d.ts +1 -1
  2. package/dist/index.js +27 -23
  3. package/dist/index.js.map +1 -1
  4. package/dist/packages/360-images/index.d.ts +1 -1
  5. package/dist/packages/360-images/src/Image360Facade.d.ts +2 -1
  6. package/dist/packages/360-images/src/annotation/Image360AnnotationFilter.d.ts +12 -0
  7. package/dist/packages/360-images/src/annotation/types.d.ts +11 -0
  8. package/dist/packages/360-images/src/collection/Image360CollectionFactory.d.ts +2 -1
  9. package/dist/packages/360-images/src/entity/Image360Entity.d.ts +2 -1
  10. package/dist/packages/360-images/src/entity/Image360RevisionEntity.d.ts +3 -1
  11. package/dist/packages/api/src/api-helpers/Image360ApiHelper.d.ts +2 -2
  12. package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +1 -1
  13. package/dist/packages/api/src/public/migration/types.d.ts +6 -1
  14. package/dist/packages/cad-geometry-loaders/src/sector/SectorLoader.d.ts +1 -1
  15. package/dist/packages/cad-geometry-loaders/src/sector/culling/SectorCuller.d.ts +6 -5
  16. package/dist/packages/cad-model/src/types.d.ts +1 -1
  17. package/dist/packages/cad-model/src/wrappers/CogniteCadModel.d.ts +7 -7
  18. package/dist/packages/cad-parsers/src/metadata/CadModelMetadata.d.ts +1 -1
  19. package/dist/packages/cad-styling/src/NodeAppearance.d.ts +2 -2
  20. package/dist/packages/cad-styling/src/PopulateIndexSetFromPagedResponseHelper.d.ts +2 -1
  21. package/dist/packages/camera-manager/src/CameraManager.d.ts +4 -4
  22. package/dist/packages/pointclouds/src/CognitePointCloudModel.d.ts +2 -2
  23. package/dist/packages/rendering/src/rendering/NodeAppearanceTextureBuilder.d.ts +2 -2
  24. package/dist/packages/tools/src/HtmlOverlay/BucketGrid2D.d.ts +1 -1
  25. package/dist/packages/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +1 -1
  26. package/dist/packages/utilities/src/constants.d.ts +1 -3
  27. package/package.json +9 -9
@@ -10,7 +10,7 @@ export { Image360Entity } from './src/entity/Image360Entity';
10
10
  export { Image360RevisionEntity } from './src/entity/Image360RevisionEntity';
11
11
  export { Image360Visualization } from './src/entity/Image360Visualization';
12
12
  export { Image360EnteredDelegate, Image360ExitedDelegate } from './src/types';
13
- export { Image360AnnotationAppearance } from './src/annotation/types';
13
+ export { Image360AnnotationAppearance, Image360AnnotationFilterOptions } from './src/annotation/types';
14
14
  export { Image360AnnotationIntersection } from './src/annotation/Image360AnnotationIntersection';
15
15
  export { Image360Annotation } from './src/annotation/Image360Annotation';
16
16
  export { DefaultImage360Collection } from './src/collection/DefaultImage360Collection';
@@ -7,6 +7,7 @@ import { Image360CollectionFactory } from './collection/Image360CollectionFactor
7
7
  import { DefaultImage360Collection } from './collection/DefaultImage360Collection';
8
8
  import { IconCullingScheme } from './icons/IconCollection';
9
9
  import { Image360RevisionEntity } from './entity/Image360RevisionEntity';
10
+ import { Image360AnnotationFilterOptions } from './annotation/types';
10
11
  export declare class Image360Facade<T> {
11
12
  private readonly _entityFactory;
12
13
  private readonly _image360Collections;
@@ -18,7 +19,7 @@ export declare class Image360Facade<T> {
18
19
  set hoverIconVisibility(visible: boolean);
19
20
  set allIconCullingScheme(scheme: IconCullingScheme);
20
21
  constructor(_entityFactory: Image360CollectionFactory<T>);
21
- create(dataProviderFilter: T, postTransform?: THREE.Matrix4, preComputedRotation?: boolean): Promise<DefaultImage360Collection>;
22
+ create(dataProviderFilter: T, annotationFilter?: Image360AnnotationFilterOptions, postTransform?: THREE.Matrix4, preComputedRotation?: boolean): Promise<DefaultImage360Collection>;
22
23
  delete(entity: Image360Entity): Promise<void>;
23
24
  preload(entity: Image360Entity, revision: Image360RevisionEntity, lockDownload?: boolean): Promise<void>;
24
25
  getCollectionContainingEntity(entity: Image360Entity): DefaultImage360Collection;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2023 Cognite AS
3
+ */
4
+ import { AnnotationModel } from '@cognite/sdk';
5
+ import { Image360AnnotationFilterOptions } from './types';
6
+ export declare class Image360AnnotationFilter {
7
+ private readonly _annotationFilter;
8
+ private fillDefaultAnnotationOptionValues;
9
+ constructor(options: Image360AnnotationFilterOptions);
10
+ private filterStatus;
11
+ filter(annotation: AnnotationModel): boolean;
12
+ }
@@ -1,6 +1,7 @@
1
1
  /*!
2
2
  * Copyright 2023 Cognite AS
3
3
  */
4
+ import { AnnotationStatus } from '@cognite/sdk';
4
5
  import { Color } from 'three';
5
6
  /**
6
7
  * The appearance of a 360 image annotation
@@ -15,3 +16,13 @@ export type Image360AnnotationAppearance = {
15
16
  */
16
17
  visible?: boolean;
17
18
  };
19
+ /**
20
+ * Options for loading annotations in 360 images
21
+ */
22
+ export type Image360AnnotationFilterOptions = {
23
+ /**
24
+ * Allow annotations matching this/these statuses. 'all' will match all annotations
25
+ * @default 'approved'
26
+ */
27
+ status?: 'all' | AnnotationStatus | AnnotationStatus[];
28
+ };
@@ -5,6 +5,7 @@ import { Image360Provider } from '../../../data-providers';
5
5
  import { BeforeSceneRenderedDelegate, DeviceDescriptor, EventTrigger, SceneHandler } from '../../../utilities';
6
6
  import { DefaultImage360Collection } from './DefaultImage360Collection';
7
7
  import { IconsOptions } from '../icons/IconCollection';
8
+ import { Image360AnnotationFilterOptions } from '../annotation/types';
8
9
  export declare class Image360CollectionFactory<T> {
9
10
  private readonly _image360DataProvider;
10
11
  private readonly _sceneHandler;
@@ -12,5 +13,5 @@ export declare class Image360CollectionFactory<T> {
12
13
  private readonly _iconsOptions;
13
14
  private readonly _device;
14
15
  constructor(image360DataProvider: Image360Provider<T>, sceneHandler: SceneHandler, onBeforeSceneRendered: EventTrigger<BeforeSceneRenderedDelegate>, device: DeviceDescriptor, iconsOptions?: IconsOptions);
15
- create(dataProviderFilter: T, postTransform: THREE.Matrix4, preMultipliedRotation: boolean): Promise<DefaultImage360Collection>;
16
+ create(dataProviderFilter: T, postTransform: THREE.Matrix4, preMultipliedRotation: boolean, annotationFilter: Image360AnnotationFilterOptions): Promise<DefaultImage360Collection>;
16
17
  }
@@ -9,6 +9,7 @@ import { Image360RevisionEntity } from './Image360RevisionEntity';
9
9
  import { Image360VisualizationBox } from './Image360VisualizationBox';
10
10
  import { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
11
11
  import { Overlay3DIcon } from '../../../3d-overlays';
12
+ import { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter';
12
13
  export declare class Image360Entity implements Image360 {
13
14
  private readonly _revisions;
14
15
  private readonly _imageMetadata;
@@ -33,7 +34,7 @@ export declare class Image360Entity implements Image360 {
33
34
  * @returns Image360Visualization
34
35
  */
35
36
  get image360Visualization(): Image360VisualizationBox;
36
- constructor(image360Metadata: Historical360ImageSet, sceneHandler: SceneHandler, imageProvider: Image360DataProvider, transform: THREE.Matrix4, icon: Overlay3DIcon, device: DeviceDescriptor);
37
+ constructor(image360Metadata: Historical360ImageSet, sceneHandler: SceneHandler, imageProvider: Image360DataProvider, annotationFilterer: Image360AnnotationFilter, transform: THREE.Matrix4, icon: Overlay3DIcon, device: DeviceDescriptor);
37
38
  /**
38
39
  * List all historical images for this entity.
39
40
  * @returns A list of available revisions.
@@ -6,6 +6,7 @@ import { Image360Revision } from './Image360Revision';
6
6
  import { Image360VisualizationBox } from './Image360VisualizationBox';
7
7
  import { ImageAnnotationObject } from '../annotation/ImageAnnotationObject';
8
8
  import { Image360AnnotationAppearance } from '../annotation/types';
9
+ import { Image360AnnotationFilter } from '../annotation/Image360AnnotationFilter';
9
10
  export declare class Image360RevisionEntity implements Image360Revision {
10
11
  private readonly _imageProvider;
11
12
  private readonly _image360Descriptor;
@@ -15,7 +16,8 @@ export declare class Image360RevisionEntity implements Image360Revision {
15
16
  private _onFullResolutionCompleted;
16
17
  private _defaultAppearance;
17
18
  private _annotations;
18
- constructor(imageProvider: Image360DataProvider, image360Descriptor: Image360Descriptor, image360VisualzationBox: Image360VisualizationBox);
19
+ private readonly _annotationFilterer;
20
+ constructor(imageProvider: Image360DataProvider, image360Descriptor: Image360Descriptor, image360VisualzationBox: Image360VisualizationBox, annotationFilterer: Image360AnnotationFilter);
19
21
  /**
20
22
  * The date of this revision. Undefined if the revison is undated.
21
23
  * @returns Date | undefined
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as THREE from 'three';
5
5
  import { CogniteClient, Metadata } from '@cognite/sdk';
6
- import { Image360Collection, Image360Entity, Image360, IconsOptions, Image360RevisionEntity, Image360AnnotationIntersection } from '../../../360-images';
6
+ import { Image360Collection, Image360Entity, Image360, IconsOptions, Image360RevisionEntity, Image360AnnotationIntersection, Image360AnnotationFilterOptions } from '../../../360-images';
7
7
  import { BeforeSceneRenderedDelegate, EventTrigger, InputHandler, SceneHandler } from '../../../utilities';
8
8
  import { ProxyCameraManager } from '../../../camera-manager';
9
9
  export declare class Image360ApiHelper {
@@ -23,7 +23,7 @@ export declare class Image360ApiHelper {
23
23
  get needsRedraw(): boolean;
24
24
  resetRedraw(): void;
25
25
  private getNormalizedOffset;
26
- add360ImageSet(eventFilter: Metadata, collectionTransform: THREE.Matrix4, preMultipliedRotation: boolean): Promise<Image360Collection>;
26
+ add360ImageSet(eventFilter: Metadata, collectionTransform: THREE.Matrix4, preMultipliedRotation: boolean, annotationOptions?: Image360AnnotationFilterOptions): Promise<Image360Collection>;
27
27
  remove360Images(entities: Image360[]): Promise<void>;
28
28
  enter360Image(image360Entity: Image360Entity, revision?: Image360RevisionEntity): Promise<void>;
29
29
  private applyFullResolutionTextures;
@@ -185,7 +185,7 @@ export declare class Cognite3DViewer {
185
185
  */
186
186
  off(event: 'cameraStop', callback: CameraStopDelegate): void;
187
187
  /**
188
- * Unsubscribe the 'beforeSceneRendered'-event previously subscribed with {@link on}.
188
+ * Unsubscribe the 'beforeSceneRendered'-event previously subscribed with {@link Cognite3DViewer.on}.
189
189
  */
190
190
  off(event: 'beforeSceneRendered', callback: BeforeSceneRenderedDelegate): void;
191
191
  /**
@@ -8,6 +8,7 @@ import { CameraManager } from '../../../../camera-manager';
8
8
  import { GeometryFilter, CogniteCadModel } from '../../../../cad-model';
9
9
  import { DataSource } from '../../../../data-source';
10
10
  import { EdlOptions } from '../../../../rendering';
11
+ import { Image360AnnotationFilterOptions } from '../../../../360-images';
11
12
  /**
12
13
  * Callback to monitor loaded requests and progress.
13
14
  * Use OnLoadingCallback instead of onProgress/onComplete.
@@ -132,7 +133,7 @@ export interface Cognite3DViewerOptions {
132
133
  *
133
134
  * Note that the data source must support {@link CdfModelIdentifier}.
134
135
  *
135
- * This cannot be used together with {@link _localModels}.
136
+ * This cannot be used together with {@link Cognite3DViewerOptions._localModels}.
136
137
  */
137
138
  customDataSource?: DataSource;
138
139
  /**
@@ -163,6 +164,10 @@ export type AddImage360Options = {
163
164
  * @default true
164
165
  */
165
166
  preMultipliedRotation?: boolean;
167
+ /**
168
+ * Annotation options.
169
+ */
170
+ annotationFilter?: Image360AnnotationFilterOptions;
166
171
  };
167
172
  export type CadIntersection = {
168
173
  /**
@@ -7,7 +7,7 @@ import { SectorCuller } from './culling/SectorCuller';
7
7
  import { ModelStateHandler } from './ModelStateHandler';
8
8
  /**
9
9
  * Loads sector based on a given camera pose, a set of models and budget.
10
- * Uses {@link SectorCuller} to determine what to load, {@link Repository} to
10
+ * Uses {@link SectorCuller} to determine what to load, {@link SectorDownloadScheduler} to
11
11
  * load sectors and {@link ModelStateHandler} to keep track of what has been
12
12
  * loaded to avoid loading data that's already available.
13
13
  *
@@ -10,7 +10,8 @@ import { DetermineSectorsInput, SectorLoadingSpent } from './types';
10
10
  export interface SectorCuller {
11
11
  /**
12
12
  * Determine initial sector prioritization about what we think to load. This provides an initial guesstimate of
13
- * what sectors we should load. Use {@link filterSectorsToLoad} to improve this estimate as new data is loaded.
13
+ * what sectors we should load. Use {@link SectorCuller.filterSectorsToLoad} to improve
14
+ * this estimate as new data is loaded.
14
15
  * @param input
15
16
  */
16
17
  determineSectors(input: DetermineSectorsInput): {
@@ -19,11 +20,11 @@ export interface SectorCuller {
19
20
  };
20
21
  /**
21
22
  * Evaluates if sectors provided should be loaded or not, e.g. based on geometry we have now loaded
22
- * since {@link determineSectors} was called. This can be used to e.g. implement pre-load occlusion culling
23
- * of sectors based on geometry that has been loaded.
23
+ * since {@link SectorCuller.determineSectors} was called. This can be used to e.g.
24
+ * implement pre-load occlusion culling of sectors based on geometry that has been loaded.
24
25
  *
25
- * @param input Same input as used in {@link determineSectors}.
26
- * @param wantedSectorsBatch A set of sectors from {@link determineSectors}, e.g. in batches of 5-10.
26
+ * @param input Same input as used in {@link SectorCuller.determineSectors}.
27
+ * @param wantedSectorsBatch A set of sectors from {@link SectorCuller.determineSectors}, e.g. in batches of 5-10.
27
28
  */
28
29
  filterSectorsToLoad(input: DetermineSectorsInput, wantedSectorsBatch: WantedSector[]): Promise<WantedSector[]>;
29
30
  /**
@@ -11,7 +11,7 @@ export type GeometryFilter = {
11
11
  * will be transformed into coordinates relative to the model using the the model transformation
12
12
  * which can be specified using {@link https://docs.cognite.com/api/v1/#operation/update3DRevisions |the CDF API},
13
13
  * or set in {@link https://fusion.cognite.com/ |Cognite Fusion}.
14
- * @see {@link isBoundingBoxInModelCoordinates}.
14
+ * @see {@link GeometryFilter.isBoundingBoxInModelCoordinates}.
15
15
  */
16
16
  boundingBox?: THREE.Box3;
17
17
  /**
@@ -17,7 +17,7 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
17
17
  /**
18
18
  * Returns the unit the coordinates for the model is stored. Returns an empty string
19
19
  * if no unit has been stored.
20
- * Note that coordinates in Reveal always are converted to meters using {@link modelUnitToMetersFactor}.
20
+ * Note that coordinates in Reveal always are converted to meters using {@link CogniteCadModel.modelUnitToMetersFactor}.
21
21
  */
22
22
  get modelUnit(): WellKnownUnit | '';
23
23
  /**
@@ -51,7 +51,7 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
51
51
  private readonly _styledNodeCollections;
52
52
  /**
53
53
  * Sets the default appearance for nodes that are not styled using
54
- * {@link assignStyledNodeCollection}. Updating the default style can be an
54
+ * {@link CogniteCadModel.assignStyledNodeCollection}. Updating the default style can be an
55
55
  * expensive operation, so use with care.
56
56
  *
57
57
  * @param appearance Default node appearance.
@@ -59,7 +59,7 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
59
59
  setDefaultNodeAppearance(appearance: NodeAppearance): void;
60
60
  /**
61
61
  * Gets the default appearance for nodes that are not styled using
62
- * {@link assignStyledNodeCollection}.
62
+ * {@link CogniteCadModel.assignStyledNodeCollection}.
63
63
  */
64
64
  getDefaultNodeAppearance(): NodeAppearance;
65
65
  /**
@@ -100,7 +100,7 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
100
100
  /**
101
101
  * Removes styling for previously added styled collection, resetting the style to the default (or
102
102
  * the style imposed by other styled collections).
103
- * @param nodeCollection Node collection previously added using {@link assignStyledNodeCollection}.
103
+ * @param nodeCollection Node collection previously added using {@link CogniteCadModel.assignStyledNodeCollection}.
104
104
  * @throws Error if node collection isn't assigned to the model.
105
105
  */
106
106
  unassignStyledNodeCollection(nodeCollection: NodeCollection): void;
@@ -207,7 +207,7 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
207
207
  /**
208
208
  * Gets transformation from CDF space to ThreeJS space,
209
209
  * which includes any additional "default" transformations assigned to this model.
210
- * Does not include any custom transformations set by {@link CognitePointcloudmodel.setModelTransformation}
210
+ * Does not include any custom transformations set by {@link CogniteCadModel.setModelTransformation}
211
211
  * @param out Preallocated `THREE.Matrix4` (optional)
212
212
  */
213
213
  getCdfToDefaultModelTransformation(out?: THREE.Matrix4): THREE.Matrix4;
@@ -305,7 +305,7 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
305
305
  /**
306
306
  * Maps a single node ID to tree index. This is useful when you e.g. have a
307
307
  * node ID from an asset mapping and want to highlight the given asset using
308
- * {@link mapNodeIdsToTreeIndices} is recommended for better performance when
308
+ * {@link CogniteCadModel.mapNodeIdsToTreeIndices} is recommended for better performance when
309
309
  * mapping multiple IDs.
310
310
  *
311
311
  * @param nodeId A Node ID to map to a tree index.
@@ -326,7 +326,7 @@ export declare class CogniteCadModel implements CdfModelNodeCollectionDataProvid
326
326
  mapTreeIndicesToNodeIds(treeIndices: number[]): Promise<CogniteInternalId[]>;
327
327
  /**
328
328
  * Maps a single tree index to node ID for use with the API. If you have multiple
329
- * tree indices to map, {@link mapNodeIdsToTreeIndices} is recommended for better
329
+ * tree indices to map, {@link CogniteCadModel.mapNodeIdsToTreeIndices} is recommended for better
330
330
  * performance.
331
331
  * @param treeIndex A tree index to map to a Node ID.
332
332
  * @returns TreeIndex of the provided node.
@@ -15,7 +15,7 @@ export interface CadModelMetadata {
15
15
  */
16
16
  readonly format: File3dFormat;
17
17
  /**
18
- * Revision of the {@link format} (e.g. 8 for "legacy models" or
18
+ * Revision of the {@link CadModelMetadata.format} (e.g. 8 for "legacy models" or
19
19
  * 9 for GLTF).
20
20
  */
21
21
  readonly formatVersion: number;
@@ -29,12 +29,12 @@ export type NodeAppearance = {
29
29
  /**
30
30
  * When set to true, the node is rendered in front
31
31
  * of all other nodes even if it's occluded.
32
- * Note that this take precedence over {@link renderGhosted}.
32
+ * Note that this take precedence over {@link NodeAppearance.renderGhosted}.
33
33
  */
34
34
  readonly renderInFront?: boolean;
35
35
  /**
36
36
  * When set to true, the node is rendered ghosted, i.e.
37
- * transparent with a fixed color. This has no effect if {@link renderInFront}
37
+ * transparent with a fixed color. This has no effect if {@link NodeAppearance.renderInFront}
38
38
  * is `true`.
39
39
  */
40
40
  readonly renderGhosted?: boolean;
@@ -24,7 +24,8 @@ export declare class PopulateIndexSetFromPagedResponseHelper<T> {
24
24
  /**
25
25
  * Loops through all the pages of the provided response and populated the IndexSet provided.
26
26
  * @param request
27
- * @returns True if the operation was completed, false if it was interrupted using {@link interrupt}.
27
+ * @returns True if the operation was completed, false if it was interrupted using
28
+ * {@link PopulateIndexSetFromPagedResponseHelper.interrupt}.
28
29
  */
29
30
  pageResults(request: Promise<ListResponse<T[]>>): Promise<boolean>;
30
31
  }
@@ -6,13 +6,13 @@ import { CameraState, CameraChangeDelegate, CameraStopDelegate, CameraManagerEve
6
6
  /**
7
7
  * Interface for manager responsible for all manipulations to the camera,
8
8
  * including animations and modification of state. Implementations are responsible for
9
- * providing a `THREE.PerspectiveCamera` instance to {@link Cognite3DViewer}. Implementations
9
+ * providing a `THREE.PerspectiveCamera` instance to the viewer. Implementations
10
10
  * must trigger the `cameraChange`-event when camera is changed.
11
11
  * The default implementation is {@link DefaultCameraManager}.
12
12
  */
13
13
  export interface CameraManager {
14
14
  /**
15
- * Returns the camera used for rendering in {@link Cognite3DViewer}.
15
+ * Returns the camera used for rendering the viewer.
16
16
  * Note that the camera will not be modified directly by Reveal.
17
17
  * Implementations must trigger the `cameraChange`-event whenever the
18
18
  * camera changes.
@@ -44,7 +44,7 @@ export interface CameraManager {
44
44
  * Set this manager as active and enable controls.
45
45
  *
46
46
  * Should update {@link CameraManager.enabled} to reflect the state of the manager.
47
- * Note that this is called automatically when a new CameraManager is set on the {@link Cognite3DViewer}.
47
+ * Note that this is called automatically when a new CameraManager is set on the viewer.
48
48
  * @param cameraManager Previously used camera manager.
49
49
  */
50
50
  activate(cameraManager?: CameraManager): void;
@@ -52,7 +52,7 @@ export interface CameraManager {
52
52
  * Deactivate this manager and disable controls.
53
53
  *
54
54
  * Should update {@link CameraManager.enabled} to reflect the state of the manager.
55
- * Note that this is called automatically when a new CameraManager is set on the {@link Cognite3DViewer}.
55
+ * Note that this is called automatically when a new CameraManager is set on the viewer.
56
56
  */
57
57
  deactivate(): void;
58
58
  /**
@@ -53,14 +53,14 @@ export declare class CognitePointCloudModel {
53
53
  setModelTransformation(transformationMatrix: THREE.Matrix4): void;
54
54
  /**
55
55
  * Gets transformation matrix that has previously been
56
- * set with {@link CognitePointCloudmodel.setModelTransformation}.
56
+ * set with {@link CognitePointCloudModel.setModelTransformation}.
57
57
  * @param out Preallocated `THREE.Matrix4` (optional).
58
58
  */
59
59
  getModelTransformation(out?: THREE.Matrix4): THREE.Matrix4;
60
60
  /**
61
61
  * Gets transformation from CDF space to ThreeJS space,
62
62
  * which includes any additional "default" transformations assigned to this model.
63
- * Does not include any custom transformations set by {@link CognitePointcloudmodel.setModelTransformation}
63
+ * Does not include any custom transformations set by {@link CognitePointCloudModel.setModelTransformation}
64
64
  * @param out Preallocated `THREE.Matrix4` (optional)
65
65
  */
66
66
  getCdfToDefaultModelTransformation(out?: THREE.Matrix4): THREE.Matrix4;
@@ -20,8 +20,8 @@ export declare class NodeAppearanceTextureBuilder {
20
20
  getDefaultAppearance(): NodeAppearance;
21
21
  /**
22
22
  * Sets the default style and invalidates the builder. Note that this causes a full
23
- * recomputation of values the next time {@link build} is called, so using this might be
24
- * expensive.
23
+ * recomputation of values the next time {@link NodeAppearanceTextureBuilder.build} is called,
24
+ * so using this might be expensive.
25
25
  * @param appearance New style that is applied to all 'unstyled' elements.
26
26
  */
27
27
  setDefaultAppearance(appearance: NodeAppearance): void;
@@ -16,7 +16,7 @@ export declare class BucketGrid2D<T> {
16
16
  private readonly _bounds;
17
17
  private readonly _cells;
18
18
  /**
19
- * Holds elements that has been removed from the collection using {@link removeOverlappingElements}.
19
+ * Holds elements that has been removed from the collection using {@link BucketGrid2D.removeOverlappingElements}.
20
20
  * This is used to avoid expensive re-allocations of cells when removing elements.
21
21
  */
22
22
  private readonly _removedElements;
@@ -38,7 +38,7 @@ export type HtmlOverlayToolClusteringOptions = {
38
38
  /**
39
39
  * Currently only 'overlapInScreenSpace' is supported. In this mode,
40
40
  * overlays are clustered together into a single element as defined by
41
- * the {@link createClusterElementCallback} and hidden when they overlap
41
+ * the {@link HtmlOverlayToolClusteringOptions.createClusterElementCallback} and hidden when they overlap
42
42
  * in screen space. The composite element is placed at the midpoint of
43
43
  * all clustered elements.
44
44
  *
@@ -5,8 +5,6 @@ import { Matrix4 } from 'three';
5
5
  export declare const cadFromCdfToThreeMatrix: Matrix4;
6
6
  /**
7
7
  * The transformation matrix from CDF coordinates to ThreeJS/Reveal.
8
- * Note that this is already applied to {@link CogniteCadModel} and {@link CognitePointCloudModel}
9
- * automatically, as it is factored into the matrix returned from e.g.
10
- * the {@link CogniteCadModel.getCdfToDefaultModelTransformation} method.
8
+ * Note that this is already applied to Reveal models.
11
9
  */
12
10
  export declare const CDF_TO_VIEWER_TRANSFORMATION: Matrix4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/reveal",
3
- "version": "4.2.0-dev.20230522",
3
+ "version": "4.2.0-dev.20230524",
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": {
@@ -91,31 +91,31 @@
91
91
  "@types/jsdom": "21.1.1",
92
92
  "@types/lodash": "4.14.194",
93
93
  "@types/mixpanel-browser": "2.38.1",
94
- "@types/node": "18.16.9",
94
+ "@types/node": "18.16.13",
95
95
  "@types/random-seed": "0.3.3",
96
96
  "@types/skmeans": "0.11.4",
97
97
  "@types/stats": "0.16.30",
98
98
  "@types/three": "0.152.0",
99
99
  "@types/tween.js": "18.5.1",
100
- "@typescript-eslint/eslint-plugin": "5.59.5",
101
- "@typescript-eslint/parser": "5.59.5",
100
+ "@typescript-eslint/eslint-plugin": "5.59.6",
101
+ "@typescript-eslint/parser": "5.59.6",
102
102
  "concurrently": "8.0.1",
103
103
  "cross-env": "7.0.3",
104
104
  "dat.gui": "0.7.9",
105
105
  "eslint": "8.40.0",
106
106
  "eslint-config-prettier": "8.8.0",
107
107
  "eslint-plugin-header": "3.1.1",
108
- "eslint-plugin-jsdoc": "44.0.1",
108
+ "eslint-plugin-jsdoc": "44.2.4",
109
109
  "eslint-plugin-lodash": "7.4.0",
110
110
  "eslint-plugin-prettier": "4.2.1",
111
111
  "eslint-plugin-unused-imports": "2.0.0",
112
112
  "file-loader": "6.2.0",
113
113
  "gl": "6.0.2",
114
- "glob": "10.2.4",
114
+ "glob": "10.2.5",
115
115
  "glslify-loader": "2.0.0",
116
116
  "html-webpack-plugin": "5.5.1",
117
117
  "jest": "29.5.0",
118
- "jest-canvas-mock": "2.5.0",
118
+ "jest-canvas-mock": "2.5.1",
119
119
  "jest-environment-jsdom": "29.5.0",
120
120
  "jest-extended": "3.2.4",
121
121
  "jest-image-snapshot": "6.1.0",
@@ -125,7 +125,7 @@
125
125
  "nock": "13.3.1",
126
126
  "prettier": "2.8.8",
127
127
  "process": "0.11.10",
128
- "puppeteer": "20.2.0",
128
+ "puppeteer": "20.2.1",
129
129
  "random-seed": "0.3.0",
130
130
  "raw-loader": "4.0.2",
131
131
  "remove-files-webpack-plugin": "1.5.0",
@@ -138,7 +138,7 @@
138
138
  "tsc-alias": "1.8.6",
139
139
  "typescript": "5.0.4",
140
140
  "wasm-pack": "0.11.1",
141
- "webpack": "5.82.1",
141
+ "webpack": "5.83.1",
142
142
  "webpack-cli": "5.1.1",
143
143
  "webpack-dev-server": "4.15.0",
144
144
  "webpack-node-externals": "3.0.0",