This commit is contained in:
Azgaar 2019-11-18 01:07:36 +03:00
parent f5985a4374
commit 94badd833b
5 changed files with 42 additions and 7 deletions

View file

@ -66,6 +66,17 @@ function editHeightmap() {
applyTemplate.style.display = type === "keep" ? "none" : "inline-block";
convertImage.style.display = type === "keep" ? "none" : "inline-block";
// show finalize button
const box = exitCustomization.getBoundingClientRect();
exitCustomization.style.opacity = 0;
exitCustomization.style.right = (svgWidth + box.width) / 2 + "px";
exitCustomization.style.bottom = (svgHeight + box.height) / 2 + "px";
exitCustomization.style.transform = "scale(2)";
exitCustomization.style.display = "block";
d3.select("#exitCustomization")
.transition().duration(1000).style("opacity", 1)
.transition().duration(2000).ease(d3.easeSinInOut).style("right", "10px").style("bottom", "10px").style("transform", "scale(1)");
openBrushesPanel();
turnButtonOn("toggleHeight");
layersPreset.value = "heightmap";
@ -113,6 +124,7 @@ function editHeightmap() {
customizationMenu.style.display = "none";
toolsContent.style.display = "block";
layersPreset.disabled = false;
exitCustomization.style.display = "none"; // hide finalize button
restoreDefaultEvents();
clearMainTip();
closeDialogs();