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:
committed by
GitHub
parent
2569f631a2
commit
a965ea4044
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user