From c95f4daadaa4bc12ee4a3a6034eef3ec880002cf Mon Sep 17 00:00:00 2001 From: Nils Petter Fremming Date: Tue, 27 Aug 2024 09:18:39 +0200 Subject: [PATCH 1/3] Update SettingsButton.tsx --- react-components/src/components/Architecture/SettingsButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/react-components/src/components/Architecture/SettingsButton.tsx b/react-components/src/components/Architecture/SettingsButton.tsx index 5b08ae0df96..765ff212498 100644 --- a/react-components/src/components/Architecture/SettingsButton.tsx +++ b/react-components/src/components/Architecture/SettingsButton.tsx @@ -209,6 +209,7 @@ function createOptionButton(command: BaseOptionCommand, t: TranslateDelegate): R } function createFilterButton(command: BaseFilterCommand, t: TranslateDelegate): ReactElement { + command.initializeChildrenIfNeeded(); if (!command.isVisible) { return <>; } From 758421afdb209b9d0fec952f268b7fbd2a201894 Mon Sep 17 00:00:00 2001 From: Nils Petter Fremming Date: Tue, 27 Aug 2024 09:27:11 +0200 Subject: [PATCH 2/3] Forgot one class in the file --- react-components/src/architecture/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/react-components/src/architecture/index.ts b/react-components/src/architecture/index.ts index 3731dffaccb..caff433b44c 100644 --- a/react-components/src/architecture/index.ts +++ b/react-components/src/architecture/index.ts @@ -5,6 +5,7 @@ export type { CommandUpdateDelegate } from './base/commands/BaseCommand'; export { BaseCommand } from './base/commands/BaseCommand'; export { BaseFilterCommand } from './base/commands/BaseFilterCommand'; +export { BaseFilterItemCommand } from './base/commands/BaseFilterCommand'; export { BaseOptionCommand } from './base/commands/BaseOptionCommand'; export { BaseSliderCommand } from './base/commands/BaseSliderCommand'; export { BaseTool } from './base/commands/BaseTool'; From c695bdddf2dfa26d7a67b92d8fbc9fb437b1ac2c Mon Sep 17 00:00:00 2001 From: Nils Petter Fremming Date: Tue, 27 Aug 2024 09:27:24 +0200 Subject: [PATCH 3/3] Add new component --- .../src/components/Architecture/RevealButtons.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react-components/src/components/Architecture/RevealButtons.tsx b/react-components/src/components/Architecture/RevealButtons.tsx index 8355b47be2a..ae30c699054 100644 --- a/react-components/src/components/Architecture/RevealButtons.tsx +++ b/react-components/src/components/Architecture/RevealButtons.tsx @@ -14,11 +14,15 @@ import { KeyboardSpeedCommand } from '../../architecture/base/concreteCommands/K import { ObservationsTool } from '../../architecture/concrete/observations/ObservationsTool'; import { createButtonFromCommandConstructor } from './CommandButtons'; import { SettingsCommand } from '../../architecture/base/concreteCommands/SettingsCommand'; +import { PointCloudFilterCommand } from '../../architecture'; export class RevealButtons { static Settings = (): ReactElement => createButtonFromCommandConstructor(() => new SettingsCommand()); + static PointCloudFilter = (): ReactElement => + createButtonFromCommandConstructor(() => new PointCloudFilterCommand()); + static FitView = (): ReactElement => createButtonFromCommandConstructor(() => new FitViewCommand());