mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
v 0.8.20b
This commit is contained in:
parent
f7a9485da4
commit
dc7ebd7491
3 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ function editBurg() {
|
|||
elSelected = burgLabels.select("[data-id='" + id + "']");
|
||||
burgLabels.selectAll("text").call(d3.drag().on("start", dragBurgLabel)).classed("draggable", true);
|
||||
|
||||
selectBurgGroup(event.target);
|
||||
selectBurgGroup(d3.event.target);
|
||||
document.getElementById("burgNameInput").value = elSelected.text();
|
||||
const my = elSelected.attr("id") == d3.event.target.id ? "center bottom" : "center top+10";
|
||||
const at = elSelected.attr("id") == d3.event.target.id ? "top" : "bottom";
|
||||
|
|
|
|||
|
|
@ -575,7 +575,7 @@ function fetchTextureURL(url) {
|
|||
|
||||
// Style map filters handler
|
||||
mapFilters.addEventListener("click", applyMapFilter);
|
||||
function applyMapFilter() {
|
||||
function applyMapFilter(event) {
|
||||
if (event.target.tagName !== "BUTTON") return;
|
||||
const button = event.target;
|
||||
svg.attr("filter", null);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// module to control the Tools options (click to edit, to re-geenerate, tp add)
|
||||
"use strict";
|
||||
|
||||
toolsContent.addEventListener("click", function() {
|
||||
toolsContent.addEventListener("click", function(event) {
|
||||
if (customization) {tip("Please exit the customization mode first", false, "warning"); return;}
|
||||
if (event.target.tagName !== "BUTTON") return;
|
||||
const button = event.target.id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue