Refactoring: add metatagging, add 'last edited by' element, add 'metacondition'

This commit is contained in:
Pieter Vander Vennet 2023-04-15 02:28:24 +02:00
parent 771783a31c
commit 105120060d
31 changed files with 217 additions and 142 deletions

View file

@ -205,6 +205,12 @@ export default class ThemeViewState implements SpecialVisualizationState {
*/
private miscSetup() {
this.userRelatedState.markLayoutAsVisited(this.layout)
this.selectedElement.addCallbackAndRunD(() => {
// As soon as we have a selected element, we clear it
// This is to work around maplibre, which'll _first_ register the click on the map and only _then_ on the feature
this.lastClickObject.features.setData([])
})
}
private initHotkeys() {