mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
feat(styles): add anchor styling for burgs in multiple themes
This commit is contained in:
parent
bd05453e63
commit
4a08f617bb
9 changed files with 1607 additions and 1 deletions
|
|
@ -327,6 +327,8 @@ function addStylePreset() {
|
|||
const burgLabelsAttributes = [
|
||||
"opacity",
|
||||
"fill",
|
||||
"stroke",
|
||||
"stroke-width",
|
||||
"style",
|
||||
"letter-spacing",
|
||||
"data-size",
|
||||
|
|
@ -345,11 +347,14 @@ function addStylePreset() {
|
|||
"stroke-width",
|
||||
"stroke-dasharray",
|
||||
"stroke-linecap",
|
||||
"stroke-linejoin"
|
||||
"stroke-linejoin",
|
||||
"fitler"
|
||||
];
|
||||
const anchorsAttributes = ["opacity", "fill", "font-size", "stroke", "stroke-width", "filter"];
|
||||
options.burgs.groups.forEach(({name}) => {
|
||||
attributes[`#burgLabels > g#${name}`] = burgLabelsAttributes;
|
||||
attributes[`#burgIcons > g#${name}`] = burgIconsAttributes;
|
||||
attributes[`#anchors > g#${name}`] = anchorsAttributes;
|
||||
});
|
||||
|
||||
for (const selector in attributes) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue