point bleu entite ouverte #2256

This commit is contained in:
2023-07-19 12:55:57 +02:00
parent 4800d99ed7
commit 2bea597981
3 changed files with 32 additions and 5 deletions

View File

@@ -1124,7 +1124,23 @@ export default {
this.paper_main_object.children.doleance_icon.visible = false;
}
}
// focus on opened entite
if (this.is_opened && this.opened_entite_id && (this.map_mode === 'terraindevie' || this.map_mode === 'action')) {
let group = this.map_mode === 'terraindevie' ? this.paper_main_object.children['entites'] : this.paper_main_object.children['agissantes'];
if(group){
group.children.forEach((item) => {
if (item.item_id === this.opened_entite_id) {
item.definition = item.item_type === 'entite' ? this.paper_symbol_definitions.entite_hover : this.paper_symbol_definitions.entite_action_hover;
} else {
if (!this.hover_elmt || item.item_id !== this.hover_elmt.id) {
item.definition = item.item_type === 'entite' ? this.paper_symbol_definitions.entite : this.paper_symbol_definitions.entite_action;
}
}
})
}
}
},
// PAPER EVENTS
initPaperEvents(){