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

@ -1067,7 +1067,7 @@ function generatePrecipitation() {
const from = west[0][0],
to = west[west.length - 1][0];
const y = (grid.points[from][1] + grid.points[to][1]) / 2;
wind.append("text").attr("x", 20).attr("y", y).text("\u21C9");
wind.append("text").attr("text-rendering", "optimizeSpeed").attr("x", 20).attr("y", y).text("\u21C9");
}
}
if (easterly.length > 1) {
@ -1078,6 +1078,7 @@ function generatePrecipitation() {
const y = (grid.points[from][1] + grid.points[to][1]) / 2;
wind
.append("text")
.attr("text-rendering", "optimizeSpeed")
.attr("x", graphWidth - 52)
.attr("y", y)
.text("\u21C7");
@ -1088,12 +1089,14 @@ function generatePrecipitation() {
if (northerly)
wind
.append("text")
.attr("text-rendering", "optimizeSpeed")
.attr("x", graphWidth / 2)
.attr("y", 42)
.text("\u21CA");
if (southerly)
wind
.append("text")
.attr("text-rendering", "optimizeSpeed")
.attr("x", graphWidth / 2)
.attr("y", graphHeight - 20)
.text("\u21C8");