Skip to content

Commit

Permalink
Removed autoUpdateRenderer in favor of opening/closing panes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDog3112 committed May 11, 2024
1 parent 90b142f commit f6f4c0b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions doc/src/hexdoc_hexcasting/_templates/hexcasting_render.js.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ function checkEqual(ob1, ob2) {
return true;
}

let autoUpdateInterval = null;
let cachedPatternImage = null;

let old_settings = null;
Expand Down Expand Up @@ -407,19 +406,6 @@ function updateRenders() {
}
}

function autoUpdateRenderer(interval = 500) {
if (autoUpdateInterval != null) {
clearInterval(autoUpdateInterval);
}
if (interval <= 0) {
console.log(`Invalid interval for autoUpdateRenderer: ${interval}`);
return;
}

autoUpdateInterval = setInterval(updateRenders, interval);
}

window.autoUpdateRenderer = autoUpdateRenderer;

//palette values stored via css so they can be changedaround
let palette_options = {
Expand Down

0 comments on commit f6f4c0b

Please sign in to comment.