feat: relief three.js renderer

This commit is contained in:
Azgaar 2026-03-09 02:47:13 +01:00
parent 7a49098425
commit 7481a2843e
19 changed files with 828 additions and 120 deletions

View file

@ -1,6 +1,6 @@
import type { Selection } from "d3";
import type { NameBase } from "../modules/names-generator";
import type { PackedGraph } from "./PackedGraph";
import type {Selection} from "d3";
import type {NameBase} from "../modules/names-generator";
import type {PackedGraph} from "./PackedGraph";
declare global {
var seed: string;
@ -11,7 +11,7 @@ declare global {
var TIME: boolean;
var WARN: boolean;
var ERROR: boolean;
var DEBUG: { stateLabels?: boolean; [key: string]: boolean | undefined };
var DEBUG: {stateLabels?: boolean; [key: string]: boolean | undefined};
var options: any;
var heightmapTemplates: any;
@ -66,9 +66,9 @@ declare global {
};
var notes: any[];
var style: {
burgLabels: { [key: string]: { [key: string]: string } };
burgIcons: { [key: string]: { [key: string]: string } };
anchors: { [key: string]: { [key: string]: string } };
burgLabels: {[key: string]: {[key: string]: string}};
burgIcons: {[key: string]: {[key: string]: string}};
anchors: {[key: string]: {[key: string]: string}};
[key: string]: any;
};
@ -81,12 +81,14 @@ declare global {
message: string,
autoHide?: boolean,
type?: "info" | "warn" | "error" | "success",
timeout?: number,
timeout?: number
) => void;
var locked: (settingId: string) => boolean;
var unlock: (settingId: string) => void;
var $: (selector: any) => any;
var scale: number;
var viewX: number;
var viewY: number;
var changeFont: () => void;
var getFriendlyHeight: (coords: [number, number]) => string;
}