pure-canvas
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -76,3 +76,3 @@ "use strict"; | ||
}; | ||
Stage.prototype.renderAsynchronous = function (index, maxBatchTime) { | ||
Stage.prototype.renderAsynchronous = function (index, callback, maxBatchTime) { | ||
var _this = this; | ||
@@ -100,2 +100,5 @@ if (index === void 0) { index = true; } | ||
commit(index); | ||
if (callback) { | ||
callback(); | ||
} | ||
} | ||
@@ -102,0 +105,0 @@ }; |
{ | ||
"name": "pure-canvas", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "TODO", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -87,3 +87,3 @@ import {EventEmitter} from 'eventemitter3'; | ||
renderAsynchronous(index: boolean = true, maxBatchTime: number = 10): void { | ||
renderAsynchronous(index: boolean = true, callback?: () => void, maxBatchTime: number = 10): void { | ||
const {steps, commit} = this.renderDeferred(); | ||
@@ -109,2 +109,5 @@ | ||
commit(index); | ||
if (callback) { | ||
callback(); | ||
} | ||
} | ||
@@ -111,0 +114,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
210955
2695