forgot to fix some things

This commit is contained in:
chopster44 committed 2026-10-03 20:02:17 +01:00
1 parent 17c91429f4
commit 0b776a631c
1 file changed
+9 -9
+9 -9
View File
@@ -15,8 +15,8 @@ let height = 0;
let radius = 0; let radius = 0;
let spillRadius = 0; let spillRadius = 0;
let numberOfPanels = 0; let numberOfPanels = 0;
let step = 0.001 * multiplier; let step = 0.001;
const offset = 4 * 10 ** -5 * multiplier; const offset = 4 * 10 ** -5;
// temporary data // temporary data
let pointsP = []; let pointsP = [];
@@ -39,15 +39,15 @@ function getValues() {
pointsQ = []; pointsQ = [];
distances = []; distances = [];
panelPoints = []; panelPoints = [];
height = (parseFloat(hInput.value) * multiplier); height = (parseFloat(hInput.value) * 1);
radius = (parseFloat(rInput.value) * multiplier); radius = (parseFloat(rInput.value) * 1);
spillRadius = (parseFloat(rsInput.value) * multiplier); spillRadius = (parseFloat(rsInput.value) * 1);
numberOfPanels = (parseFloat(npInput.value) * multiplier); numberOfPanels = (parseFloat(npInput.value) * 1);
step = radius / parseInt(stepInput.value); step = radius / parseInt(stepInput.value);
paperSize = paperInput.value; paperSize = paperInput.value;
if (isNaN(spillRadius)) { if (isNaN(spillRadius)) {
spillRadius = (0.05 * radius); spillRadius = (0.05 * radius);
rsInput.value = 0.05 * radius / multiplier; rsInput.value = 0.05 * radius ;
} }
n = ((radius - spillRadius) / (step - offset)) - 1; n = ((radius - spillRadius) / (step - offset)) - 1;
} }
@@ -143,13 +143,13 @@ function plotSVG() {
d="${panelPaths[0]}" d="${panelPaths[0]}"
fill="none" fill="none"
stroke="black" stroke="black"
stroke-width="${strokeWidth}" stroke-width="1"
/> />
<path <path
d="${panelPaths[1]}" d="${panelPaths[1]}"
fill="none" fill="none"
stroke="black" stroke="black"
stroke-width="${strokeWidth}" stroke-width="1"
/> />
</g> </g>
</svg>`; </svg>`;