fix import in scripts/events for modules/legend

This commit is contained in:
kruschen 2024-08-26 21:20:18 +00:00
parent 09591a180b
commit 7300d2eedd
2 changed files with 7 additions and 1 deletions

6
src/modules/legend.d.ts vendored Normal file
View file

@ -0,0 +1,6 @@
// src/modules/legend.d.ts
declare module 'modules/legend.js' {
export function clearLegend(): void;
export function dragLegendBox(): void;
// Add other exports as needed
}

View file

@ -4,7 +4,7 @@ import {openDialog} from "dialogs";
import {tip} from "scripts/tooltips";
import {handleMapClick} from "./onclick";
import {onMouseMove} from "./onhover";
import {clearLegend, dragLegendBox} from "modules/legend";
import {clearLegend, dragLegendBox} from "modules/legend.js"; //MARKER: modules/legend.js
export function setDefaultEventHandlers() {
window.Zoom.setZoomBehavior();