point bleu entite ouverte #2256
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user