Remove unused debug options

This commit is contained in:
Yuri Sizov
2023-08-16 18:46:22 +02:00
parent fd0cb34354
commit baa54dc974
3 changed files with 0 additions and 33 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 887 KiB

View File

@@ -36,14 +36,6 @@
<div class="toolbar-item">
<button id="download-image">Download</button>
</div>
<h3>Debug options</h3>
<div class="toolbar-item toolbar-item--oneline">
<label for="show-vercel">Show Vercel output</label>
<input type="checkbox" id="show-vercel" />
</div>
</div>
<div class="canvas-container">

View File

@@ -1,8 +1,6 @@
document.addEventListener("DOMContentLoaded", () => {
const generator = new PreviewGenerator();
generator.init();
generator.testVercel();
});
class PreviewGenerator {
@@ -40,10 +38,6 @@ class PreviewGenerator {
this.coverImage = null;
this.titleText = "";
this.superText = "";
// TODO: Remove when matched and tested.
this.vercelOutput = null;
this.showVercel = false;
}
init() {
@@ -108,24 +102,10 @@ class PreviewGenerator {
this._saveRender();
});
// TODO: REMOVE
const showVercel_toggle = document.getElementById("show-vercel");
showVercel_toggle.addEventListener("change", () => {
this.showVercel = showVercel_toggle.checked;
this.render();
});
// Do the first render.
this.render();
}
testVercel() {
this._loadImage("assets/output-vercel.png", (image) => {
this.vercelOutput = image;
this.render();
});
}
render() {
if (!this.previewCanvas || !this.ctx) {
return;
@@ -198,11 +178,6 @@ class PreviewGenerator {
this.ctx.drawImage(this.godotLogo, this.previewWidth - paddingSize - logoWidth, paddingSize, logoWidth, logoHeight);
}
// TODO: REMOVE
if (this.showVercel && this.vercelOutput) {
this.ctx.drawImage(this.vercelOutput, 0, 0, this.previewWidth, this.previewHeight);
}
}
/**