bugfix highlighting entite on opened superposed mapitem
This commit is contained in:
parent
db51224556
commit
aa087e6694
@ -1196,12 +1196,12 @@ export default {
|
|||||||
if (this.map_mode === "superposition") {
|
if (this.map_mode === "superposition") {
|
||||||
this.paper_main_object.children.entites_superposes.visible = true;
|
this.paper_main_object.children.entites_superposes.visible = true;
|
||||||
// highlight of entite part of opened superposition
|
// highlight of entite part of opened superposition
|
||||||
|
let group = this.paper_main_object.children['entites_superposes'];
|
||||||
|
if(group){
|
||||||
if (this.$route.query.superposition_id) {
|
if (this.$route.query.superposition_id) {
|
||||||
let superposition_id = this.$route.query.superposition_id;
|
let superposition_id = this.$route.query.superposition_id;
|
||||||
if(superposition_id){
|
if(superposition_id){
|
||||||
let ids = superposition_id.match(/(\d+)_(\d+)__(\d+)_(\d+)/i)
|
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) => {
|
group.children.forEach((item) => {
|
||||||
if ( (this.cid === parseInt(ids[1]) && item.item_id === parseInt(ids[2]))
|
if ( (this.cid === parseInt(ids[1]) && item.item_id === parseInt(ids[2]))
|
||||||
|| (this.cid === parseInt(ids[3]) && item.item_id === parseInt(ids[4])) ) {
|
|| (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 {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user