fix(class): avoid duplicate definition of fill

This commit is contained in:
Mr.Hope
2023-10-09 11:08:46 +08:00
committed by GitHub
parent 12a47076cf
commit 444e81ae8a

View File

@@ -1,7 +1,6 @@
const getStyles = (options) =>
`g.classGroup text {
fill: ${options.nodeBorder};
fill: ${options.classText};
fill: ${options.nodeBorder || options.classText};
stroke: none;
font-family: ${options.fontFamily};
font-size: 10px;