Skip to content

Commit dd44a47

Browse files
committed
fixed canvas not defined
1 parent 000ac10 commit dd44a47

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

assets/js/app/texture-packer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default class TexturePacker {
164164
}
165165
}
166166

167-
this.ctx.clearRect(0, 0, canvas.width, canvas.height);
167+
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
168168

169169
let pad = this.root.p;
170170

assets/js/bundle.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)