mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-05 18:11:23 +01:00
refactor(es modules): temporary remove alias
This commit is contained in:
parent
4814bce58d
commit
4feed39d5c
68 changed files with 165 additions and 148 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {findCell} from "/src/utils/graphUtils";
|
||||
import {rn} from "/src/utils/numberUtils";
|
||||
import {rand, P, rw} from "@/utils/probabilityUtils";
|
||||
import {parseTransform} from "@/utils/stringUtils";
|
||||
import {rand, P, rw} from "/src/utils/probabilityUtils";
|
||||
import {parseTransform} from "/src/utils/stringUtils";
|
||||
|
||||
// update old .map version to the current one
|
||||
export function resolveVersionConflicts(version) {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import {findAll, findCell, getPackPolygon, isLand} from "/src/utils/graphUtils";
|
|||
import {tip, showMainTip, clearMainTip} from "/src/scripts/tooltips";
|
||||
import {byId} from "/src/utils/shorthands";
|
||||
import {rn} from "/src/utils/numberUtils";
|
||||
import {capitalize} from "@/utils/stringUtils";
|
||||
import {si} from "@/utils/unitUtils";
|
||||
import {abbreviate} from "@/utils/languageUtils";
|
||||
import {debounce} from "@/utils/functionUtils";
|
||||
import {capitalize} from "/src/utils/stringUtils";
|
||||
import {si} from "/src/utils/unitUtils";
|
||||
import {abbreviate} from "/src/utils/languageUtils";
|
||||
import {debounce} from "/src/utils/functionUtils";
|
||||
|
||||
const $body = insertEditorHtml();
|
||||
addListeners();
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import {findAll, findCell, getPackPolygon, isLand} from "/src/utils/graphUtils";
|
|||
import {tip, showMainTip, clearMainTip} from "/src/scripts/tooltips";
|
||||
import {byId} from "/src/utils/shorthands";
|
||||
import {rn} from "/src/utils/numberUtils";
|
||||
import {si} from "@/utils/unitUtils";
|
||||
import {abbreviate} from "@/utils/languageUtils";
|
||||
import {debounce} from "@/utils/functionUtils";
|
||||
import {si} from "/src/utils/unitUtils";
|
||||
import {abbreviate} from "/src/utils/languageUtils";
|
||||
import {debounce} from "/src/utils/functionUtils";
|
||||
|
||||
const $body = insertEditorHtml();
|
||||
addListeners();
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import {byId} from "/src/utils/shorthands";
|
|||
import {tip, showMainTip, clearMainTip} from "/src/scripts/tooltips";
|
||||
import {getRandomColor, getMixedColor} from "/src/utils/colorUtils";
|
||||
import {rn} from "/src/utils/numberUtils";
|
||||
import {rand, P} from "@/utils/probabilityUtils";
|
||||
import {si} from "@/utils/unitUtils";
|
||||
import {getAdjective} from "@/utils/languageUtils";
|
||||
import {rand, P} from "/src/utils/probabilityUtils";
|
||||
import {si} from "/src/utils/unitUtils";
|
||||
import {getAdjective} from "/src/utils/languageUtils";
|
||||
|
||||
const $body = insertEditorHtml();
|
||||
addListeners();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {shouldRegenerateGrid, generateGrid} from "/src/utils/graphUtils";
|
||||
import {byId} from "/src/utils/shorthands";
|
||||
import {generateSeed} from "@/utils/probabilityUtils";
|
||||
import {generateSeed} from "/src/utils/probabilityUtils";
|
||||
|
||||
const initialSeed = generateSeed();
|
||||
let graph = getGraph(grid);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {byId} from "/src/utils/shorthands";
|
||||
import {tip} from "/src/scripts/tooltips";
|
||||
import {capitalize} from "@/utils/stringUtils";
|
||||
import {capitalize} from "/src/utils/stringUtils";
|
||||
|
||||
appendStyleSheet();
|
||||
insertHtml();
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import {isWater} from "/src/utils/graphUtils";
|
|||
import {tip} from "/src/scripts/tooltips";
|
||||
import {byId} from "/src/utils/shorthands";
|
||||
import {rn} from "/src/utils/numberUtils";
|
||||
import {capitalize} from "@/utils/stringUtils";
|
||||
import {si, convertTemperature} from "@/utils/unitUtils";
|
||||
import {rollups} from "@/utils/functionUtils";
|
||||
import {capitalize} from "/src/utils/stringUtils";
|
||||
import {si, convertTemperature} from "/src/utils/unitUtils";
|
||||
import {rollups} from "/src/utils/functionUtils";
|
||||
|
||||
const entitiesMap = {
|
||||
states: {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {capitalize} from "@/utils/stringUtils";
|
||||
import {capitalize} from "/src/utils/stringUtils";
|
||||
|
||||
const capitalize = text => text.charAt(0).toUpperCase() + text.slice(1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue