1213 Commits

Author SHA1 Message Date
Davide Tantillo
a90bdce403 [ts] Release 4.2.66 2024-11-15 11:21:02 +01:00
Davide Tantillo
3a64c60f5f [ts][pixi-v8] Cleanup example folder. 2024-11-15 11:15:22 +01:00
Davide Tantillo
f64b20d17d [ts] Port of commit 9d49999: Changed SequenceTimeline to match AttachmentTimeline behavior. 2024-11-15 10:39:25 +01:00
Davide Tantillo
1b3194a67c [ts][pixi-v8] Add missing .js extensions. 2024-11-15 10:23:03 +01:00
Davide Tantillo
a815fc40d8 [ts] Add missing license headers. 2024-11-14 11:16:20 +01:00
Davide Tantillo
3512e3ddff [ts][pixi] Add bunnymark example to compare performance among releases. 2024-11-14 10:56:11 +01:00
Davide Tantillo
5cc203b772 [ts][pixi-v8] Fixed physics2 example. 2024-11-13 12:33:55 +01:00
Davide Tantillo
417d7c2239 [ts][pixi-v8] Cleanup examples and updated runtime.sh script. 2024-11-13 11:33:16 +01:00
Davide Tantillo
2fa1c28fba [ts] Release 4.2.65 2024-11-13 11:08:02 +01:00
Davide Tantillo
a4ea2979cd [ts][canvaskit] Removed additional slash from texture url. 2024-11-13 11:04:39 +01:00
Davide Tantillo
814f0ae8fd [ts][pixi-v8] Removed useless warning about update invocation with autoUpdate. 2024-11-13 10:17:14 +01:00
Davide Tantillo
fb3855ad65 [ts][pixi-v8] Clean up SpinePipe after Spine object is destroyed. Closes #2678. 2024-11-13 09:38:08 +01:00
Davide
8a8fc74f8e
[ts][pixi-v8] Moved state.apply and UWT right after time updates. (#2679) 2024-11-13 09:14:28 +01:00
Davide Tantillo
6ab5ddf92d [ts] Release 4.2.64 2024-11-12 10:07:55 +01:00
Davide Tantillo
6ddf908899 [ts][pixi-v8] Ensure cached uvs array sized. Closes #2677. 2024-11-12 10:00:05 +01:00
Davide Tantillo
97a83c2430 [ts][pixi] Updated ts example on v7 and added to v8 2024-11-07 15:55:07 +01:00
Davide Tantillo
b2b0a3dc42 [ts] Release 4.2.63 2024-11-07 15:17:01 +01:00
Davide Tantillo
6cc8809406 [ts][pixi] Move pixi to pixi-v7 2024-11-07 14:49:36 +01:00
Davide Tantillo
ca00e56136 [ts] Run tsfmt 2024-11-07 11:34:50 +01:00
Davide Tantillo
e8719ebb99 [ts] Run tsfmt 2024-11-06 17:57:46 +01:00
Mat Groves
ecbe9b0247
Add PixiJS v8 support to spine (#2641)
* add v8 support to spine!

* Renamed examples folder for consistency.

* Gitignore dist.

* Tsconfig.

* Package json.

* Modification due to strictNullChecks=true.

* Run tsfmt.

* Use clipper.clipTriangles not deprecated version.

* Aligned example to spine-pixi (v7).

* Fix clipping dark tint wrong param.

* Removed useless clipper.

* Push texture issue repro example

* fix attachment.uvs by copying them

* SlotObject alpha connected to skeleton and slot alpha.

* add topology for future v8 release

* Dark tint rendered is enabled if at least one slot has dark tint, or by configuration.
Fixed clipping while using dark tint.

* Optimized clipping by using clipTrianglesUnpacked.

* Repro example for clipping issue.

* Aligned constructor and from signature of spine-pixi(-v7) to v8. Deprecated old signatures.

* Removed useless function.

* Fixed clipping issue flagging attachment as dirty if indices change.

* Clipping attachments clip slot object through Pixi Graphics masks.

* Add autoUpdate in SpineFromOptions

* Added javadoc to pixiv8

* Updated pixi7 examples to use SpineFromOptions interface

* Aligned atlas loader to use texturePreference for bundles.

* Add pool to manage slot objects masks

* Fixed minor issues with SpineDebugRenderer

* Aligned spine-pixi-v8 with latest spine-core

* Updated build and publish script

---------

Co-authored-by: Davide Tantillo <iamdjj@gmail.com>
2024-11-06 17:23:01 +01:00
Davide Tantillo
c3d510e3c8 [ts] Release 4.2.62 2024-11-05 17:31:40 +01:00
Davide Tantillo
8a03d8a7c7 [ts][phaser] Automatically set UNPACK_PREMULTIPLY_ALPHA_WEBGL to false when spine texture is created, then restore it. 2024-11-05 16:09:13 +01:00
alvov
54ecc39017 Add sources to source maps via TS configuration option
Fixes #2652
2024-10-10 10:40:30 +02:00
Davide Tantillo
aa932c6507 [ts] Release 4.2.61 2024-09-25 10:07:07 +02:00
Davide Tantillo
e23beb7f75 [ts][phaser] Fixed phaser peerDependency blocked to 3.60 2024-09-25 10:03:58 +02:00
Davide Tantillo
e54f49205c [ts] Release 4.2.60 2024-09-19 11:50:40 +02:00
Mario Zechner
8dce540136 [ts] Fix TypeScript compiler version to latest 2024-09-19 11:15:48 +02:00
Davide Tantillo
7f6c672911 [ts][pixi] Add phaser as peer dependency. 2024-09-19 11:12:00 +02:00
Davide Tantillo
4cadd152b5 [ts] Release 4.2.59 2024-09-09 16:55:34 +02:00
Davide Tantillo
9e8b59df36 [ts][pixi] Removed bundle example in favor of updating documentation. 2024-09-09 15:16:48 +02:00
Richard Fu
167470fb16 [ts][pixi] Fix atlas src cannot be resolved for preferred texture 2024-09-09 15:16:48 +02:00
Davide Tantillo
cd69a7c78a [ts] Port of commit d769c1a: Fixed noRotationOrReflection with skeleton scale. 2024-09-09 11:09:27 +02:00
Gordon Cummings
d774632ccf replaces setTransform on slotObject
setTransform on pixi displayObjects performs:
```
this.scale.x = !scaleX ? 1 : scaleX;
this.scale.y = !scaleY ? 1 : scaleY;
```
meaning any transformations to scale 0 will become scale 1
2024-08-13 11:55:11 +02:00
Davide Tantillo
ed26c35d47 [ts] Release 4.2.58 2024-08-13 10:04:38 +02:00
Davide Tantillo
d8e0ca097e [ts][pixi] Formatting 2024-08-13 09:57:47 +02:00
Davide Tantillo
29369493db [ts][pixi] Fix existing meshes when attachments are remove, and clippings for slot objects. 2024-08-13 09:57:47 +02:00
Gordon Cummings
8d39c09de0 formatting
was auto using spaces over tabs
2024-08-13 09:57:47 +02:00
Gordon Cummings
dfa6098aa6 clipping mask vertices fix
in the case of weighted vertices on clipping attachments, we were previously using the length of the vertices array, which is not the same as the worldVerticesLength

example clipping attachment data:
"vertexCount": 4,
"vertices": [ 1, 15, -47.71, 34.91, 1, 1, 18, -47.86, -35.06, 1, 1, 17, 47.8, -34.9, 1, 1, 16, 47.81, 34.87, 1 ],

resulting vertices length would be 12
we actually needed 8
the result is an array with 8 correct numbers and 4 trailing numbers from the vertices array
2024-08-13 09:57:47 +02:00
Gordon Cummings
c6614d7db7 hide existing meshes when attachments are removed
when empty keyframes are set on attachments, we shouldn't see the mesh as it should have technically been removed (hidden)
2024-08-13 09:57:47 +02:00
Davide Tantillo
a1e4146cbb [ts] Release 4.2.57 2024-08-07 10:02:21 +02:00
Davide Tantillo
561219a4d8 [ts] Formatting 2024-08-07 09:51:17 +02:00
Davide Tantillo
a6899e7625 [ts] Restore deprecated clipTriangles signature erroneously removed in 4.2.46. Scheduled for removal in 4.3. 2024-08-07 09:42:46 +02:00
Davide Tantillo
e4df0c0dff [ts] Port of commit 877e705dd. Fix NaN in IKConstraint due to fp precision. 2024-08-07 08:36:46 +02:00
Davide Tantillo
9e35ce95fe [ts] Port: Fixed mixing out inherit timelines to the setup pose. See #2590. 2024-08-05 09:02:41 +02:00
Mario Zechner
1aa50ca968 [ts] Updated README.md 2024-07-22 17:34:10 +02:00
Davide Tantillo
520c0750f5 [ts] Port: Scale physics constraint limits with skeleton scale. See #2576. 2024-07-13 12:34:23 +02:00
Davide Tantillo
cbed5fbf40 [ts] Port: Scale physics constraint limits with skeleton scale. See #2576. 2024-07-12 09:00:11 +02:00
Mario Zechner
29c87dbb05 [ts] Release 4.2.56 2024-07-09 14:31:32 +02:00
Mario Zechner
e9bcaa7a9b [canvaskit] Fix JSON loading. 2024-07-09 14:22:11 +02:00