bugfix highlighting entite on opened superposed mapitem

This commit is contained in:
Bachir Soussi Chiadmi 2023-09-20 16:06:29 +02:00
parent db51224556
commit aa087e6694

View File

@ -1196,12 +1196,12 @@ export default {
if (this.map_mode === "superposition") {
this.paper_main_object.children.entites_superposes.visible = true;
// highlight of entite part of opened superposition
let group = this.paper_main_object.children['entites_superposes'];
if(group){
if (this.$route.query.superposition_id) {
let superposition_id = this.$route.query.superposition_id;
if(superposition_id){
let ids = superposition_id.match(/(\d+)_(\d+)__(\d+)_(\d+)/i)
let group = this.paper_main_object.children['entites_superposes'];
if(group){
group.children.forEach((item) => {
if ( (this.cid === parseInt(ids[1]) && item.item_id === parseInt(ids[2]))
|| (this.cid === parseInt(ids[3]) && item.item_id === parseInt(ids[4])) ) {
@ -1219,6 +1219,16 @@ export default {
}
})
}
}else{
group.children.forEach((item) => {
if(!this.is_hover) {
item.definition = this.paper_symbol_definitions.entite;
if (item.focused) {
item.scale(0.5)
item.focused = false;
}
}
})
}
}
} else {