refactor: clean up global variable declarations and improve type definitions

This commit is contained in:
Marc Emmanuel 2026-01-25 19:13:02 +01:00
parent 613e826133
commit 3ed3d0dbd8
8 changed files with 105 additions and 177 deletions

View file

@ -3,14 +3,7 @@ import type { Selection } from 'd3';
import { clipPoly,P,rn,round } from '../utils';
declare global {
interface Window {
OceanLayers: any;
}
var TIME: boolean;
var ERROR: boolean;
var grid: any;
var oceanLayers: Selection<SVGGElement, unknown, null, undefined>;
var OceanLayers: typeof OceanModule.prototype.draw;
}
class OceanModule {
private cells: any;
@ -25,10 +18,6 @@ class OceanModule {
this.oceanLayers = oceanLayers;
}
get grid(): any {
return grid;
}
randomizeOutline() {
const limits = [];
let odd = 0.2;