mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
style(burgs): some presets change, new icons
This commit is contained in:
parent
d6335b034b
commit
e80c98aea3
6 changed files with 320 additions and 206 deletions
|
|
@ -252,16 +252,19 @@ function editBurg(id) {
|
|||
|
||||
function editGroupLabelStyle() {
|
||||
const g = elSelected.node().parentNode.id;
|
||||
closeDialogs(".stable");
|
||||
editStyle("labels", g);
|
||||
}
|
||||
|
||||
function editGroupIconStyle() {
|
||||
const g = elSelected.node().parentNode.id;
|
||||
closeDialogs(".stable");
|
||||
editStyle("burgIcons", g);
|
||||
}
|
||||
|
||||
function editGroupAnchorStyle() {
|
||||
const g = elSelected.node().parentNode.id;
|
||||
closeDialogs(".stable");
|
||||
editStyle("anchors", g);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -866,12 +866,12 @@ styleFontSize.on("change", function () {
|
|||
|
||||
styleFontPlus.on("click", function () {
|
||||
const current = +styleFontSize.value || 12;
|
||||
changeFontSize(getEl(), Math.min(current + 1, 999));
|
||||
changeFontSize(getEl(), Math.min(rn(current + 0.1, 1), 999));
|
||||
});
|
||||
|
||||
styleFontMinus.on("click", function () {
|
||||
const current = +styleFontSize.value || 12;
|
||||
changeFontSize(getEl(), Math.max(current - 1, 1));
|
||||
changeFontSize(getEl(), Math.max(rn(current - 0.1, 1), 0.1));
|
||||
});
|
||||
|
||||
function changeFontSize(el, size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue