mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-05 10:01:24 +01:00
refactor: clean up global variable declarations and improve type definitions
This commit is contained in:
parent
613e826133
commit
3ed3d0dbd8
8 changed files with 105 additions and 177 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue