mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Added 3D preview to Heightmap editor
This commit is contained in:
parent
9dab5f2a9d
commit
3b25e838af
8 changed files with 51152 additions and 2 deletions
|
|
@ -70,6 +70,20 @@ function removeCircle() {
|
|||
if (document.getElementById("brushCircle")) document.getElementById("brushCircle").remove();
|
||||
}
|
||||
|
||||
function hideCircle() {
|
||||
let circle = document.getElementById("brushCircle");
|
||||
if (circle) {
|
||||
circle.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function showCircle() {
|
||||
let circle = document.getElementById("brushCircle");
|
||||
if (circle) {
|
||||
circle.style.display = "";
|
||||
}
|
||||
}
|
||||
|
||||
// get browser-defined fit-content
|
||||
function fitContent() {
|
||||
return !window.chrome ? "-moz-max-content" : "fit-content";
|
||||
|
|
@ -557,4 +571,4 @@ function uploadFile(el, callback) {
|
|||
fileReader.readAsText(el.files[0], "UTF-8");
|
||||
el.value = "";
|
||||
fileReader.onload = loaded => callback(loaded.target.result);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue