mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v 0.8.02b
This commit is contained in:
parent
a90e26a713
commit
bf53458009
2 changed files with 9 additions and 2 deletions
|
|
@ -69,7 +69,13 @@ function addLabelOnClick() {
|
|||
const name = Names.getCulture(culture);
|
||||
const id = getNextId("label");
|
||||
|
||||
labels.select("#addedLabels").append("text").attr("id", id)
|
||||
let group = labels.select("#addedLabels");
|
||||
if (!group.size()) group = labels.append("g").attr("id", "addedLabels")
|
||||
.attr("fill", "#3e3e4b").attr("opacity", 1).attr("stroke", "#3a3a3a")
|
||||
.attr("stroke-width", 0).attr("font-family", "Almendra SC").attr("data-font", "Almendra+SC")
|
||||
.attr("font-size", 18).attr("data-size", 18).attr("filter", null);
|
||||
|
||||
group.append("text").attr("id", id)
|
||||
.append("textPath").attr("xlink:href", "#textPath_"+id).text(name)
|
||||
.attr("startOffset", "50%").attr("font-size", "100%");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue