improved mapitem opening scaling regarding surounding contents

ex: double cartouche for superpositions
This commit is contained in:
2023-09-19 16:08:21 +02:00
parent 36e88290e6
commit e490195d36
4 changed files with 60 additions and 31 deletions

View File

@@ -7,6 +7,7 @@ export const CommonStore = defineStore({
state: () => ({
hover_elmt: null,
map_item_ray: Math.min(window.innerWidth, window.innerHeight) * 0.08,
original_cartouch_width: 450,
cartouch_width: 450,
cartouch_is_opened: false,
paper_symbol_definitions: {}
@@ -20,6 +21,10 @@ export const CommonStore = defineStore({
// mode can be : terraindevie, proximite, superposition, puissancedagir, action, doleancer
this.hover_elmt = elmt;
},
setCartoucheWidth (delta) {
console.log('CommonStore setCartoucheWidth', delta);
this.cartouch_width = this.original_cartouch_width * delta;
},
setCartoucheOpened (v) {
this.cartouch_is_opened = v;
},