diff --git a/src/components/ConcernementMapItem.vue b/src/components/ConcernementMapItem.vue index 2c5f55c..5f00154 100644 --- a/src/components/ConcernementMapItem.vue +++ b/src/components/ConcernementMapItem.vue @@ -1147,6 +1147,8 @@ export default { opacity: 0 }); g.addChild(g_label); + // when we are re-setting the entitie (e.g. arfter one entity moved) also check the detail zoom and apply correct dim + g_label.opacity = -2 + this.detailsZoomValue; g_label.sendToBack(); // for (let i = 0; i < this.entites.length; i++) { for (let i = 0; i < this.concernement.revisions_byid[this.active_revision].entites.length; i++) { @@ -1236,6 +1238,7 @@ export default { label.addChild(label_bg); label_txt.insertAbove(label_bg); label_click_zone.insertAbove(label_txt); + label.scale(this.scale); // label.sendToBack(); g_label.addChild(label); @@ -2247,17 +2250,20 @@ export default { } }) } - let labels_group = this.paper_main_object.children['entites'].children['entites_labels']; - if (labels_group) { - labels_group.children.forEach((item) => { - if (this.opened_entite_id && item.item_id === parseInt(this.opened_entite_id) && item.item_type !== 'entite_hidden') { - item.bringToFront(); - item.children[0].strokeColor = "#01ffe2"; - }else{ - // item.children[0].strokeColor = "#fff"; - } - }) + if (this.paper_main_object.children && this.paper_main_object.children['entites']) { + let labels_group = this.paper_main_object.children['entites'].children['entites_labels']; + if (labels_group) { + labels_group.children.forEach((item) => { + if (this.opened_entite_id && item.item_id === parseInt(this.opened_entite_id) && item.item_type !== 'entite_hidden') { + item.bringToFront(); + item.children[0].strokeColor = "#01ffe2"; + }else{ + // item.children[0].strokeColor = "#fff"; + } + }) + } } + } @@ -2749,7 +2755,7 @@ export default { this.recordNewEntitePos(pid, af, mm, p) .then((parag) => { // then reload value - // redrawing entites is handle by watch concernement.entites + // redrawing entites is handled by watch concernement.entites this.reloadConcernementEntites(this.concernement.id) .then(() => { this.wait = false;