🚀 improve svg stack generation

This commit is contained in:
platane
2020-11-05 11:03:14 +01:00
parent b71cd68bac
commit cbb4ebd010
4 changed files with 37 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ export const createGrid = (
const m = (s - d) / 2;
if (t !== null) {
const animationName = "a" + id;
const animationName = id;
// @ts-ignore
const fill = colorDots[color];
@@ -56,7 +56,7 @@ export const createGrid = (
`${percent(t + 0.0001)}%,100%{fill:${colorEmpty}}` +
"}",
`.c.${id}{fill:${fill};animation-name: ${animationName}}`
`.c.${id}{fill: ${fill};animation-name: ${animationName}}`
);
}