This commit is contained in:
Azgaar 2020-12-30 13:11:47 +03:00
parent 03170abeab
commit bc54c01fce
2 changed files with 5 additions and 8 deletions

View file

@ -838,8 +838,8 @@
<g id="rose" stroke-width="1">
<g id="sL" stroke="#3f3f3f">
<line id="sL1" x1="0" y1="-2000" x2="0" y2="2000"/>
<line id="sL2" x1="-2000" y1="0" x2="2000" y2="0"/>
<line id="sL1" x1="0" y1="-20000" x2="0" y2="20000"/>
<line id="sL2" x1="-20000" y1="0" x2="20000" y2="0"/>
</g>
<use xlink:href="#sL" transform="rotate(45)"/>
<use xlink:href="#sL" transform="rotate(22.5)"/>
@ -3367,7 +3367,7 @@
<input id="populationRate" data-stored="populationRate" type="number" min=10 max=9990 step=10 value=1000 data-value=1000 style="width:4.5em">
</div>
<div data-tip="Set urbranization rate: burgs population relative to all population">
<div data-tip="Set urbanization rate: burgs population relative to all population">
<div>Urbanization rate:</div>
<input id="urbanizationOutput" type="range" min=.01 max=5 step=.01 value=1>
<input id="urbanization" data-stored="urbanization" type="number" min=.01 max=5 step=.01 value=1 data-value=1>

View file

@ -257,8 +257,8 @@ function drawTemp() {
addLabel(points, t);
}
// min temp isoline covers all map
temperature.append("path").attr("d", `M0,0 h${svgWidth} v${svgHeight} h${-svgWidth} Z`).attr("fill", scheme(1 - (min - tMin) / delta)).attr("stroke", "none");
// min temp isoline covers all graph
temperature.append("path").attr("d", `M0,0 h${graphWidth} v${graphHeight} h${-graphWidth} Z`).attr("fill", scheme(1 - (min - tMin) / delta)).attr("stroke", "none");
for (const t of isolines) {
const path = chains.filter(c => c[0] === t).map(c => round(lineGen(c[1]))).join("");
@ -1064,9 +1064,6 @@ function toggleCompass(event) {
$('#compass').fadeIn();
if (!compass.selectAll("*").size()) {
compass.append("use").attr("xlink:href","#rose");
// prolongate rose lines
svg.select("g#rose > g#sL > line#sL1").attr("y1", -19000).attr("y2", 19000);
svg.select("g#rose > g#sL > line#sL2").attr("x1", -19000).attr("x2", 19000);
shiftCompass();
}
if (event && isCtrlClick(event)) editStyle("compass");