mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
refactor(es modules): set up alias
This commit is contained in:
parent
f9aeaddf52
commit
11df349394
4 changed files with 15 additions and 4 deletions
|
|
@ -13,7 +13,6 @@ import {restoreDefaultEvents} from "./scripts/events";
|
|||
import {addGlobalListeners} from "./scripts/listeners";
|
||||
import {locked} from "./scripts/options/lock";
|
||||
import {clearMainTip, tip} from "./scripts/tooltips";
|
||||
import {createTypedArray} from "./utils/arrayUtils";
|
||||
import {
|
||||
calculateVoronoi,
|
||||
findCell,
|
||||
|
|
@ -23,6 +22,7 @@ import {
|
|||
shouldRegenerateGrid
|
||||
} from "./utils/graphUtils";
|
||||
import {rn, minmax, normalize} from "./utils/numberUtils";
|
||||
import {createTypedArray} from "./utils/arrayUtils";
|
||||
import {byId} from "./utils/shorthands";
|
||||
import "./components";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {UINT16_MAX, UINT32_MAX, UINT8_MAX} from "../constants";
|
||||
import {UINT8_MAX, UINT16_MAX, UINT32_MAX} from "@/constants";
|
||||
|
||||
export function last<T>(array: T[]) {
|
||||
return array[array.length - 1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue