39 Commits

Author SHA1 Message Date
Davide Tantillo
1309058850 [ts] Allow setSkin to accept null to unset skins. 2025-08-14 11:16:08 +02:00
Davide Tantillo
bda90bd158 Formatting 2025-06-20 15:28:40 +02:00
Davide Tantillo
09b12f8934 [ts] Used yDir rather than ternary operator with yDown. 2025-06-20 09:16:40 +02:00
Davide Tantillo
13e2231628 [ts] 4.3 - Added yDir and applied to transform contraints where needed. 2025-06-20 08:59:46 +02:00
Davide Tantillo
8d046cbbf4 [ts] 4.3 porting WIP - latest updates. 2025-06-16 09:33:33 +02:00
Davide Tantillo
59d138124d [ts] Port to 4.3 (WIP) - Format. 2025-06-10 17:42:39 +02:00
Davide Tantillo
2f23421112 [ts] Port to 4.3 (WIP) 2025-06-10 17:26:33 +02:00
Davide Tantillo
a2547097c2 [ts] Port to 4.3 (WIP) 2025-05-29 17:35:17 +02:00
Nathan Sweet
f08d58dc98 License header update. 2025-04-05 13:42:13 -04:00
Davide Tantillo
a46174b88b [ts] Transform constraints alignment from reference runtime. 2025-04-04 13:01:01 +02:00
Davide Tantillo
4eeb2b62cb [ts] Port of Transform constraint property mapping. 2025-04-01 15:22:16 +02:00
Davide Tantillo
457be16385 [ts] Port of commit 68d262b5: Improved rendering performance when an attachment is fully inside a clipping attachment.
Reuse the original vertices rather than clipping's triangle soup.
Removed deprecated clipping methods.
2025-04-01 15:19:21 +02:00
Davide Tantillo
8711e55672 [ts] Small refactor alignment with reference runtime. 2025-04-01 14:40:11 +02:00
Davide Tantillo
3685fa7e35 [ts] Skeleton.getBoundsRect can now consider clipping attachments. 2025-01-27 15:00:43 +01:00
Davide Tantillo
dc2bcb02e1 [ts] Aligned Skeleton updateWorldTransformWith with reference runtime. Close #2695. 2024-11-26 16:16:18 +01:00
Davide Tantillo
b4d61790f7 [ts] Port of earlier clipping cleanup commit 485de74: SkeletonClipping.ClipTriangles clean up. 2024-06-11 15:18:26 +02:00
Mario Zechner
f212ece369 [ts] Fix incorrect handling of Physics.none in Skeleton.updateWorldTransform 2024-05-14 10:17:52 +02:00
Davide Tantillo
f3097222f9 [ts] Skeleton.getBounds() applies clipping, see #2515. Port of commits b043e5c, 637321a and 2049bed. 2024-05-03 10:42:25 +02:00
Davide Tantillo
03d78d4381
[ts] Port of commits c83a867, f4f22cd, 1a83e96 (inherit timeline and minor fixes). 2024-03-28 17:17:50 +01:00
Mario Zechner
be767b21ea [ts] Port latest physics changes. 2024-03-19 09:58:07 +01:00
Mario Zechner
73cb252bef [ts] Port physics translation and rotation methods. 2024-01-24 12:10:24 +01:00
Mario Zechner
f384795471 [ts] Fix parenthesis in sortPhysicsConstraint check 2023-12-01 14:55:36 +01:00
Mario Zechner
98da54402f [ts] Update all examples to pass Physics to updateWorldTransform() 2023-11-26 13:10:58 +01:00
Mario Zechner
a5f7d68d12 [ts] Clean-up sorting of physics constraints. 2023-11-22 16:57:39 +01:00
Mario Zechner
c7aac73dee [ts] Port of physics constraints, SkeletonJson and SkeletonBinary incomplete. 2023-11-22 16:55:54 +01:00
Mario Zechner
9d4d86ced3 [ts] Attempt to fix incompatibility with Node's ESM implementation. See #2407 2023-11-06 12:42:00 +01:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Mario Zechner
83945e17dc Apply formatter. 2023-01-16 14:00:01 +01:00
Mario Zechner
15bbf5701e [ts] Added Skeleton.yDown 2022-12-27 11:43:02 +01:00
Mario Zechner
e4372e5329 [ts] Enable TS strict mode. Closes #2058 2022-04-07 21:24:48 +02:00
Mario Zechner
3b1f7617df Merge branch '4.0' into 4.1-beta
# Conflicts:
#	spine-ts/package-lock.json
#	spine-ts/package.json
#	spine-ts/spine-canvas/package.json
#	spine-ts/spine-core/package.json
#	spine-ts/spine-player/package.json
#	spine-ts/spine-threejs/package.json
#	spine-ts/spine-webgl/package.json
2022-03-14 11:26:35 +01:00
Mario Zechner
58f0bc0d0c Added promise based AssetManager.loadAll(), Skeleton.getBoundsRect() helper method. 2022-03-14 11:23:53 +01:00
Mario Zechner
ced0771c37 [ts] Merge fix for #2003, fix ping pong reverse in Sequencetimeline
# Conflicts:
#	spine-ts/package-lock.json
#	spine-ts/package.json
#	spine-ts/spine-canvas/package.json
#	spine-ts/spine-core/package.json
#	spine-ts/spine-core/src/Slot.ts
#	spine-ts/spine-core/src/attachments/MeshAttachment.ts
#	spine-ts/spine-core/src/attachments/RegionAttachment.ts
#	spine-ts/spine-player/package.json
#	spine-ts/spine-threejs/package.json
#	spine-ts/spine-webgl/package.json
2021-12-15 15:09:03 +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
81927051ff [ts] Port of sequence attachments, see #1956
SkeletonJson parsing of sequence timelines incomplete. Untested.
2021-10-13 01:14:58 +02:00
Nathan Sweet
96a998b82d Spine Runtimes License Agreement update (September 24, 2021). 2021-09-24 18:18:19 -10: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
39df4c7cbb [ts] Formatter pass 2021-08-27 17:24:18 +02:00
Mario Zechner
474dae82a0 ES2015 modulification of spine-ts core. 2021-08-20 16:24:10 +02:00