6 Commits

Author SHA1 Message Date
Nathan Sweet
99f8cba35f [ts] Player updates.
* Updated config doc comments.
* Check undefined without typeof. Discussion: https://stackoverflow.com/a/22053469/187883
* Use transparent bg color by default if alpha is true.
* Set bg color on parent to avoid flash.
* render->create (so it doesn't seem like it's about drawing).
* Sorted members.
* Use addEventListener, else only the last player event handler is used.
* Set the initial animation when loaded, not whenever track 0 is empty.
* If an animation is not specified, play an empty animation.
* If an animation is set in success(), don't set any animation.
* Don't clearTracks in setAnimation, don't use AnimationState in calculateAnimationViewport -- those prevent mixing.
* setAnimation returns the TrackEntry.
* Added addAnimation and setViewport.
* Expose play() and pause().
* Keep control bones inside the canvas.
* LoadingScreen scales down.
* Set minimal CSS so no external CSS is needed when !showControls.
* Use screen instead of world coordinates for control bone hit detection, so it works at any size.
* Choose closest control bone instead of last.
2021-06-20 13:24:53 -04:00
badlogic
2433a87792 [ts][player] Fixes 1233, list item min width needs to be set for Firefox on Windows. 2018-12-22 11:54:10 +01:00
badlogic
1a0b0543e3 [ts][player] Media query to change editor/player layout on small screens. 2018-12-20 16:24:20 +01:00
badlogic
660a507221 [ts][player] Media query to change editor/player layout on small screens. 2018-12-20 16:21:58 +01:00
badlogic
0d6deee210 [ts][player] Added embedable player code editor. 2018-12-20 15:22:23 +01:00
badlogic
075d4a1be5 [ts][player] Removed old widget. Renamed TSC output to spine-player.js, moved sources from widget/ to player/. 2018-12-17 15:32:25 +01:00