Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/3193/custom config todo due #3196

Merged
merged 8 commits into from
Jan 13, 2023
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/)

- Add an option to hide floor labels under the Area Metric Options. This recalculates the map. [#3175](https://github.com/MaibornWolff/codecharta/pull/3175)

### Chore 👨‍💻 👩‍💻
### Removed 🗑

- Add attribute descriptors (metric descriptions) to TokeiImporter and SVNlogParser [#3176](https://github.com/MaibornWolff/codecharta/pull/3176)
- Camera settings for custom views generated with version 1.101.1 and earlier are now ignored. [#3196](https://github.com/MaibornWolff/codecharta/pull/3196)

### Fixed 🐞

- Reposition legend panel button again, when attribute sidebar is open [#3183](https://github.com/MaibornWolff/codecharta/pull/3183)

### Chore 👨‍💻 👩‍💻

- Add attribute descriptors (metric descriptions) to TokeiImporter and SVNlogParser [#3176](https://github.com/MaibornWolff/codecharta/pull/3176)

## [1.113.0] - 2022-12-15

### Changed
Expand Down
14 changes: 0 additions & 14 deletions visualization/app/codeCharta/util/customConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ export class CustomConfigHelper {
threeOrbitControlsService: ThreeOrbitControlsService
) {
const customConfig = this.getCustomConfigSettings(configId)
CustomConfigHelper.transformLegacyCameraSettingsOfCustomConfig(customConfig)
CustomConfigHelper.deleteUnusedKeyPropsOfCustomConfig(customConfig)

store.dispatch(setState(customConfig.stateSettings))
Expand All @@ -230,19 +229,6 @@ export class CustomConfigHelper {
}
}

// TODO [2023-01-01] remove support
private static transformLegacyCameraSettingsOfCustomConfig(customConfig: any) {
const appSettings = customConfig.stateSettings.appSettings
if (appSettings.camera || appSettings.cameraTarget) {
customConfig.camera = {
camera: appSettings.camera,
cameraTarget: appSettings.cameraTarget
}
delete customConfig.stateSettings.appSettings.camera
delete customConfig.stateSettings.appSettings.cameraTarget
}
}

// TODO [2023-04-01] remove support
private static deleteUnusedKeyPropsOfCustomConfig(customConfig: any) {
if (customConfig.stateSettings.treeMap || customConfig.stateSettings.fileSettings.attributeTypes) {
Expand Down