Skip to content

Commit

Permalink
Fix/2562/Selected-color-building-in-delta-mode (#2603)
Browse files Browse the repository at this point in the history
* Set delta color for whole building when selected
#2562

* Set delta color for whole building when selected
#2562

* Fix test and update CHANGELOG.md
#2562
  • Loading branch information
Hall-Ma committed Jan 14, 2022
1 parent 7f2723f commit 72a227b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/)

### Fixed 🐞

- Fix color of selected building in delta mode [#2603](https://github.com/MaibornWolff/codecharta/pull/2603)
- Fix link to news page when clicking 'Know more' button changelog dialog [#2602](https://github.com/MaibornWolff/codecharta/pull/2602)

## [1.87.0] - 2022-01-11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ CodeMapBuilding {
},
"_color": "#EB8319",
"_defaultColor": "#ddcc00",
"_defaultDeltaColor": "#000000",
"_deltaColor": "#000000",
"_defaultDeltaColor": "#EB8319",
"_deltaColor": "#EB8319",
"_id": 1,
"_node": Object {
"attributes": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class CodeMapMesh {

selectBuilding(building: CodeMapBuilding, color: string) {
building.setColor(color)
building.setDeltaColor(color)
this.setVertexColor(building.id, building.getColorVector(), building.getDefaultDeltaColorVector())
this.updateVertices()
}
Expand Down

0 comments on commit 72a227b

Please sign in to comment.