@cognite/reveal 4.34.1 → 4.35.0
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/api-entry-points/datasource.d.ts +1 -1
- package/dist/assets/eptBinaryDecoder.worker-DGnrhz2t.js.map +1 -0
- package/dist/index.js +6111 -3466
- package/dist/index.js.map +1 -1
- package/dist/packages/api/src/public/types.d.ts +1 -1
- package/dist/packages/cad-parsers/src/cad/types.d.ts +1 -0
- package/dist/packages/cad-parsers/src/metadata/CadMetadataParser.d.ts +3 -1
- package/dist/packages/cad-parsers/src/metadata/CadModelMetadata.d.ts +4 -0
- package/dist/packages/cad-parsers/src/metadata/CadModelMetadataRepository.d.ts +2 -0
- package/dist/packages/cad-parsers/src/metadata/parsers/CadMetadataParserGltf.d.ts +2 -1
- package/dist/packages/cad-parsers/src/metadata/types.d.ts +1 -0
- package/dist/packages/data-providers/index.d.ts +3 -1
- package/dist/packages/data-providers/src/ModelDataProvider.d.ts +2 -15
- package/dist/packages/data-providers/src/ModelMetadataProvider.d.ts +1 -0
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchAnnotationsForInstance.d.ts +9 -3
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForCollection.d.ts +31 -13
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/fetchCoreDm360AnnotationsForRevision.d.ts +20 -10
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/queryFilters.d.ts +41 -8
- package/dist/packages/data-providers/src/image-360-data-providers/cdm/sources.d.ts +20 -0
- package/dist/packages/data-providers/src/image-360-data-providers/descriptor-providers/datamodels/cdm/get360CdmCollectionsQuery.d.ts +66 -37
- package/dist/packages/data-providers/src/metadata-providers/CdfModelMetadataProvider.d.ts +2 -0
- package/dist/packages/data-providers/src/metadata-providers/types.d.ts +13 -0
- package/dist/packages/data-providers/src/model-data-providers/CachedModelDataProvider.d.ts +12 -1
- package/dist/packages/data-providers/src/model-data-providers/CdfModelDataProvider.d.ts +3 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/getDMPointCloudVolumeCollectionQuery.d.ts +16 -3
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/queryFilters.d.ts +11 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/types.d.ts +0 -8
- package/dist/packages/data-providers/src/types.d.ts +30 -0
- package/dist/packages/data-providers/src/utilities/brotliDecompressTypes.d.ts +6 -0
- package/dist/packages/data-providers/src/utilities/constants.d.ts +15 -0
- package/dist/packages/data-providers/src/utilities/gzipUtils.d.ts +2 -0
- package/dist/packages/data-providers/src/utilities/signedUrlUtils.d.ts +8 -0
- package/dist/packages/pointclouds/src/PointCloudMetadata.d.ts +5 -1
- package/dist/packages/pointclouds/src/PointCloudMetadataRepository.d.ts +2 -0
- package/dist/packages/pointclouds/src/classificationsProviders/UrlPointClassificationsProvider.d.ts +5 -2
- package/dist/packages/pointclouds/src/potree-three-loader/Potree.d.ts +4 -2
- package/dist/packages/pointclouds/src/potree-three-loader/geometry/PointCloudEptGeometryNode.d.ts +20 -2
- package/dist/packages/pointclouds/src/potree-three-loader/index.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/loading/EptBinaryLoader.d.ts +2 -0
- package/dist/packages/pointclouds/src/potree-three-loader/loading/EptLoader.d.ts +5 -2
- package/dist/packages/pointclouds/src/potree-three-loader/types/IPotree.d.ts +4 -2
- package/dist/packages/rendering/index.d.ts +2 -2
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudMaterial.d.ts +46 -20
- package/dist/packages/rendering/src/pointcloud-rendering/index.d.ts +1 -1
- package/dist/packages/rendering/src/render-pipeline-providers/DefaultRenderPipelineProvider.d.ts +1 -0
- package/dist/packages/sector-loader/src/GltfSectorLoader.d.ts +3 -2
- package/dist/packages/sector-loader/src/GltfSectorRepository.d.ts +2 -2
- package/dist/packages/utilities/index.d.ts +1 -1
- package/package.json +14 -26
- package/dist/assets/eptBinaryDecoder.worker-XgCyWWQG.js.map +0 -1
|
@@ -35,6 +35,7 @@ export interface ConsumedSector {
|
|
|
35
35
|
export interface WantedSector {
|
|
36
36
|
modelIdentifier: ModelIdentifier;
|
|
37
37
|
modelBaseUrl: string;
|
|
38
|
+
signedFilesBaseUrl: string | undefined;
|
|
38
39
|
geometryClipBox: Box3 | null;
|
|
39
40
|
levelOfDetail: LevelOfDetail;
|
|
40
41
|
metadata: SectorMetadata;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { MetadataWithSignedFiles } from '../../../data-providers';
|
|
1
2
|
import { SectorScene } from '../utilities/types';
|
|
3
|
+
import { CadSceneRootMetadata } from './parsers/types';
|
|
2
4
|
export declare class CadMetadataParser {
|
|
3
|
-
parse(parsedJson:
|
|
5
|
+
parse(parsedJson: MetadataWithSignedFiles<CadSceneRootMetadata>): SectorScene;
|
|
4
6
|
}
|
|
@@ -20,6 +20,10 @@ export interface CadModelMetadata {
|
|
|
20
20
|
* Base URL of the model.
|
|
21
21
|
*/
|
|
22
22
|
readonly modelBaseUrl: string;
|
|
23
|
+
/**
|
|
24
|
+
* Base URL of the signed files, if the model supports signed files.
|
|
25
|
+
*/
|
|
26
|
+
readonly signedFilesBaseUrl: string | undefined;
|
|
23
27
|
/**
|
|
24
28
|
* If not null, geometry outside this box might be clipped
|
|
25
29
|
* away to avoid representing unused geometry. Will typically
|
|
@@ -8,5 +8,7 @@ export declare class CadModelMetadataRepository implements MetadataRepository<Pr
|
|
|
8
8
|
private readonly _blobFileName;
|
|
9
9
|
constructor(modelMetadataProvider: ModelMetadataProvider, modelDataProvider: ModelDataProvider, blobFileName?: string);
|
|
10
10
|
loadData(modelIdentifier: ModelIdentifier, outputFormat?: File3dFormat): Promise<CadModelMetadata>;
|
|
11
|
+
private loadCadMetadataFromSignedFiles;
|
|
12
|
+
private loadCadMetadataFromBaseUrl;
|
|
11
13
|
private getSupportedOutput;
|
|
12
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Box3 } from 'three';
|
|
2
2
|
import { SectorScene } from '../../utilities/types';
|
|
3
3
|
import { BoundingBox, CadSceneRootMetadata } from './types';
|
|
4
|
-
|
|
4
|
+
import { MetadataWithSignedFiles } from '../../../../data-providers';
|
|
5
|
+
export declare function parseCadMetadataGltf(metadata: MetadataWithSignedFiles<CadSceneRootMetadata>): SectorScene;
|
|
5
6
|
export declare function toThreeBoundingBox(box: BoundingBox): Box3;
|
|
@@ -18,6 +18,7 @@ export { isClassic360Identifier, isCoreDmImage360Identifier, isLegacyDM360Identi
|
|
|
18
18
|
export type { CoreDmImage360Annotation } from './src/image-360-data-providers/cdm/types';
|
|
19
19
|
export { LocalModelDataProvider } from './src/model-data-providers/LocalModelDataProvider';
|
|
20
20
|
export { LocalModelIdentifier } from './src/model-identifiers/LocalModelIdentifier';
|
|
21
|
+
export { DMModelIdentifier } from './src/model-identifiers/DMModelIdentifier';
|
|
21
22
|
export { LocalModelMetadataProvider } from './src/metadata-providers/LocalModelMetadataProvider';
|
|
22
23
|
export { Local360ImageProvider } from './src/image-360-data-providers/Local360ImageProvider';
|
|
23
24
|
export type { ModelIdentifier } from './src/ModelIdentifier';
|
|
@@ -34,7 +35,7 @@ export { DummyPointCloudDMStylableObjectProvider } from './src/pointcloud-stylab
|
|
|
34
35
|
export type { Image360Provider, Image360ProviderMap } from './src/Image360Provider';
|
|
35
36
|
export { getImage360ProviderFromMap } from './src/Image360Provider';
|
|
36
37
|
export { Image360ProviderCombiner } from './src/Image360ProviderCombiner';
|
|
37
|
-
export type { BinaryFileProvider, JsonFileProvider, BlobOutputMetadata, Image360Descriptor, Image360FileProvider, Image360Face, Image360Texture, Image360FileDescriptor, ImageAssetLinkAnnotationInfo, ImageInstanceLinkAnnotationInfo, InstanceReference, Image360Id, Image360RevisionId } from './src/types';
|
|
38
|
+
export type { BinaryFileProvider, JsonFileProvider, SignedFileProvider, BlobOutputMetadata, Image360Descriptor, Image360FileProvider, Image360Face, Image360Texture, Image360FileDescriptor, ImageAssetLinkAnnotationInfo, ImageInstanceLinkAnnotationInfo, InstanceReference, Image360Id, Image360RevisionId, SignedFileItem } from './src/types';
|
|
38
39
|
export { File3dFormat } from './src/types';
|
|
39
40
|
export { fetchDMModelIdFromRevisionId } from './src/requests/fetchDMModelIdFromRevisionId';
|
|
40
41
|
export { isDMPointCloudVolumeObject, isClassicPointCloudVolumeObject, isDMPointCloudVolume, isClassicPointCloudVolume } from './src/utilities/utils';
|
|
@@ -42,3 +43,4 @@ export { getExternalIdFromDescriptor } from './src/utilities/getExternalIdFromDe
|
|
|
42
43
|
export type { DataSourceType, ClassicDataSourceType, DMDataSourceType, ClassicModelIdentifierType, DMModelIdentifierType, InternalDataSourceType, LocalDataSourceType, LocalModelIdentifierType, GenericDataSourceType } from './src/DataSourceType';
|
|
43
44
|
export { isClassicIdentifier, isDMIdentifier, isLocalIdentifier } from './src/DataSourceType';
|
|
44
45
|
export type { LocalAddModelOptions, CommonModelOptions, InternalAddModelOptions, AddModelOptionsWithModelRevisionId } from './src/utilities/internalAddModelOptions';
|
|
46
|
+
export type { MetadataWithSignedFiles } from './src/metadata-providers/types';
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { BinaryFileProvider, JsonFileProvider } from './types';
|
|
1
|
+
import { BinaryFileProvider, JsonFileProvider, SignedFileProvider } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Provides data for 3D models.
|
|
4
4
|
*/
|
|
5
|
-
export interface ModelDataProvider extends JsonFileProvider, BinaryFileProvider {
|
|
6
|
-
/**
|
|
7
|
-
* Download and parse a JSON file and return the resulting struct.
|
|
8
|
-
* @param baseUrl Base URL of the model.
|
|
9
|
-
* @param fileName Filename of JSON file.
|
|
10
|
-
*/
|
|
11
|
-
getJsonFile(baseUrl: string, fileName: string): Promise<any>;
|
|
12
|
-
/**
|
|
13
|
-
* Downloads a binary blob.
|
|
14
|
-
* @param baseUrl Base URL of the model.
|
|
15
|
-
* @param fileName Filename of binary file.
|
|
16
|
-
* @param abortSignal Optional abort signal that can be used to cancel an in progress fetch.
|
|
17
|
-
*/
|
|
18
|
-
getBinaryFile(baseUrl: string, fileName: string, abortSignal?: AbortSignal): Promise<ArrayBuffer>;
|
|
5
|
+
export interface ModelDataProvider extends JsonFileProvider, BinaryFileProvider, SignedFileProvider {
|
|
19
6
|
}
|
|
@@ -7,6 +7,7 @@ import { BlobOutputMetadata, File3dFormat } from './types';
|
|
|
7
7
|
export interface ModelMetadataProvider {
|
|
8
8
|
getModelOutputs(modelIdentifier: ModelIdentifier): Promise<BlobOutputMetadata[]>;
|
|
9
9
|
getModelUri(identifier: ModelIdentifier, formatMetadata: BlobOutputMetadata): Promise<string>;
|
|
10
|
+
getModelUriForSignedFiles?(): string;
|
|
10
11
|
getModelCamera(identifier: ModelIdentifier): Promise<{
|
|
11
12
|
position: Vector3;
|
|
12
13
|
target: Vector3;
|
|
@@ -41,6 +41,13 @@ declare function getImage360AnnotationsForInstanceQuery(instance: DMInstanceRef)
|
|
|
41
41
|
readonly identifier: "object3D";
|
|
42
42
|
};
|
|
43
43
|
readonly direction: "outwards";
|
|
44
|
+
readonly filter: {
|
|
45
|
+
readonly hasData: [{
|
|
46
|
+
readonly type: "container";
|
|
47
|
+
readonly externalId: "Cognite3DObject";
|
|
48
|
+
readonly space: "cdf_cdm_3d";
|
|
49
|
+
}];
|
|
50
|
+
};
|
|
44
51
|
};
|
|
45
52
|
};
|
|
46
53
|
readonly annotation_edges: {
|
|
@@ -49,10 +56,9 @@ declare function getImage360AnnotationsForInstanceQuery(instance: DMInstanceRef)
|
|
|
49
56
|
readonly direction: "outwards";
|
|
50
57
|
readonly filter: {
|
|
51
58
|
readonly hasData: [{
|
|
52
|
-
readonly type: "
|
|
53
|
-
readonly space: "
|
|
59
|
+
readonly type: "container";
|
|
60
|
+
readonly space: "cdf_cdm_3d";
|
|
54
61
|
readonly externalId: "Cognite360ImageAnnotation";
|
|
55
|
-
readonly version: "v1";
|
|
56
62
|
}];
|
|
57
63
|
};
|
|
58
64
|
};
|
|
@@ -11,12 +11,11 @@ declare function getImage360AnnotationsQuery(collectionReference: DMInstanceRef)
|
|
|
11
11
|
readonly filter: {
|
|
12
12
|
readonly and: [{
|
|
13
13
|
readonly and: [{
|
|
14
|
-
hasData: {
|
|
15
|
-
readonly type: "
|
|
16
|
-
readonly space: "
|
|
14
|
+
readonly hasData: [{
|
|
15
|
+
readonly type: "container";
|
|
16
|
+
readonly space: "cdf_cdm_3d";
|
|
17
17
|
readonly externalId: "Cognite3DRevision";
|
|
18
|
-
|
|
19
|
-
}[];
|
|
18
|
+
}];
|
|
20
19
|
}, {
|
|
21
20
|
readonly equals: {
|
|
22
21
|
readonly property: ["cdf_cdm_3d", "Cognite3DRevision", "type"];
|
|
@@ -26,6 +25,7 @@ declare function getImage360AnnotationsQuery(collectionReference: DMInstanceRef)
|
|
|
26
25
|
}, import('@cognite/sdk').TableExpressionEqualsFilterV3, import('@cognite/sdk').TableExpressionEqualsFilterV3];
|
|
27
26
|
};
|
|
28
27
|
};
|
|
28
|
+
readonly limit: 1;
|
|
29
29
|
};
|
|
30
30
|
readonly images: {
|
|
31
31
|
readonly nodes: {
|
|
@@ -40,6 +40,13 @@ declare function getImage360AnnotationsQuery(collectionReference: DMInstanceRef)
|
|
|
40
40
|
readonly identifier: "collection360";
|
|
41
41
|
};
|
|
42
42
|
readonly direction: "inwards";
|
|
43
|
+
readonly filter: {
|
|
44
|
+
readonly hasData: [{
|
|
45
|
+
readonly type: "container";
|
|
46
|
+
readonly space: "cdf_cdm_3d";
|
|
47
|
+
readonly externalId: "Cognite360Image";
|
|
48
|
+
}];
|
|
49
|
+
};
|
|
43
50
|
};
|
|
44
51
|
readonly limit: 10000;
|
|
45
52
|
};
|
|
@@ -48,13 +55,10 @@ declare function getImage360AnnotationsQuery(collectionReference: DMInstanceRef)
|
|
|
48
55
|
readonly from: "images";
|
|
49
56
|
readonly direction: "inwards";
|
|
50
57
|
readonly filter: {
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
readonly externalId: "Cognite360ImageAnnotation";
|
|
56
|
-
readonly version: "v1";
|
|
57
|
-
}];
|
|
58
|
+
readonly hasData: [{
|
|
59
|
+
readonly type: "container";
|
|
60
|
+
readonly space: "cdf_cdm_3d";
|
|
61
|
+
readonly externalId: "Cognite360ImageAnnotation";
|
|
58
62
|
}];
|
|
59
63
|
};
|
|
60
64
|
};
|
|
@@ -63,6 +67,13 @@ declare function getImage360AnnotationsQuery(collectionReference: DMInstanceRef)
|
|
|
63
67
|
readonly object3d: {
|
|
64
68
|
readonly nodes: {
|
|
65
69
|
readonly from: "annotations";
|
|
70
|
+
readonly filter: {
|
|
71
|
+
readonly hasData: [{
|
|
72
|
+
readonly type: "container";
|
|
73
|
+
readonly externalId: "Cognite3DObject";
|
|
74
|
+
readonly space: "cdf_cdm_3d";
|
|
75
|
+
}];
|
|
76
|
+
};
|
|
66
77
|
};
|
|
67
78
|
readonly limit: 10000;
|
|
68
79
|
};
|
|
@@ -72,12 +83,19 @@ declare function getImage360AnnotationsQuery(collectionReference: DMInstanceRef)
|
|
|
72
83
|
readonly through: {
|
|
73
84
|
readonly view: {
|
|
74
85
|
readonly type: "view";
|
|
75
|
-
readonly externalId: "
|
|
86
|
+
readonly externalId: "CogniteVisualizable";
|
|
76
87
|
readonly space: "cdf_cdm";
|
|
77
88
|
readonly version: "v1";
|
|
78
89
|
};
|
|
79
90
|
readonly identifier: "object3D";
|
|
80
91
|
};
|
|
92
|
+
readonly filter: {
|
|
93
|
+
readonly hasData: [{
|
|
94
|
+
readonly type: "container";
|
|
95
|
+
readonly externalId: "CogniteVisualizable";
|
|
96
|
+
readonly space: "cdf_cdm";
|
|
97
|
+
}];
|
|
98
|
+
};
|
|
81
99
|
};
|
|
82
100
|
readonly limit: 10000;
|
|
83
101
|
};
|
|
@@ -11,10 +11,9 @@ declare function getImage360AnnotationsByRevisionQuery(revisionReference: DMInst
|
|
|
11
11
|
readonly filter: {
|
|
12
12
|
readonly and: [{
|
|
13
13
|
readonly hasData: [{
|
|
14
|
-
readonly type: "
|
|
15
|
-
readonly space: "
|
|
14
|
+
readonly type: "container";
|
|
15
|
+
readonly space: "cdf_cdm_3d";
|
|
16
16
|
readonly externalId: "Cognite360Image";
|
|
17
|
-
readonly version: "v1";
|
|
18
17
|
}];
|
|
19
18
|
}, import('@cognite/sdk').TableExpressionEqualsFilterV3, import('@cognite/sdk').TableExpressionEqualsFilterV3];
|
|
20
19
|
};
|
|
@@ -26,13 +25,10 @@ declare function getImage360AnnotationsByRevisionQuery(revisionReference: DMInst
|
|
|
26
25
|
readonly from: "images";
|
|
27
26
|
readonly direction: "inwards";
|
|
28
27
|
readonly filter: {
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
readonly externalId: "Cognite360ImageAnnotation";
|
|
34
|
-
readonly version: "v1";
|
|
35
|
-
}];
|
|
28
|
+
readonly hasData: [{
|
|
29
|
+
readonly type: "container";
|
|
30
|
+
readonly space: "cdf_cdm_3d";
|
|
31
|
+
readonly externalId: "Cognite360ImageAnnotation";
|
|
36
32
|
}];
|
|
37
33
|
};
|
|
38
34
|
};
|
|
@@ -41,6 +37,13 @@ declare function getImage360AnnotationsByRevisionQuery(revisionReference: DMInst
|
|
|
41
37
|
readonly object3d: {
|
|
42
38
|
readonly nodes: {
|
|
43
39
|
readonly from: "annotations";
|
|
40
|
+
readonly filter: {
|
|
41
|
+
readonly hasData: [{
|
|
42
|
+
readonly type: "container";
|
|
43
|
+
readonly externalId: "Cognite3DObject";
|
|
44
|
+
readonly space: "cdf_cdm_3d";
|
|
45
|
+
}];
|
|
46
|
+
};
|
|
44
47
|
};
|
|
45
48
|
readonly limit: 10000;
|
|
46
49
|
};
|
|
@@ -56,6 +59,13 @@ declare function getImage360AnnotationsByRevisionQuery(revisionReference: DMInst
|
|
|
56
59
|
};
|
|
57
60
|
readonly identifier: "object3D";
|
|
58
61
|
};
|
|
62
|
+
readonly filter: {
|
|
63
|
+
readonly hasData: [{
|
|
64
|
+
readonly type: "container";
|
|
65
|
+
readonly externalId: "CogniteVisualizable";
|
|
66
|
+
readonly space: "cdf_cdm";
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
59
69
|
};
|
|
60
70
|
readonly limit: 10000;
|
|
61
71
|
};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
export declare const isCoreDm3DRevisionFilter: {
|
|
2
|
+
readonly hasData: [{
|
|
3
|
+
readonly type: "container";
|
|
4
|
+
readonly space: "cdf_cdm_3d";
|
|
5
|
+
readonly externalId: "Cognite3DRevision";
|
|
6
|
+
}];
|
|
7
|
+
};
|
|
1
8
|
export declare const isCoreDmImage360CollectionFilter: {
|
|
2
9
|
readonly and: [{
|
|
3
|
-
hasData: {
|
|
4
|
-
readonly type: "
|
|
5
|
-
readonly space: "
|
|
10
|
+
readonly hasData: [{
|
|
11
|
+
readonly type: "container";
|
|
12
|
+
readonly space: "cdf_cdm_3d";
|
|
6
13
|
readonly externalId: "Cognite3DRevision";
|
|
7
|
-
|
|
8
|
-
}[];
|
|
14
|
+
}];
|
|
9
15
|
}, {
|
|
10
16
|
readonly equals: {
|
|
11
17
|
readonly property: ["cdf_cdm_3d", "Cognite3DRevision", "type"];
|
|
@@ -15,9 +21,36 @@ export declare const isCoreDmImage360CollectionFilter: {
|
|
|
15
21
|
};
|
|
16
22
|
export declare const isCoreDmImage360Filter: {
|
|
17
23
|
readonly hasData: [{
|
|
18
|
-
readonly type: "
|
|
19
|
-
readonly space: "
|
|
24
|
+
readonly type: "container";
|
|
25
|
+
readonly space: "cdf_cdm_3d";
|
|
20
26
|
readonly externalId: "Cognite360Image";
|
|
21
|
-
|
|
27
|
+
}];
|
|
28
|
+
};
|
|
29
|
+
export declare const isCoreDmImage360StationFilter: {
|
|
30
|
+
readonly hasData: [{
|
|
31
|
+
readonly type: "container";
|
|
32
|
+
readonly space: "cdf_cdm_3d";
|
|
33
|
+
readonly externalId: "Cognite3DGroup";
|
|
34
|
+
}];
|
|
35
|
+
};
|
|
36
|
+
export declare const isCoreDmImage360AnnotationFilter: {
|
|
37
|
+
readonly hasData: [{
|
|
38
|
+
readonly type: "container";
|
|
39
|
+
readonly space: "cdf_cdm_3d";
|
|
40
|
+
readonly externalId: "Cognite360ImageAnnotation";
|
|
41
|
+
}];
|
|
42
|
+
};
|
|
43
|
+
export declare const isCoreDmObject3DFilter: {
|
|
44
|
+
readonly hasData: [{
|
|
45
|
+
readonly type: "container";
|
|
46
|
+
readonly externalId: "Cognite3DObject";
|
|
47
|
+
readonly space: "cdf_cdm_3d";
|
|
48
|
+
}];
|
|
49
|
+
};
|
|
50
|
+
export declare const isCoreDmVisualizableFilter: {
|
|
51
|
+
readonly hasData: [{
|
|
52
|
+
readonly type: "container";
|
|
53
|
+
readonly externalId: "CogniteVisualizable";
|
|
54
|
+
readonly space: "cdf_cdm";
|
|
22
55
|
}];
|
|
23
56
|
};
|
|
@@ -22,21 +22,41 @@ export declare const CORE_DM_IMAGE_360_VIEW_REFERENCE: {
|
|
|
22
22
|
readonly externalId: "Cognite360Image";
|
|
23
23
|
readonly version: "v1";
|
|
24
24
|
};
|
|
25
|
+
export declare const CORE_DM_IMAGE_360_CONTAINER_REFERENCE: {
|
|
26
|
+
readonly type: "container";
|
|
27
|
+
readonly space: "cdf_cdm_3d";
|
|
28
|
+
readonly externalId: "Cognite360Image";
|
|
29
|
+
};
|
|
25
30
|
export declare const CORE_DM_IMAGE_360_COLLECTION_VIEW_REFERENCE: {
|
|
26
31
|
readonly type: "view";
|
|
27
32
|
readonly space: "cdf_cdm";
|
|
28
33
|
readonly externalId: "Cognite360ImageCollection";
|
|
29
34
|
readonly version: "v1";
|
|
30
35
|
};
|
|
36
|
+
export declare const CORE_DM_IMAGE_360_STATION_CONTAINER_REFERENCE: {
|
|
37
|
+
readonly type: "container";
|
|
38
|
+
readonly space: "cdf_cdm_3d";
|
|
39
|
+
readonly externalId: "Cognite3DGroup";
|
|
40
|
+
};
|
|
31
41
|
export declare const CORE_DM_IMAGE_360_ANNOTATION_VIEW_REFERENCE: {
|
|
32
42
|
readonly type: "view";
|
|
33
43
|
readonly space: "cdf_cdm";
|
|
34
44
|
readonly externalId: "Cognite360ImageAnnotation";
|
|
35
45
|
readonly version: "v1";
|
|
36
46
|
};
|
|
47
|
+
export declare const CORE_DM_IMAGE_360_ANNOTATION_CONTAINER_REFERENCE: {
|
|
48
|
+
readonly type: "container";
|
|
49
|
+
readonly space: "cdf_cdm_3d";
|
|
50
|
+
readonly externalId: "Cognite360ImageAnnotation";
|
|
51
|
+
};
|
|
37
52
|
export declare const CORE_DM_3D_REVISION_VIEW_REFERENCE: {
|
|
38
53
|
readonly type: "view";
|
|
39
54
|
readonly space: "cdf_cdm";
|
|
40
55
|
readonly externalId: "Cognite3DRevision";
|
|
41
56
|
readonly version: "v1";
|
|
42
57
|
};
|
|
58
|
+
export declare const CORE_DM_3D_REVISION_CONTAINER_REFERENCE: {
|
|
59
|
+
readonly type: "container";
|
|
60
|
+
readonly space: "cdf_cdm_3d";
|
|
61
|
+
readonly externalId: "Cognite3DRevision";
|
|
62
|
+
};
|
|
@@ -1,79 +1,108 @@
|
|
|
1
1
|
import { DMInstanceRef } from '../../../../../../utilities';
|
|
2
2
|
declare function createCollectionsQuery(instanceReferences: DMInstanceRef[]): {
|
|
3
|
-
with: {
|
|
4
|
-
image_collections: {
|
|
5
|
-
nodes: {
|
|
6
|
-
filter: {
|
|
7
|
-
|
|
3
|
+
readonly with: {
|
|
4
|
+
readonly image_collections: {
|
|
5
|
+
readonly nodes: {
|
|
6
|
+
readonly filter: {
|
|
7
|
+
readonly and: [{
|
|
8
|
+
readonly instanceReferences: DMInstanceRef[];
|
|
9
|
+
}, {
|
|
10
|
+
readonly and: [{
|
|
11
|
+
readonly hasData: [{
|
|
12
|
+
readonly type: "container";
|
|
13
|
+
readonly space: "cdf_cdm_3d";
|
|
14
|
+
readonly externalId: "Cognite3DRevision";
|
|
15
|
+
}];
|
|
16
|
+
}, {
|
|
17
|
+
readonly equals: {
|
|
18
|
+
readonly property: ["cdf_cdm_3d", "Cognite3DRevision", "type"];
|
|
19
|
+
readonly value: "Image360";
|
|
20
|
+
};
|
|
21
|
+
}];
|
|
22
|
+
}];
|
|
8
23
|
};
|
|
9
24
|
};
|
|
10
|
-
limit: number;
|
|
25
|
+
readonly limit: number;
|
|
11
26
|
};
|
|
12
|
-
images: {
|
|
13
|
-
nodes: {
|
|
14
|
-
from:
|
|
15
|
-
through: {
|
|
16
|
-
view: {
|
|
27
|
+
readonly images: {
|
|
28
|
+
readonly nodes: {
|
|
29
|
+
readonly from: "image_collections";
|
|
30
|
+
readonly through: {
|
|
31
|
+
readonly view: {
|
|
17
32
|
readonly externalId: "Cognite360Image";
|
|
18
33
|
readonly space: "cdf_cdm";
|
|
19
34
|
readonly version: "v1";
|
|
20
35
|
readonly type: "view";
|
|
21
36
|
};
|
|
22
|
-
identifier:
|
|
37
|
+
readonly identifier: "collection360";
|
|
38
|
+
};
|
|
39
|
+
readonly filter: {
|
|
40
|
+
readonly hasData: [{
|
|
41
|
+
readonly type: "container";
|
|
42
|
+
readonly space: "cdf_cdm_3d";
|
|
43
|
+
readonly externalId: "Cognite360Image";
|
|
44
|
+
}];
|
|
23
45
|
};
|
|
24
46
|
};
|
|
25
|
-
limit:
|
|
47
|
+
readonly limit: 10000;
|
|
26
48
|
};
|
|
27
|
-
stations: {
|
|
28
|
-
nodes: {
|
|
29
|
-
from:
|
|
30
|
-
through: {
|
|
31
|
-
view: {
|
|
49
|
+
readonly stations: {
|
|
50
|
+
readonly nodes: {
|
|
51
|
+
readonly from: "images";
|
|
52
|
+
readonly through: {
|
|
53
|
+
readonly view: {
|
|
32
54
|
readonly externalId: "Cognite360Image";
|
|
33
55
|
readonly space: "cdf_cdm";
|
|
34
56
|
readonly version: "v1";
|
|
35
57
|
readonly type: "view";
|
|
36
58
|
};
|
|
37
|
-
identifier:
|
|
59
|
+
readonly identifier: "station360";
|
|
60
|
+
};
|
|
61
|
+
readonly direction: "outwards";
|
|
62
|
+
readonly filter: {
|
|
63
|
+
readonly hasData: [{
|
|
64
|
+
readonly type: "container";
|
|
65
|
+
readonly space: "cdf_cdm_3d";
|
|
66
|
+
readonly externalId: "Cognite3DGroup";
|
|
67
|
+
}];
|
|
38
68
|
};
|
|
39
|
-
direction: "outwards";
|
|
40
69
|
};
|
|
41
|
-
limit:
|
|
70
|
+
readonly limit: 10000;
|
|
42
71
|
};
|
|
43
72
|
};
|
|
44
|
-
select: {
|
|
45
|
-
image_collections: {
|
|
46
|
-
sources: {
|
|
47
|
-
source: {
|
|
73
|
+
readonly select: {
|
|
74
|
+
readonly image_collections: {
|
|
75
|
+
readonly sources: [{
|
|
76
|
+
readonly source: {
|
|
48
77
|
readonly externalId: "Cognite360ImageCollection";
|
|
49
78
|
readonly space: "cdf_cdm";
|
|
50
79
|
readonly version: "v1";
|
|
51
80
|
readonly type: "view";
|
|
52
81
|
};
|
|
53
|
-
properties:
|
|
54
|
-
}
|
|
82
|
+
readonly properties: ["name"];
|
|
83
|
+
}];
|
|
55
84
|
};
|
|
56
|
-
images: {
|
|
57
|
-
sources: {
|
|
58
|
-
source: {
|
|
85
|
+
readonly images: {
|
|
86
|
+
readonly sources: [{
|
|
87
|
+
readonly source: {
|
|
59
88
|
readonly externalId: "Cognite360Image";
|
|
60
89
|
readonly space: "cdf_cdm";
|
|
61
90
|
readonly version: "v1";
|
|
62
91
|
readonly type: "view";
|
|
63
92
|
};
|
|
64
|
-
properties: ["translationX", "translationY", "translationZ", "eulerRotationX", "eulerRotationY", "eulerRotationZ", "scaleX", "scaleY", "scaleZ", "front", "back", "left", "right", "top", "bottom", "collection360", "station360", "takenAt"];
|
|
65
|
-
}
|
|
93
|
+
readonly properties: ["translationX", "translationY", "translationZ", "eulerRotationX", "eulerRotationY", "eulerRotationZ", "scaleX", "scaleY", "scaleZ", "front", "back", "left", "right", "top", "bottom", "collection360", "station360", "takenAt"];
|
|
94
|
+
}];
|
|
66
95
|
};
|
|
67
|
-
stations: {
|
|
68
|
-
sources: {
|
|
69
|
-
source: {
|
|
96
|
+
readonly stations: {
|
|
97
|
+
readonly sources: [{
|
|
98
|
+
readonly source: {
|
|
70
99
|
readonly externalId: "Cognite360ImageStation";
|
|
71
100
|
readonly space: "cdf_cdm";
|
|
72
101
|
readonly version: "v1";
|
|
73
102
|
readonly type: "view";
|
|
74
103
|
};
|
|
75
|
-
properties:
|
|
76
|
-
}
|
|
104
|
+
readonly properties: ["name"];
|
|
105
|
+
}];
|
|
77
106
|
};
|
|
78
107
|
};
|
|
79
108
|
};
|
|
@@ -13,5 +13,7 @@ export declare class CdfModelMetadataProvider implements ModelMetadataProvider {
|
|
|
13
13
|
} | undefined>;
|
|
14
14
|
getModelUri(modelIdentifier: ModelIdentifier, formatMetadata: BlobOutputMetadata): Promise<string>;
|
|
15
15
|
getModelOutputs(modelIdentifier: ModelIdentifier): Promise<BlobOutputMetadata[]>;
|
|
16
|
+
getModelUriForSignedFiles(): string;
|
|
16
17
|
private getRequestPath;
|
|
18
|
+
private getRequestPathForSignedFiles;
|
|
17
19
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SignedFileItem } from '../types';
|
|
2
|
+
export type MetadataWithSignedFiles<T> = {
|
|
3
|
+
/**
|
|
4
|
+
* Signed files metadata.
|
|
5
|
+
*/
|
|
6
|
+
readonly signedFiles: {
|
|
7
|
+
items: SignedFileItem[];
|
|
8
|
+
} | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* File Data with metadata.
|
|
11
|
+
*/
|
|
12
|
+
readonly fileData: T;
|
|
13
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ModelDataProvider } from '../ModelDataProvider';
|
|
2
|
+
import { ModelIdentifier } from '../ModelIdentifier';
|
|
3
|
+
import { SignedFileItem } from '../types';
|
|
2
4
|
import { CacheConfig, DataFileCacheManager } from '../../../utilities';
|
|
3
5
|
/**
|
|
4
6
|
* Wraps a ModelDataProvider with caching capabilities using the Cache API.
|
|
@@ -11,8 +13,16 @@ export declare class CachedModelDataProvider implements ModelDataProvider {
|
|
|
11
13
|
private readonly cacheManager;
|
|
12
14
|
constructor(baseProvider: ModelDataProvider, cacheConfig?: CacheConfig, cacheStorage?: CacheStorage);
|
|
13
15
|
getBinaryFile(baseUrl: string, fileName: string, abortSignal?: AbortSignal): Promise<ArrayBuffer>;
|
|
14
|
-
getJsonFile(baseUrl: string, fileName: string): Promise<
|
|
16
|
+
getJsonFile(baseUrl: string, fileName: string): Promise<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the Cache API key for a request. For classic requests, baseUrl+fileName is
|
|
19
|
+
* already stable. For signed URLs (baseUrl empty), the URL itself changes between
|
|
20
|
+
* issuances (fresh SAS token), so the query string is stripped, leaving the stable
|
|
21
|
+
* blob path as the key.
|
|
22
|
+
*/
|
|
23
|
+
private resolveCacheKey;
|
|
15
24
|
private fetchWithCache;
|
|
25
|
+
getFileUrlsForModel(baseUrl: string, modelIdentifier: ModelIdentifier, fileNameFilter?: string): Promise<SignedFileItem[]>;
|
|
16
26
|
/**
|
|
17
27
|
* Get the underlying cache manager for direct cache operations
|
|
18
28
|
*/
|
|
@@ -25,4 +35,5 @@ export declare class CachedModelDataProvider implements ModelDataProvider {
|
|
|
25
35
|
* Clear all cached data
|
|
26
36
|
*/
|
|
27
37
|
clearCache(): Promise<void>;
|
|
38
|
+
private buildSignedFileCacheKey;
|
|
28
39
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CogniteClient } from '@cognite/sdk';
|
|
2
2
|
import { ModelDataProvider } from '../ModelDataProvider';
|
|
3
|
+
import { SignedFileItem } from '../types';
|
|
4
|
+
import { ModelIdentifier } from '../ModelIdentifier';
|
|
3
5
|
/**
|
|
4
6
|
* Provides 3D V2 specific extensions for the standard CogniteClient used by Reveal.
|
|
5
7
|
*/
|
|
@@ -9,5 +11,6 @@ export declare class CdfModelDataProvider implements ModelDataProvider {
|
|
|
9
11
|
constructor(client: CogniteClient);
|
|
10
12
|
getBinaryFile(baseUrl: string, fileName: string, abortSignal?: AbortSignal): Promise<ArrayBuffer>;
|
|
11
13
|
getJsonFile(baseUrl: string, fileName: string): Promise<any>;
|
|
14
|
+
getFileUrlsForModel(baseUrl: string, modelIdentifier: ModelIdentifier, fileNameFilter?: string): Promise<SignedFileItem[]>;
|
|
12
15
|
private fetchWithRetry;
|
|
13
16
|
}
|