misc
This commit is contained in:
parent
56f8a40555
commit
36275fb9f3
@ -41,7 +41,7 @@ html,body{
|
||||
height:100vh;
|
||||
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
overflow-y: hidden;
|
||||
// padding: 1rem 0;
|
||||
|
||||
#map-backgrounds{
|
||||
|
@ -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})
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user