forgot to fix some things
This commit is contained in:
1 file changed
+9
-9
+9
-9
@@ -15,8 +15,8 @@ let height = 0;
|
||||
let radius = 0;
|
||||
let spillRadius = 0;
|
||||
let numberOfPanels = 0;
|
||||
let step = 0.001 * multiplier;
|
||||
const offset = 4 * 10 ** -5 * multiplier;
|
||||
let step = 0.001;
|
||||
const offset = 4 * 10 ** -5;
|
||||
|
||||
// temporary data
|
||||
let pointsP = [];
|
||||
@@ -39,15 +39,15 @@ function getValues() {
|
||||
pointsQ = [];
|
||||
distances = [];
|
||||
panelPoints = [];
|
||||
height = (parseFloat(hInput.value) * multiplier);
|
||||
radius = (parseFloat(rInput.value) * multiplier);
|
||||
spillRadius = (parseFloat(rsInput.value) * multiplier);
|
||||
numberOfPanels = (parseFloat(npInput.value) * multiplier);
|
||||
height = (parseFloat(hInput.value) * 1);
|
||||
radius = (parseFloat(rInput.value) * 1);
|
||||
spillRadius = (parseFloat(rsInput.value) * 1);
|
||||
numberOfPanels = (parseFloat(npInput.value) * 1);
|
||||
step = radius / parseInt(stepInput.value);
|
||||
paperSize = paperInput.value;
|
||||
if (isNaN(spillRadius)) {
|
||||
spillRadius = (0.05 * radius);
|
||||
rsInput.value = 0.05 * radius / multiplier;
|
||||
rsInput.value = 0.05 * radius ;
|
||||
}
|
||||
n = ((radius - spillRadius) / (step - offset)) - 1;
|
||||
}
|
||||
@@ -143,13 +143,13 @@ function plotSVG() {
|
||||
d="${panelPaths[0]}"
|
||||
fill="none"
|
||||
stroke="black"
|
||||
stroke-width="${strokeWidth}"
|
||||
stroke-width="1"
|
||||
/>
|
||||
<path
|
||||
d="${panelPaths[1]}"
|
||||
fill="none"
|
||||
stroke="black"
|
||||
stroke-width="${strokeWidth}"
|
||||
stroke-width="1"
|
||||
/>
|
||||
</g>
|
||||
</svg>`;
|
||||
|
||||
Reference in new issue
Block a user