From ab076c612f02b1e53c0b239c605f957236b36ebe Mon Sep 17 00:00:00 2001 From: bach Date: Sun, 16 Jul 2023 23:22:25 +0200 Subject: [PATCH] bug fix --- src/components/ConcernementMapItem.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/ConcernementMapItem.vue b/src/components/ConcernementMapItem.vue index bd2c7fc..9ff9bcd 100644 --- a/src/components/ConcernementMapItem.vue +++ b/src/components/ConcernementMapItem.vue @@ -463,13 +463,13 @@ export default { this.paper_main_object.addChild(this.setPaperContour()); if (this.concernement.has_puissancedagir) { - this.addNewPaperSymbolInstance('puissanceagir_icon'); + this.addNewPaperSymbolInstance('puissanceagir_icon', false, 0.7); } if (this.concernement.has_agissantes) { this.paper_main_object.addChild(this.setPaperAgissantesIcons()); } if (this.concernement.has_doleance) { - this.addNewPaperSymbolInstance('doleance_icon'); + this.addNewPaperSymbolInstance('doleance_icon', false, 0.7); } this.initPaperEvents() @@ -521,12 +521,13 @@ export default { } }); }, - addNewPaperSymbolInstance(name, back){ + addNewPaperSymbolInstance(name, back, scale){ let instance = new paper.SymbolItem(this.paper_symbol_definitions[name]); // , {x:0,y:0} instance.name = name; // instance.pivot = new paper.Point({x:0,y:0}); instance.position = this.pos; - instance.scale(this.scale*0.7); + let s = scale ? this.scale * scale : this.scale; + instance.scale(s); // instance.locked = true; this.paper_main_object.addChild(instance); if (back) {