mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
refactor(styles): update burg styles for presets
This commit is contained in:
parent
4a08f617bb
commit
c16d292304
18 changed files with 230 additions and 1785 deletions
|
|
@ -271,7 +271,7 @@ function selectStyleElement() {
|
|||
styleStrokeInput.value = styleStrokeOutput.value = el.attr("stroke") || "#3a3a3a";
|
||||
styleStrokeWidthInput.value = el.attr("stroke-width") || 0;
|
||||
styleLetterSpacingInput.value = el.attr("letter-spacing") || 0;
|
||||
styleShadowInput.value = el.style("text-shadow") || "white 0 0 4px";
|
||||
styleShadowInput.value = el.style("text-shadow") || "";
|
||||
|
||||
styleFont.style.display = "block";
|
||||
styleSelectFont.value = el.attr("font-family");
|
||||
|
|
@ -769,10 +769,7 @@ stylePopulationUrbanStrokeInput.on("input", e => {
|
|||
});
|
||||
|
||||
styleBurgIconsIcon.on("change", e => {
|
||||
getEl()
|
||||
.attr("data-icon", e.target.value)
|
||||
.selectAll("use")
|
||||
.attr("href", d => e.target.value);
|
||||
getEl().attr("data-icon", e.target.value).selectAll("use").attr("href", e.target.value);
|
||||
});
|
||||
|
||||
styleBurgIconsIconSize.on("input", e => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue