23 Commits

Author SHA1 Message Date
Mario Zechner
58f0bc0d0c Added promise based AssetManager.loadAll(), Skeleton.getBoundsRect() helper method. 2022-03-14 11:23:53 +01:00
Luke Ingram
25bea5e7b8 [ts] Port of additive scale mixing fix, see #2028 2022-01-26 14:22:21 -04:00
Mario Zechner
1cbe69d733 Fix formatting. 2022-01-23 22:27:23 +01:00
MikalDev
b1d396cf55
feat (loadTextureAtlas) add option to use file alias (#2019)
For Construct 3, in preview mode, the texture file names are changed to blobs with completely different filenames. So, loadTextureAtalas will not work because the file names don't match the page.name.  When Construct 3 is not in preview mode, the normal file names will match the page.name.

To get around this issue, added an optional parameter to loadTextureAtlas, fileAlias, this will allow the Construct 3 plug-in to create a fileAlias object which maps between page.name and the C3 project file names, whether they are aliased or not. If this is not needed, the function performs as it did before.

Co-authored-by: MikalDev <keg@kindeyegames.com>
2022-01-19 15:31:23 +01:00
Mario Zechner
44e34cb264 [ts] Fixes #2003, ensure all fields are initialized as per reference implementation. 2021-12-15 15:00:19 +01:00
Mario Zechner
d9bc3b010e [ts] Process status code 0 properly, closes #1969 2021-11-04 17:24:37 +01:00
Mario Zechner
d296fa3efa [ts] Closes #1966, PolygonBatcher does not flush if the blend mode has not changed. 2021-10-11 16:16:55 +02:00
jmlee2k
674f53cccc
[ts] Made AnimationStateListener functions optional (#1955)
Co-authored-by: Jordan Lee <jordan.lee@aberrantsoftware.com>
2021-09-25 10:42:45 +02:00
Mario Zechner
02e334942b [ts] Formatting. 2021-09-18 23:14:07 +02:00
badlogic
cda5c0f052 [ts] Added CameraController, drag & drop example 2021-09-18 01:58:14 +02:00
badlogic
a884dd4c0d [ts] Inline source maps, fix Downloader for raw data URIs. 2021-09-17 02:29:08 +02:00
Nathan Sweet
77774608bf [as3][c][cpp][csharp][libgdx][lua][ts] Fixed updateAppliedTransform for the root bone. 2021-09-16 17:00:10 -06:00
Nathan Sweet
f4021177f9 [as3][c][cpp][csharp][libgdx][lua][ts] Don't treat scale sign as an instant transition when applying a timeline additively. 2021-09-15 00:28:43 -06:00
Mario Zechner
cd83e9ad35 [ts] Fix typo in SkeletonJson.ts. 2021-09-14 02:04:38 +02:00
Nathan Sweet
dc9a6ebe7f [as3][c][cpp][csharp][libgdx][lua][ts] Fixed loading transform constraint timelines from JSON data.
* Fixed SkeletonJson not allocating enough memory for curves (maximum of 6 curves/key, not 4). Fixes email: FMfcgzGkbDfvckWcFxWlsTWzFhMXsTDw
* Removed SkeletonData and Skeleton methods: findBoneIndex, findSlotIndex. Bones and slots have an index field that should be used instead.
* Removed SkeletonData and Skeleton methods: find*ConstraintIndex. Only SkeletonJson needed these, they don't need to be in the public API.
* Used a local for number of frames where it was used many times.
2021-09-12 18:15:19 -06:00
Mario Zechner
babe296157 [ts] Formatting 2021-09-07 15:49:37 +02:00
Nathan Sweet
2ae113d5a0 [ts] Fixed scale of constrained bones with transform constraint relative + local. 2021-09-06 23:32:26 -06:00
badlogic
91a8b6a100 [ts] Added SpineCanvas, a simpler way to render via spine-webgl
Rewrote mix-and-match example as well as barebones example to illustrate usage.
2021-09-07 00:57:52 +02:00
Mario Zechner
39df4c7cbb [ts] Formatter pass 2021-08-27 17:24:18 +02:00
Mario Zechner
ca6b3d0bac [ts] Modularize spine-canvas, fixup rollup setup 2021-08-25 01:32:39 +02:00
Mario Zechner
3c2d39a936 Use rollup.js to generate a UMD bundle for spine-core. 2021-08-20 18:36:55 +02:00
Mario Zechner
8831c7d96e Add index.ts for core, scripts for dev and build. 2021-08-20 16:59:48 +02:00
Mario Zechner
474dae82a0 ES2015 modulification of spine-ts core. 2021-08-20 16:24:10 +02:00