Skip to content

Visualize Your Ideas With Code

fix: re-render the scene when canvas changes (#55)

Jacob191f96da1441
diff --git a/src/Project.ts b/src/Project.ts
index 3be740ae..69ea6eb8 100644
--- a/src/Project.ts
+++ b/src/Project.ts
@@ -57,6 +57,7 @@ export class Project {
if (this.canvas) {
this.canvas.width = this.width * this._resolutionScale;
this.canvas.height = this.height * this._resolutionScale;
+ this.render();
}
}