feat(styles): add anchor styling for burgs in multiple themes

This commit is contained in:
Azgaar 2025-03-27 16:40:04 +01:00
parent bd05453e63
commit 4a08f617bb
9 changed files with 1607 additions and 1 deletions

View file

@ -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) {