mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
fix import in scripts/events for modules/legend
This commit is contained in:
parent
09591a180b
commit
7300d2eedd
2 changed files with 7 additions and 1 deletions
6
src/modules/legend.d.ts
vendored
Normal file
6
src/modules/legend.d.ts
vendored
Normal 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
|
||||||
|
}
|
||||||
|
|
@ -4,7 +4,7 @@ import {openDialog} from "dialogs";
|
||||||
import {tip} from "scripts/tooltips";
|
import {tip} from "scripts/tooltips";
|
||||||
import {handleMapClick} from "./onclick";
|
import {handleMapClick} from "./onclick";
|
||||||
import {onMouseMove} from "./onhover";
|
import {onMouseMove} from "./onhover";
|
||||||
import {clearLegend, dragLegendBox} from "modules/legend";
|
import {clearLegend, dragLegendBox} from "modules/legend.js"; //MARKER: modules/legend.js
|
||||||
|
|
||||||
export function setDefaultEventHandlers() {
|
export function setDefaultEventHandlers() {
|
||||||
window.Zoom.setZoomBehavior();
|
window.Zoom.setZoomBehavior();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue