Pārlūkot izejas kodu

[ts] Fixed omitting player config.showControls.

Nathan Sweet 4 gadi atpakaļ
vecāks
revīzija
7dcf77a805

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2 - 0
spine-ts/build/spine-player.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
spine-ts/build/spine-player.js.map


+ 1 - 1
spine-ts/player/src/Player.ts

@@ -218,6 +218,7 @@ module spine {
 		constructor (parent: HTMLElement | string, private config: SpinePlayerConfig) {
 			this.parent = typeof parent === "string" ? document.getElementById(parent) : parent;
 
+			if (config.showControls === void 0) config.showControls = true;
 			let controls = config.showControls ? /*html*/`
 <div class="spine-player-controls spine-player-popup-parent spine-player-controls-hidden">
 <div class="spine-player-timeline"></div>
@@ -270,7 +271,6 @@ module spine {
 			if (config.viewport.debugRender === void 0) config.viewport.debugRender = false;
 			if (config.viewport.transitionTime === void 0) config.viewport.transitionTime = 0.25;
 			if (!config.controlBones) config.controlBones = [];
-			if (config.showControls === void 0) config.showControls = true;
 			if (config.showLoading === void 0) config.showLoading = true;
 			if (config.defaultMix === void 0) config.defaultMix = 0.25;
 		}

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels