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

@@ -274,7 +274,9 @@ export default {
...mapActions(CommonStore,['addPaperSymbolDefinition',
'setHoverElmt']),
animate () {
Matter.Engine.update(this.engine, 1);
// if (document.hasFocus()) {
Matter.Engine.update(this.engine, 1);
// }
window.requestAnimationFrame(this.animate);
},
initPaperSymbols(){
@@ -1060,7 +1062,7 @@ export default {
})
},
async setSuperpositionsMatterConstraints(){
await nextTick(); // wait for dom to be upadted before applying consraint
await nextTick(); // wait for dom to be upadted before applying constraint
console.log('setSuperpositionsMatterConstraints this.allSuperpositions', this.allSuperpositions);
// loop through all supperposition couple