Graph: Set fill color for all graph text (#2707)

Grapviz no longer sets it to the default so we don't have anything to
override
This commit is contained in:
Alexander Eyers-Taylor
2023-08-14 16:53:25 +01:00
committed by GitHub
parent 2569f631a2
commit a965ea4044

View File

@@ -52,9 +52,11 @@ export function Graph({ graphData, databaseUri }: GraphProps) {
});
}
}
if ("fill" in d.attributes) {
d.attributes.fill = d.tag === "text" ? color : backgroundColor;
d.attributes.fill = backgroundColor;
}
if (d.tag === "text") {
d.attributes.fill = color;
}
if ("stroke" in d.attributes) {
// There is no proper way to identify the element containing the graph (which we