improved mapitem opening scaling regarding surounding contents
ex: double cartouche for superpositions
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user