From 3932572746e8b690fec180d7c08101f14887ad4f Mon Sep 17 00:00:00 2001 From: anders-hopland Date: Thu, 8 Feb 2024 16:20:34 +0100 Subject: [PATCH] feat: Make it possible to change the position of a datamodels backed 360 collection (#4172) * Change signature of add360ImageOptions for datamodels to include AddImage360Options * Change public API signature --- viewer/packages/api/src/public/migration/Cognite3DViewer.ts | 3 ++- viewer/reveal.api.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/viewer/packages/api/src/public/migration/Cognite3DViewer.ts b/viewer/packages/api/src/public/migration/Cognite3DViewer.ts index cf2e4bcdb89..64f1f3c8272 100644 --- a/viewer/packages/api/src/public/migration/Cognite3DViewer.ts +++ b/viewer/packages/api/src/public/migration/Cognite3DViewer.ts @@ -844,7 +844,8 @@ export class Cognite3DViewer { */ async add360ImageSet( datasource: 'datamodels', - dataModelIdentifier: Image360DataModelIdentifier + dataModelIdentifier: Image360DataModelIdentifier, + add360ImageOptions?: AddImage360Options ): Promise; /** * Adds a set of 360 images to the scene from the /events API in Cognite Data Fusion. diff --git a/viewer/reveal.api.md b/viewer/reveal.api.md index 0a5d95b5648..6afa14a492d 100644 --- a/viewer/reveal.api.md +++ b/viewer/reveal.api.md @@ -339,7 +339,7 @@ export class ClusteredAreaCollection implements AreaCollection { // @public (undocumented) export class Cognite3DViewer { constructor(options: Cognite3DViewerOptions); - add360ImageSet(datasource: 'datamodels', dataModelIdentifier: Image360DataModelIdentifier): Promise; + add360ImageSet(datasource: 'datamodels', dataModelIdentifier: Image360DataModelIdentifier, add360ImageOptions?: AddImage360Options): Promise; add360ImageSet(datasource: 'events', eventFilter: { [key: string]: string; }, add360ImageOptions?: AddImage360Options): Promise;