perf: set text-rendering to optimizeSpeed, v1.108.1

This commit is contained in:
Azgaar 2025-02-15 14:43:51 +01:00
parent 764993b680
commit d98ef5717e
13 changed files with 40 additions and 16 deletions

View file

@ -743,6 +743,7 @@ function showStatesChart() {
node
.append("text")
.attr("text-rendering", "optimizeSpeed")
.style("font-size", d => rn((d.r ** 0.97 * 4) / lp(d.data.name), 2) + "px")
.selectAll("tspan")
.data(d => d.data.name.split(exp))