Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Slider0007 committed Oct 11, 2024
1 parent 2f26785 commit 773e82b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions sd-card/html/edit_sequence.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ <h2>Number Sequences</h2>
</td>
<td class="digitanalog" style="height: 27px;">
<input type="checkbox" id="showDigitAnalogROI" onclick="RefreshDraw()" checked>
<label for="showDigitAnalogROI">Show Digit ROI + Analog ROI</label>
<label for="showDigitAnalogROI">Show Digit + Analog ROI</label>
</td>
</tr>
</table>
Expand Down Expand Up @@ -351,7 +351,7 @@ <h2>Number Sequences</h2>
function analogProcessingChanged(init = false)
{
if (init) {
document.getElementById("analogProcessing").checked = jsonConfig.digit.enabled;
document.getElementById("analogProcessing").checked = jsonConfig.analog.enabled;
setInputVisibilty();
}
else {
Expand Down Expand Up @@ -681,8 +681,12 @@ <h2>Number Sequences</h2>

function onClickLockAspectRatio()
{
lockAspectRatio = document.getElementById("lockAspectRatio").checked;
lockAspectRatioAnalog = document.getElementById("lockAspectRatioAnalog").checked;
if (typeSelection.value == "digit") {
lockAspectRatio = document.getElementById("lockAspectRatio").checked;
}
else if (typeSelection.value == "analog") {
lockAspectRatioAnalog = document.getElementById("lockAspectRatioAnalog").checked;
}
}


Expand Down Expand Up @@ -804,7 +808,7 @@ <h2>Number Sequences</h2>
rect.h = document.getElementById("refdy").value;

if (lockAspectRatioAnalog) {
rect.w = Math.round(rect.w * jsonConfigModifiedDelta.analog.sequence[sequenceSelection.selectedIndex].roi[roiSelected].ar);
rect.h = Math.round(rect.w / jsonConfigModifiedDelta.analog.sequence[sequenceSelection.selectedIndex].roi[roiSelected].ar);
document.getElementById("refdy").value = rect.h;
}

Expand All @@ -830,7 +834,6 @@ <h2>Number Sequences</h2>
}


// Make all X spaces equidistant
function makeX_SpaceEquidistant()
{
if (jsonConfigModifiedDelta.digit.sequence[sequenceSelection.selectedIndex].roi.length <= 1) { // Only one or no number
Expand Down

0 comments on commit 773e82b

Please sign in to comment.