Convert every remaining °C reference to the temp-unit toggle
The Machine Plan chart's axis ticks and first-crack band caption, the print worksheet's axis title, and its "Your logged band" reference column were all still hardcoded in °C. They're now data-driven (data-tempc / data-band-lo / data-band-hi) and update alongside every other temperature field when the unit is switched.
This commit is contained in:
+32
-16
@@ -1395,7 +1395,14 @@
|
||||
fill="var(--surface-raised)"
|
||||
/>
|
||||
<rect class="band" x="52" y="65.4" width="600" height="19.8" />
|
||||
<text x="58" y="62.4" class="bandline">
|
||||
<text
|
||||
x="58"
|
||||
y="62.4"
|
||||
class="bandline"
|
||||
data-band-lo="176"
|
||||
data-band-hi="187"
|
||||
data-band-prefix="first-crack band, "
|
||||
>
|
||||
first-crack band, 176–187 °C
|
||||
</text>
|
||||
<g class="min">
|
||||
@@ -1452,15 +1459,15 @@
|
||||
<line class="ax" x1="52" y1="24" x2="52" y2="294" />
|
||||
<line class="ax" x1="52" y1="294" x2="652" y2="294" />
|
||||
<line class="ax" x1="652" y1="24" x2="652" y2="294" />
|
||||
<g class="al" text-anchor="end">
|
||||
<text x="47" y="296.8">60</text>
|
||||
<text x="47" y="260.8">80</text>
|
||||
<text x="47" y="224.8">100</text>
|
||||
<text x="47" y="188.8">120</text>
|
||||
<text x="47" y="152.8">140</text>
|
||||
<text x="47" y="116.8">160</text>
|
||||
<text x="47" y="80.8">180</text>
|
||||
<text x="47" y="44.8">200</text>
|
||||
<g class="al curve-axis-temp" text-anchor="end">
|
||||
<text data-tempc="60" x="47" y="296.8">60</text>
|
||||
<text data-tempc="80" x="47" y="260.8">80</text>
|
||||
<text data-tempc="100" x="47" y="224.8">100</text>
|
||||
<text data-tempc="120" x="47" y="188.8">120</text>
|
||||
<text data-tempc="140" x="47" y="152.8">140</text>
|
||||
<text data-tempc="160" x="47" y="116.8">160</text>
|
||||
<text data-tempc="180" x="47" y="80.8">180</text>
|
||||
<text data-tempc="200" x="47" y="44.8">200</text>
|
||||
</g>
|
||||
<g class="al" text-anchor="middle">
|
||||
<text x="52" y="304">0:00</text>
|
||||
@@ -2019,7 +2026,7 @@
|
||||
name="temps.charge.tempC"
|
||||
/><span class="pv"></span>
|
||||
</td>
|
||||
<td class="num">133–195 °C</td>
|
||||
<td class="num" data-band-lo="133" data-band-hi="195">133–195 °C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Turning point</td>
|
||||
@@ -2036,7 +2043,7 @@
|
||||
name="temps.tp.tempC"
|
||||
/><span class="pv"></span>
|
||||
</td>
|
||||
<td class="num">77–100 °C @ 0:47–1:15</td>
|
||||
<td class="num" data-band-lo="77" data-band-hi="100" data-band-suffix=" @ 0:47–1:15">77–100 °C @ 0:47–1:15</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Yellow</td>
|
||||
@@ -2049,7 +2056,7 @@
|
||||
name="temps.yellow.tempC"
|
||||
/><span class="pv"></span>
|
||||
</td>
|
||||
<td class="num">148–166 °C</td>
|
||||
<td class="num" data-band-lo="148" data-band-hi="166">148–166 °C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>First crack</td>
|
||||
@@ -2060,7 +2067,7 @@
|
||||
name="temps.fc.tempC"
|
||||
/><span class="pv"></span>
|
||||
</td>
|
||||
<td class="num">176–187 °C</td>
|
||||
<td class="num" data-band-lo="176" data-band-hi="187">176–187 °C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Drop</td>
|
||||
@@ -2071,7 +2078,7 @@
|
||||
name="temps.drop.tempC"
|
||||
/><span class="pv"></span>
|
||||
</td>
|
||||
<td class="num">183–197 °C light</td>
|
||||
<td class="num" data-band-lo="183" data-band-hi="197" data-band-suffix=" light">183–197 °C light</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -2158,7 +2165,15 @@
|
||||
width="600"
|
||||
height="19.8"
|
||||
/>
|
||||
<text x="58" y="62.4" class="alr" style="font-size: 7px">
|
||||
<text
|
||||
x="58"
|
||||
y="62.4"
|
||||
class="alr"
|
||||
style="font-size: 7px"
|
||||
data-band-lo="176"
|
||||
data-band-hi="187"
|
||||
data-band-prefix="your first-crack band, "
|
||||
>
|
||||
your first-crack band, 176–187 °C
|
||||
</text>
|
||||
<g class="min">
|
||||
@@ -2231,6 +2246,7 @@
|
||||
class="ttl"
|
||||
transform="rotate(-90 14 159)"
|
||||
text-anchor="middle"
|
||||
id="print-curve-axis-title"
|
||||
>
|
||||
BEAN TEMP °C
|
||||
</text>
|
||||
|
||||
Reference in New Issue
Block a user