refactor(es modules): continue migration

This commit is contained in:
Azgaar 2022-06-25 18:03:38 +03:00
parent 030caec6e8
commit a929667796
16 changed files with 30 additions and 16 deletions

View file

@ -1,4 +1,5 @@
import {findCell} from "/src/utils/graphUtils";
import {byId} from "/src/utils/shorthands";
// restore default viewbox events
function restoreDefaultEvents() {

View file

@ -1,5 +1,6 @@
import {findGridCell, findGridAll, findCell, getPackPolygon, getGridPolygon} from "/src/utils/graphUtils";
import {last} from "/src/utils/arrayUtils";
import {last, createTypedArray} from "/src/utils/arrayUtils";
import {byId} from "/src/utils/shorthands";
export function editHeightmap(options) {
const {mode, tool} = options || {};

View file

@ -1,5 +1,6 @@
"use strict";
function editNamesbase() {
import {unique} from "/src/utils/arrayUtils";
export function editNamesbase() {
if (customization) return;
closeDialogs("#namesbaseEditor, .stable");
$("#namesbaseEditor").dialog();

View file

@ -1,7 +1,6 @@
import {stored, lock, locked, applyOption} from "./general";
import {last} from "/src/utils/arrayUtils";
import {byId} from "/src/utils/shorthands";
import {last} from "/src/utils/arrayUtils";
$("#optionsContainer").draggable({handle: ".drag-trigger", snap: "svg", snapMode: "both"});
$("#exitCustomization").draggable({handle: "div"});

View file

@ -1,4 +1,5 @@
import {findAll, findCell, getPackPolygon, isLand} from "/src/utils/graphUtils";
import {unique} from "/src/utils/arrayUtils";
export function editProvinces() {
if (customization) return;

View file

@ -1,4 +1,5 @@
import {findAll, findCell, getPackPolygon} from "/src/utils/graphUtils";
import {unique} from "/src/utils/arrayUtils";
export function editZones() {
closeDialogs();