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; height:100vh;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: hidden;
// padding: 1rem 0; // padding: 1rem 0;
#map-backgrounds{ #map-backgrounds{

View File

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