mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
parent
bf4b7b27b7
commit
6bc0ee2a50
1 changed files with 0 additions and 10 deletions
10
script.js
10
script.js
|
|
@ -6921,12 +6921,6 @@ function fantasyMap() {
|
||||||
if (!labels.select("#burgLabels").size()) {
|
if (!labels.select("#burgLabels").size()) {
|
||||||
labels.append("g").attr("id", "burgLabels");
|
labels.append("g").attr("id", "burgLabels");
|
||||||
$("#labels #capitals, #labels #towns").detach().appendTo($("#burgLabels"));
|
$("#labels #capitals, #labels #towns").detach().appendTo($("#burgLabels"));
|
||||||
labels.select("#burgLabels").selectAll("text").each(function() {
|
|
||||||
const id = this.getAttribute("id");
|
|
||||||
if (id === null || id === undefined) return;
|
|
||||||
this.removeAttribute("id");
|
|
||||||
this.setAttribute("data-id", +id.replace("manorLabel", ""));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!icons.select("#burgIcons").size()) {
|
if (!icons.select("#burgIcons").size()) {
|
||||||
|
|
@ -6945,10 +6939,6 @@ function fantasyMap() {
|
||||||
|
|
||||||
icons.select("#burgIcons").selectAll("circle").each(function() {
|
icons.select("#burgIcons").selectAll("circle").each(function() {
|
||||||
this.setAttribute("r", this.parentNode.getAttribute("size"));
|
this.setAttribute("r", this.parentNode.getAttribute("size"));
|
||||||
const id = this.getAttribute("id");
|
|
||||||
if (id === null || id === undefined) return;
|
|
||||||
this.removeAttribute("id");
|
|
||||||
this.setAttribute("data-id", +id.replace("manorIcon", ""));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
icons.selectAll("use").each(function() {
|
icons.selectAll("use").each(function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue