diff --git a/src/components/ConcernementMapItem.vue b/src/components/ConcernementMapItem.vue index 706361c..feae364 100644 --- a/src/components/ConcernementMapItem.vue +++ b/src/components/ConcernementMapItem.vue @@ -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(){ diff --git a/src/components/MapConcernements.vue b/src/components/MapConcernements.vue index 2ed3b24..56d2426 100644 --- a/src/components/MapConcernements.vue +++ b/src/components/MapConcernements.vue @@ -57,6 +57,7 @@ export default { 'concernements', 'concernementsByID', 'opened_concernement', + 'opened_entite_id', 'opened_recit' ]), ...mapState(CommonStore,['map_item_ray']), @@ -173,7 +174,9 @@ export default { console.log(`symbol instance o.type:${o.type}, oitem`, oitem); switch (o.type) { case 'entite': - oitem.definition = this.paper_symbol_definitions.entite; + if (!this.opened_entite_id || this.opened_entite_id !== oitem.item_id) { + oitem.definition = this.paper_symbol_definitions.entite; + } break; case 'besoin': oitem.definition = this.paper_symbol_definitions.besoin; @@ -182,7 +185,9 @@ export default { oitem.definition = this.paper_symbol_definitions.reponse; break; case 'entite_action': - oitem.definition = this.paper_symbol_definitions.entite_action; + if (!this.opened_entite_id || this.opened_entite_id !== oitem.item_id) { + oitem.definition = this.paper_symbol_definitions.entite_action; + } break; } } diff --git a/src/components/contents/TerrainDeVie.vue b/src/components/contents/TerrainDeVie.vue index 9dd9bad..c7db2e2 100644 --- a/src/components/contents/TerrainDeVie.vue +++ b/src/components/contents/TerrainDeVie.vue @@ -108,7 +108,7 @@ export default { est menacé par est maintienu par -