mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
utils import is now condensed into "/utils"
This commit is contained in:
parent
743e9bbbb1
commit
3b6f8349ef
2 changed files with 25 additions and 12 deletions
|
|
@ -3,12 +3,7 @@ import * as d3 from "d3";
|
|||
import { closeDialogs } from "dialogs/utils";
|
||||
import { layerIsOn, toggleLayer } from "layers";
|
||||
import { clearMainTip, tip } from "scripts/tooltips";
|
||||
import {findGridCell, getGridPolygon} from "utils/graphUtils";
|
||||
import {getInputNumber} from "utils/nodeUtils";
|
||||
import {rn} from "utils/numberUtils";
|
||||
import {rand} from "utils/probabilityUtils";
|
||||
import {byId} from "utils/shorthands";
|
||||
import {parseTransform} from "utils/stringUtils";
|
||||
import { byId, findGridCell, getGridPolygon, getInputNumber, parseTransform, rand, rn } from "utils";
|
||||
// @ts-expect-error js module
|
||||
import { editStyle } from "modules/style";
|
||||
import { setDefaultEventHandlers } from "scripts/events";
|
||||
|
|
|
|||
18
src/utils/index.ts
Normal file
18
src/utils/index.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
export * from "./arrayUtils";
|
||||
export * from "./colorUtils";
|
||||
export * from "./coordinateUtils";
|
||||
export * from "./debugUtils";
|
||||
export * from "./errorUtils";
|
||||
export * from "./functionUtils";
|
||||
export * from "./graphUtils";
|
||||
export * from "./keyboardUtils";
|
||||
export * from "./languageUtils";
|
||||
export * from "./lineUtils";
|
||||
export * from "./linkUtils";
|
||||
export * from "./nodeUtils";
|
||||
export * from "./numberUtils";
|
||||
export * from "./probabilityUtils";
|
||||
export * from "./shorthands";
|
||||
export * from "./stringUtils";
|
||||
export * from "./typeUtils";
|
||||
export * from "./unitUtils";
|
||||
Loading…
Add table
Add a link
Reference in a new issue