Browse Source

fix bg decalage #2195

bach 10 months ago
parent
commit
654843bfc9
2 changed files with 10 additions and 2 deletions
  1. 10 0
      src/components/MapConcernements.vue
  2. 0 2
      src/main.js

+ 10 - 0
src/components/MapConcernements.vue

@@ -219,6 +219,16 @@ export default {
       let ray = this.map_item_ray;
       let pos = {x:0, y:0};
 
+      // big global exterior circle to keep center aligned
+      children.push(new paper.Path.Circle({
+        center: [0, 0],
+        radius: ray*3,
+        style: {
+          strokeColor: 'rgba(255,255,255,0)',
+          strokeWidth: 0.5
+        }
+      }));
+
       // cercles pointillés
       for (let i = 1; i < 9; i++) {
         let sw = i === 4 || i === 8 ? 0.5 : 0.25;

+ 0 - 2
src/main.js

@@ -15,8 +15,6 @@ import VuePlyr from 'vue-plyr'
 import 'vue-plyr/dist/vue-plyr.css'
 
 const app = createApp(App)
-// https://vuejs.org/guide/components/provide-inject.html#provide
-app.config.unwrapInjectedRef = true;
 
 const pinia = createPinia()
 pinia.use( ({store}) => { store.router = router } )