Issue #293: add FramesheetRenderer unit tests

This commit is contained in:
Julian Descottes 2016-05-29 11:47:57 +02:00
parent c8fa83462a
commit 058b6fa333
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
};
ns.FramesheetRenderer.prototype.renderAsCanvas = function (columns) {
columns = columns || 1;
columns = columns || this.frames.length;
var rows = Math.ceil(this.frames.length / columns);
var canvas = this.createCanvas_(columns, rows);

View File

@ -12,7 +12,7 @@
};
ns.PiskelRenderer.prototype.renderAsCanvas = function (columns) {
columns = columns || 1;
columns = columns || this.frames.length;
var rows = Math.ceil(this.frames.length / columns);
var canvas = this.createCanvas_(columns, rows);