-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca195d4
commit 93bac8d
Showing
8 changed files
with
66 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
react-components/src/architecture/base/concreteCommands/SettingsCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/*! | ||
* Copyright 2024 Cognite AS | ||
*/ | ||
|
||
import { BaseSettingsCommand } from '../commands/BaseSettingsCommand'; | ||
import { SetQualityCommand } from './SetQualityCommand'; | ||
import { SetPointSizeCommand } from './SetPointSizeCommand'; | ||
import { SetPointColorTypeCommand } from './SetPointColorTypeCommand'; | ||
import { SetPointShapeCommand } from './SetPointShapeCommand'; | ||
import { PointCloudFilterCommand } from './PointCloudFilterCommand'; | ||
import { type TranslateKey } from '../utilities/TranslateKey'; | ||
|
||
export class SettingsCommand extends BaseSettingsCommand { | ||
// ================================================== | ||
// CONSTRUCTOR | ||
// ================================================== | ||
|
||
public constructor() { | ||
super(); | ||
|
||
this.add(new SetQualityCommand()); | ||
this.add(new SetPointSizeCommand()); | ||
this.add(new SetPointColorTypeCommand()); | ||
this.add(new SetPointShapeCommand()); | ||
this.add(new PointCloudFilterCommand()); | ||
} | ||
|
||
// ================================================== | ||
// OVERRIDES | ||
// ================================================== | ||
|
||
public override get tooltip(): TranslateKey { | ||
return { key: 'SETTINGS_TOOLTIP', fallback: 'Settings' }; | ||
} | ||
|
||
public override get icon(): string | undefined { | ||
return 'Settings'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters