@cognite/reveal 4.26.0-dev.20250905 → 4.26.0-dev.20250909
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 +13 -9
- package/dist/index.js.map +1 -1
- package/dist/packages/data-providers/src/DataSourceType.d.ts +4 -2
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/cdfAnnotationsToObjects.d.ts +1 -1
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/types.d.ts +3 -3
- package/package.json +1 -1
|
@@ -32,12 +32,14 @@ export type ClassicDataSourceType = {
|
|
|
32
32
|
*/
|
|
33
33
|
modelIdentifier: ClassicModelIdentifierType;
|
|
34
34
|
/**
|
|
35
|
-
* The classic point cloud volume metadata containing reference associated with the object
|
|
36
|
-
* and asset reference if any.
|
|
35
|
+
* The classic point cloud volume metadata containing reference associated with the object
|
|
36
|
+
* which includes annotationId and asset reference, if any. The instanceRef field is
|
|
37
|
+
* similarily a reference to a contextualized DM instance, if any.
|
|
37
38
|
*/
|
|
38
39
|
pointCloudVolumeMetadata: {
|
|
39
40
|
annotationId: number;
|
|
40
41
|
assetRef?: AnnotationsAssetRef;
|
|
42
|
+
instanceRef?: DMInstanceRef;
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
43
45
|
* Point cloud volume collection type
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { PointCloudObject, CdfPointCloudObjectAnnotation } from './types';
|
|
5
5
|
import { DataSourceType } from '../DataSourceType';
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function cdfAnnotationsToObjects<T extends DataSourceType>(cdfAnnotations: CdfPointCloudObjectAnnotation[]): PointCloudObject<T>[];
|
|
@@ -6,11 +6,12 @@ import { DMInstanceRef, IShape } from '../../../utilities';
|
|
|
6
6
|
import { Box3 } from 'three';
|
|
7
7
|
import { AnnotationsAssetRef } from '@cognite/sdk';
|
|
8
8
|
import { ClassicDataSourceType, DataSourceType } from '../DataSourceType';
|
|
9
|
-
type VolumeAnnotation = {
|
|
9
|
+
export type VolumeAnnotation = {
|
|
10
10
|
annotationId: number;
|
|
11
11
|
asset?: AnnotationsAssetRef;
|
|
12
|
+
assetInstanceRef?: DMInstanceRef;
|
|
12
13
|
};
|
|
13
|
-
type VolumeDMReference = {
|
|
14
|
+
export type VolumeDMReference = {
|
|
14
15
|
instanceRef: DMInstanceRef;
|
|
15
16
|
asset?: DMInstanceRef;
|
|
16
17
|
};
|
|
@@ -34,4 +35,3 @@ export type PointCloudObjectMetadata<T extends DataSourceType = ClassicDataSourc
|
|
|
34
35
|
export type PointCloudObject<T extends DataSourceType = ClassicDataSourceType> = PointCloudObjectMetadata<T> & {
|
|
35
36
|
stylableObject: StylableObject;
|
|
36
37
|
};
|
|
37
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.26.0-dev.
|
|
3
|
+
"version": "4.26.0-dev.20250909",
|
|
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": {
|