mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
feat: burg groups - image icons
This commit is contained in:
parent
c86f7de9de
commit
c29f3b73e8
9 changed files with 371 additions and 41 deletions
|
|
@ -279,6 +279,7 @@ function selectStyleElement() {
|
|||
|
||||
if (el.node().parentNode.id === "burgLabels") {
|
||||
styleFontShift.style.display = "block";
|
||||
styleFontShiftX.value = el.attr("data-dx") || 0;
|
||||
styleFontShiftY.value = el.attr("data-dy") || 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -892,6 +893,13 @@ function changeFontSize(el, size) {
|
|||
if (styleElementSelect.value === "legend") redrawLegend();
|
||||
}
|
||||
|
||||
styleFontShiftX.on("input", e => {
|
||||
getEl()
|
||||
.attr("data-dx", e.target.value)
|
||||
.selectAll("text")
|
||||
.attr("dx", e.target.value + "em");
|
||||
});
|
||||
|
||||
styleFontShiftY.on("input", e => {
|
||||
getEl()
|
||||
.attr("data-dy", e.target.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue