88 Commits

Author SHA1 Message Date
Nathan Sweet
b8bf2a9bbb [ts] Added AssetManager#require which throws an error for an asset that isn't loaded. 2021-06-28 01:53:26 -04:00
Nathan Sweet
6c689eb5f8 [ts] Fixed example HTML files. 2021-06-22 16:54:10 -04:00
Nathan Sweet
4062ccb1a9 [ts] TextureAtlas and AssetManager updates.
* AssetManager's textureLoader returns Texture.
* AssetManager#loadTexture success gives a Texture.
* TextureAtlas no longer has a textureLoader, it creates all the pages without a texture set.
* TextureAtlasRegion no longer has a texture, use region.page.texture instead.
* AssetManager#loadTextureAtlas no longer parses the atlas text twice. It creates the atlas, then loads and sets all the textures.
2021-06-22 15:33:01 -04:00
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
Nathan Sweet
78a730a6d7 [ts] Improvements for player, webgl.
* Rendering, added support for separate color/alpha src blend funcs.
* LoadingScreen, set camera zoom to fade out and black flash, use PMA to fix ringing artifacts when scaled, fade in to help hide dropped frames as page loads, use separate color/alpha src blend funcs to properly blend quad when loading screen fades out, oxipng PNGs.
* Moved some private constants out of their class to avoid class name prefix.
* Player, clean up full pass OCD town, showError throws when possible so stacktrace isn't lost, added showLoading to config, don't create UI when !showControls, removed findWithId (id is unique for entire document), use built-in for findWithClass/contains, var->let, don't clear screen twice during loading, other minor stuff.
2021-06-20 01:20:31 -04:00
Nathan Sweet
173a61be7f [ts] Removed SharedAssetManager. Added webworker support to AssetManager. AssetManager clean up.
Related: #1762
2021-06-18 19:36:05 -04:00
badlogic
cf24f5d678 Merge branch '3.8' into 4.0-beta
# Conflicts:
#	spine-libgdx/spine-libgdx/pom.xml
#	spine-libgdx/spine-skeletonviewer/src/com/esotericsoftware/spine/SkeletonViewer.java
#	spine-ts/build/spine-all.js.map
#	spine-ts/build/spine-canvas.js.map
#	spine-ts/build/spine-core.js.map
#	spine-ts/build/spine-player.js.map
#	spine-ts/build/spine-threejs.js.map
#	spine-ts/build/spine-webgl.js.map
2021-06-10 15:10:00 +02:00
badlogic
6ae45f1a5a [ts] Port IK constraint changes
See

