This commit is contained in:
Bachir Soussi Chiadmi 2023-06-26 09:41:19 +02:00
parent 56f8a40555
commit 36275fb9f3
3 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ html,body{
height:100vh;
overflow-x: hidden;
overflow-y: auto;
overflow-y: hidden;
// padding: 1rem 0;
#map-backgrounds{

View File

@ -237,7 +237,7 @@ export default {
// console.log(`this.salientPoints ${this.concernement.id}`, this.salientPoints);
},
getJarvisEnvelopeConvexe(){
console.log(`getJarvisEnvelopeConvexe ${this.id}`, this.entites.length);
// console.log(`getJarvisEnvelopeConvexe ${this.id}`, this.entites.length);
// https://www.geeksforgeeks.org/convex-hull-using-jarvis-algorithm-or-wrapping/
// the most left point
let l, min_x = null;
@ -251,7 +251,7 @@ export default {
}
let p = l, q;
do {
console.log(`do while ${this.id}`, p);
// console.log(`do while ${this.id}`, p);
// Add current point to result
let entite = this.entites[p];
let farest = {
@ -1685,7 +1685,7 @@ export default {
// calcul opened size regarding window size
// let ch = this.canvas.height;
let s = this.canvas.height / (this.ray*2.8)
// debugger;
// opening tweening
this.tween = new Tween.Tween({s: this.scale, x: this.pos.x, y: this.pos.y, o: 0})

View File

@ -217,7 +217,7 @@ export const ConcernementsStore = defineStore({
console.log(`openCloseConcernements id: ${id}`);
var state;
this.concernements.forEach((c, i) => {
state = id == c.id;
state = id === c.id;
this.concernements[i].opened = this.concernementsByID[c.id].opened = state;
if (state) {
this.opened = c;