mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #293: add FramesheetRenderer unit tests
This commit is contained in:
parent
c8fa83462a
commit
058b6fa333
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user