33bce01fee
f9862b10b3
2021-06-09 15:07:44 +02:00
Mario Zechner
c76cdccf88 [ts] Undo fixup in TextureAtlas. The change prevented multi-page atlas parsing from working due to !""==null in JS. 2021-06-07 13:27:47 +02:00
Mario Zechner
315ad0e523 [ts] Update build artifacts. 2021-05-31 11:49:37 +02:00
Nathan Sweet
551f33b2d1 [ts] Clean up, build fixes. 2021-05-30 20:17:54 -04:00
badlogic
6d7f29718b [ts] Fix parsing of spacing mode proportional for JSON files. 2021-04-14 17:45:39 +02:00
badlogic
20bca55b93 [ts] Fixed atlas parsing. 2020-12-29 16:37:46 +01:00
badlogic
88f0d98dd2 [ts] Finished 4.0 port. See #1796 2020-11-27 17:53:27 +01:00
badlogic
ebaa3a8756 [ts] Fix up #1762 for canvas backend. 2020-10-21 14:29:28 +02:00
badlogic
c0d8f1cece [ts] Port of commit 8290353. Fix for hold previous on 3+ animations causing dipping. See #1738. 2020-08-13 14:34:59 +02:00
badlogic
ccbcf77cdc [ts] Remove LAST calculation. Additional fix for #1653. 2020-04-15 14:49:52 +02:00
badlogic
673b6754aa [ts] Port AnimationState deform mixing while attachment timelines mix out. See #1653. 2020-04-14 16:57:18 +02:00
badlogic
b81f77b993 [ts] Added AssetManager#setRawDataURI(path, data). Allows to set raw data URIs for a specific path, which in turn enables embedding assets into JavaScript/HTML. See #1535. 2019-10-31 19:27:33 +01:00
badlogic
4410672ce2 [ts] Updated all core API documentation. See #1506. 2019-10-03 16:43:46 +02:00
badlogic
18eb242df6 [ts] Store timeline ids inside set in Animation for O(1) lookup. See #1462. 2019-09-26 16:11:10 +02:00
badlogic
26e93f9f3f [ts] Fixed code up for latest TypeScript compiler version 3.6.3. Closes #1502. 2019-09-23 14:49:02 +02:00
badlogic
5776e2467a [ts] Added soft IK support. See #1383. 2019-06-19 13:55:51 +02:00
badlogic
ca3916dad8 [ts] Added support for loading binaries via SkeletonBinary. Player configuration object now lets you specify skelUrl instead of jsonUrl to load from a binary file. Updated demos to use .skel files instead of .json. 2019-06-07 17:21:53 +02:00
badlogic
3aa14d9b86 [ts] Ported skin bones/constraints changes. See #1346. 2019-06-04 15:53:34 +02:00
badlogic
f9e4fd495d [ts] Ported all skin API changes, see #841. 2019-06-03 16:20:19 +02:00
badlogic
eff7a1502d [ts] Fixed constraints in skins. 2019-05-10 15:31:10 +02:00
badlogic
75ffb7b098 [ts] Updated builds. 2019-05-10 15:07:43 +02:00
badlogic
03057c6073 [ts] Renamed MixDirection.in/out to mixIn/mixOut as it was crashing a JS compressor. Fixed log output. Added mobile support for additive animation blending. Input does not require a fully defined Listener interface anymore. 2019-04-24 15:05:07 +02:00
badlogic
037802bb0c [ts] Ported rotated mesh region UV loading. See #1327. 2019-04-17 14:07:28 +02:00
badlogic
cfb1e8c5f0 [ts] Ported addition of x/y bounding coordinates to SkeletonData. See #1325. 2019-04-16 13:52:56 +02:00
badlogic
eecc0467b6 [ts] Ported latest AnimationState and Animation changes. See #1303. 2019-03-19 16:17:52 +01:00
badlogic
5ad954c16d [ts] New build. 2019-03-08 16:38:14 +01:00
badlogic
8ea29944d3 [ts][webgl] Closes #1271, clipping wasn't terminated properly when a slot did not house an attachment. 2019-02-06 16:02:42 +01:00
badlogic
322dcd0521 [ts] Updated artifacts. 2019-01-06 21:34:13 +01:00
badlogic
54bb7b7e5f [ts] Clipping fix, see #1219 2018-12-05 16:20:55 +01:00
badlogic
941a9bd685 [runtimes] Ported fix for attachmentThreshold, see #1204. 2018-12-04 17:25:26 +01:00
badlogic
c5413d32d0 [ts] Updated build artifacts. 2018-11-14 14:33:44 +01:00
badlogic
bf29fcee11 [ts][player] Cleaned up and documented config object. Added separate .css file for player styles. 2018-11-08 17:38:19 +01:00
badlogic
fe44bece46 Merge branch '3.7-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.7-beta 2018-11-07 18:07:26 +01:00
badlogic
32f6e449fc [ts] Ported new fix for 0 timeScale not returning to setup pose. See #1194. 2018-10-30 16:20:24 +01:00
badlogic
7e86c3ff36 [ts] Rebuilt all artifacts after fix in #1198. 2018-10-26 17:19:16 +02:00
badlogic
519d7a6278 [ts] Ported holdPrevious addition in AnimationState. See #1169." 2018-09-07 16:37:50 +02:00
badlogic
a4584a1a1c [ts] Added event volume and balance, see #1171. 2018-09-06 14:45:55 +02:00
Mario Zechner
cdc2d5bc88 [ts] Ported stretchy IK. See #1142. 2018-08-06 15:09:08 +02:00
badlogic
172bf22d84 [ts] Ported flipX/flipY -> scaleX/scaleY change. See #1142. 2018-07-23 14:43:19 +02:00
badlogic
98413c102e [ts] Merged WebKit bug fix. 2018-04-05 16:47:13 +02:00
badlogic
14e9425b91 Merged 3.6 into 3.7-beta. 2017-11-17 10:59:12 +01:00
badlogic
49137a58ea [ts] Added AssetManager.loadTextureAtlas. Will automatically resolve and load any images the atlas references. AssetManager.get(atlasName) will then return an instance of spine.TextureAtlas. 2017-11-17 10:57:44 +01:00
badlogic
f045d22183 [ts] Added animation blending test. 2017-11-02 10:41:49 +01:00