mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
refactor: migrate heightmap editor
This commit is contained in:
parent
a97e7f44f6
commit
a15f60150f
26 changed files with 103 additions and 80 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import * as d3 from "d3";
|
||||
|
||||
import {restoreDefaultEvents} from "scripts/events";
|
||||
import {findCell} from "utils/graphUtils";
|
||||
import {byId} from "utils/shorthands";
|
||||
import {tip} from "scripts/tooltips";
|
||||
import {rn, minmax, normalize} from "utils/numberUtils";
|
||||
import {parseTransform} from "utils/stringUtils";
|
||||
import {findCell} from "utils/graphUtils";
|
||||
import {minmax, normalize, rn} from "utils/numberUtils";
|
||||
import {each} from "utils/probabilityUtils";
|
||||
import {byId} from "utils/shorthands";
|
||||
import {parseTransform} from "utils/stringUtils";
|
||||
|
||||
// clear elSelected variable
|
||||
export function unselect() {
|
||||
|
|
@ -650,7 +650,7 @@ function fog(id, path) {
|
|||
}
|
||||
|
||||
// remove fogging
|
||||
function unfog(id) {
|
||||
export function unfog(id) {
|
||||
let el = defs.select("#fog #" + id);
|
||||
if (!id || !el.size()) el = defs.select("#fog").selectAll("path");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue