@esotericsoftware/spine-webgl
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -36,3 +36,2 @@ /****************************************************************************** | ||
var _this = this; | ||
var _a, _b; | ||
/** Tracks the current time, delta, and other time related statistics. */ | ||
@@ -58,18 +57,16 @@ this.time = new TimeKeeper(); | ||
this.input = new Input(canvas); | ||
(_b = (_a = config.app).loadAssets) === null || _b === void 0 ? void 0 : _b.call(_a, this); | ||
config.app.loadAssets(this); | ||
var loop = function () { | ||
var _a, _b, _c, _d; | ||
requestAnimationFrame(loop); | ||
_this.time.update(); | ||
(_b = (_a = config.app).update) === null || _b === void 0 ? void 0 : _b.call(_a, _this, _this.time.delta); | ||
(_d = (_c = config.app).render) === null || _d === void 0 ? void 0 : _d.call(_c, _this); | ||
config.app.update(_this, _this.time.delta); | ||
config.app.render(_this); | ||
}; | ||
var waitForAssets = function () { | ||
var _a, _b, _c, _d; | ||
if (_this.assetManager.isLoadingComplete()) { | ||
if (_this.assetManager.hasErrors()) { | ||
(_b = (_a = config.app).error) === null || _b === void 0 ? void 0 : _b.call(_a, _this, _this.assetManager.getErrors()); | ||
config.app.error(_this, _this.assetManager.getErrors()); | ||
} | ||
else { | ||
(_d = (_c = config.app).initialize) === null || _d === void 0 ? void 0 : _d.call(_c, _this); | ||
config.app.initialize(_this); | ||
loop(); | ||
@@ -76,0 +73,0 @@ } |
{ | ||
"name": "@esotericsoftware/spine-webgl", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "The official Spine Runtimes for the web.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1827304
16226