Adding circle node type and class handling

This commit is contained in:
Knut Sveidqvist
2022-07-27 17:25:20 +02:00
parent 2d361964ce
commit 82a480d924
5 changed files with 48 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ const genSections = (options) => {
for (let i = 1; i < 8; i++) {
const sw = '' + (17 - 3 * i);
sections += `
.section-${i - 1} rect, .section-${i - 1} path {
.section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle {
fill: ${options['git' + i]};
}
.section-${i - 1} text {
@@ -31,6 +31,13 @@ const genSections = (options) => {
stroke: ${options['lineColor' + i]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`;
}
return sections;