Compare commits

..

No commits in common. "41fee51a25c9217eb830521e8558f3ad83be4b16" and "16f374d927e68edacc3fcfe8320cb299f4fbe679" have entirely different histories.

View File

@ -159,8 +159,6 @@ progressionSelector.addEventListener('input', (ev) => {
let cancelAnim : number | undefined = undefined; let cancelAnim : number | undefined = undefined;
function restartAnimation(startIfPaused: boolean) { function restartAnimation(startIfPaused: boolean) {
if (!r.animation) return;
if (cancelAnim !== undefined) { if (cancelAnim !== undefined) {
cancelAnimationFrame(cancelAnim); cancelAnimationFrame(cancelAnim);
} else if (!startIfPaused) { } else if (!startIfPaused) {
@ -212,7 +210,6 @@ const dialect = {
let dance: danceLibrary.ContraDBDance; let dance: danceLibrary.ContraDBDance;
function buildMovesList() { function buildMovesList() {
if (!r.animation) return;
removeAllChildNodes(movesList); removeAllChildNodes(movesList);
const formation = document.createElement('li'); const formation = document.createElement('li');
@ -300,8 +297,6 @@ function playAnimation(bpm: number, start: number, end: number) {
const msPerBeat = (60 * 1000) / bpm; const msPerBeat = (60 * 1000) / bpm;
function anim() { function anim() {
if (!r.animation) return;
const now = Date.now(); const now = Date.now();
const msElapsed = now - startTime; const msElapsed = now - startTime;
@ -368,7 +363,7 @@ displaySettingsDiv.appendChild(zoomLabel);
const extraSetsSelector = document.createElement('input'); const extraSetsSelector = document.createElement('input');
extraSetsSelector.type = 'number'; extraSetsSelector.type = 'number';
extraSetsSelector.min = '0'; extraSetsSelector.min = '0';
extraSetsSelector.step = '0.2'; extraSetsSelector.step = '0.1';
extraSetsSelector.value = canvasSetting.extraSets!.toPrecision(1); extraSetsSelector.value = canvasSetting.extraSets!.toPrecision(1);
extraSetsSelector.id = 'extraSets'; extraSetsSelector.id = 'extraSets';
extraSetsSelector.style.width = '3em'; extraSetsSelector.style.width = '3em';
@ -386,7 +381,7 @@ displaySettingsDiv.appendChild(extraSetsSelector);
const extraLinesSelector = document.createElement('input'); const extraLinesSelector = document.createElement('input');
extraLinesSelector.type = 'number'; extraLinesSelector.type = 'number';
extraLinesSelector.min = '0'; extraLinesSelector.min = '0';
extraLinesSelector.step = '0.2'; extraLinesSelector.step = '0.1';
extraLinesSelector.value = canvasSetting.extraLines!.toPrecision(1); extraLinesSelector.value = canvasSetting.extraLines!.toPrecision(1);
extraLinesSelector.id = 'extraLines'; extraLinesSelector.id = 'extraLines';
extraLinesSelector.style.width = '3em'; extraLinesSelector.style.width = '3em';