mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[ts] Fixed omitting player config.showControls.
This commit is contained in:
parent
9541688926
commit
7dcf77a805
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user