-
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.
Merge branch 'master' into hflatval/poi-functionality
- Loading branch information
Showing
53 changed files
with
911 additions
and
430 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
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
10 changes: 10 additions & 0 deletions
10
react-components/src/architecture/base/concreteCommands/cad/CadDividerCommand.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,10 @@ | ||
/*! | ||
* Copyright 2024 Cognite AS | ||
*/ | ||
import { DividerCommand } from '../../commands/DividerCommand'; | ||
|
||
export class CadDividerCommand extends DividerCommand { | ||
public override get isVisible(): boolean { | ||
return this.renderTarget.getCadModels().next().value !== undefined; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
react-components/src/architecture/base/concreteCommands/cad/SetGhostModeCommand.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,33 @@ | ||
/*! | ||
* Copyright 2024 Cognite AS | ||
*/ | ||
|
||
import { RenderTargetCommand } from '../../commands/RenderTargetCommand'; | ||
import { type TranslateKey } from '../../utilities/TranslateKey'; | ||
|
||
export class SetGhostModeCommand extends RenderTargetCommand { | ||
// ================================================== | ||
// OVERRIDES | ||
// ================================================== | ||
|
||
public override get tooltip(): TranslateKey { | ||
return { key: 'GHOST_MODE', fallback: 'Ghost mode' }; | ||
} | ||
|
||
public override get isEnabled(): boolean { | ||
return true; | ||
} | ||
|
||
public override get isToggle(): boolean { | ||
return true; | ||
} | ||
|
||
public override get isChecked(): boolean { | ||
return this.renderTarget.ghostMode; | ||
} | ||
|
||
protected override invokeCore(): boolean { | ||
this.renderTarget.ghostMode = !this.renderTarget.ghostMode; | ||
return true; | ||
} | ||
} |
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
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
48 changes: 0 additions & 48 deletions
48
react-components/src/architecture/base/utilities/geometry/Points.ts
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
react-components/src/architecture/base/utilities/geometry/Polyline.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.