diff --git a/react-components/package.json b/react-components/package.json index 1128e4f26ff..9e3d3971a96 100644 --- a/react-components/package.json +++ b/react-components/package.json @@ -1,6 +1,6 @@ { "name": "@cognite/reveal-react-components", - "version": "0.68.1", + "version": "0.68.2", "exports": { ".": { "import": "./dist/index.js", diff --git a/react-components/src/architecture/base/commands/BaseTool.ts b/react-components/src/architecture/base/commands/BaseTool.ts index ee713440ba8..6c954695cd2 100644 --- a/react-components/src/architecture/base/commands/BaseTool.ts +++ b/react-components/src/architecture/base/commands/BaseTool.ts @@ -23,15 +23,6 @@ import { UndoManager } from '../undo/UndoManager'; import { CommandChanges } from '../domainObjectsHelpers/CommandChanges'; import { ContextMenuUpdater } from '../reactUpdaters/ContextMenuUpdater'; -/** - * AnchorDialog - */ -export type AnchoredDialogContent = { - position: Vector3; - onCloseCallback: () => void; - contentCommands: BaseCommand[]; -}; - /** * Base class for interactions in the 3D viewer * Provides common functionality and virtual methods to be overridden by derived classes. @@ -286,3 +277,12 @@ export abstract class BaseTool extends RenderTargetCommand { return this._renderTarget?.contextMenuController.contextMenuPositionData !== undefined; } } + +/** + * AnchorDialog + */ +export type AnchoredDialogContent = { + position: Vector3; + onCloseCallback: () => void; + contentCommands: BaseCommand[]; +}; diff --git a/react-components/src/architecture/concrete/annotation360/Image360AnnotationDomainObject.ts b/react-components/src/architecture/concrete/annotation360/Image360AnnotationDomainObject.ts index 1449d935e9f..fdfd802e042 100644 --- a/react-components/src/architecture/concrete/annotation360/Image360AnnotationDomainObject.ts +++ b/react-components/src/architecture/concrete/annotation360/Image360AnnotationDomainObject.ts @@ -45,6 +45,10 @@ export class Image360AnnotationDomainObject extends LineDomainObject { return { untranslated: '360 image annotation' }; } + public override get hasPanelInfo(): boolean { + return false; + } + public override clone(what?: symbol): DomainObject { const clone = new Image360AnnotationDomainObject(this.connectedImageId); clone.copyFrom(this, what); diff --git a/react-components/src/architecture/concrete/annotations/BoxGizmoDomainObject.ts b/react-components/src/architecture/concrete/annotations/BoxGizmoDomainObject.ts index fa1885e3cf3..87ca7c1450e 100644 --- a/react-components/src/architecture/concrete/annotations/BoxGizmoDomainObject.ts +++ b/react-components/src/architecture/concrete/annotations/BoxGizmoDomainObject.ts @@ -43,10 +43,6 @@ export class BoxGizmoDomainObject extends BoxDomainObject { return style; } - public override get hasPanelInfo(): boolean { - return true; - } - public override clone(what?: symbol): DomainObject { const clone = new BoxGizmoDomainObject(); clone.copyFrom(this, what); diff --git a/react-components/src/architecture/concrete/annotations/CylinderGizmoDomainObject.ts b/react-components/src/architecture/concrete/annotations/CylinderGizmoDomainObject.ts index 9ecf8212ae5..df546f1ce59 100644 --- a/react-components/src/architecture/concrete/annotations/CylinderGizmoDomainObject.ts +++ b/react-components/src/architecture/concrete/annotations/CylinderGizmoDomainObject.ts @@ -43,10 +43,6 @@ export class CylinderGizmoDomainObject extends CylinderDomainObject { return style; } - public override get hasPanelInfo(): boolean { - return true; - } - public override clone(what?: symbol): DomainObject { const clone = new CylinderGizmoDomainObject(); clone.copyFrom(this, what);