9808 Commits

Author SHA1 Message Date
Mario Zechner
e24b1a25d8 [flutter] Updated WASM binary 2025-05-16 11:10:17 +02:00
Mario Zechner
71359240d7 [flutter] Release 4.2.36 2025-05-16 11:09:26 +02:00
Mario Zechner
13095faa8c [flutter] Upgrade to AGP 8.5.1, NDK 28.1.13356709, minSDK 21, Closes #2849 2025-05-16 11:02:54 +02:00
Harald Csaszar
393ef29cb3 [unity] Increased package version after previous revert-commit to avoid decreasing version number issues. 2025-05-15 20:58:41 +02:00
Harald Csaszar
0865206b15 [unity] Reverts 23adb6b: Inside/Outside Mask Materials recreated unnecessarily upon material changes. See #2848. 2025-05-15 20:57:25 +02:00
Davide Tantillo
e1e88fce60 [ts] Fixed and improved appendedToBody overlays without transform. 2025-05-15 18:26:53 +02:00
Harald Csaszar
23adb6b9b8 [unity] Inside/Outside Mask Materials recreated unnecessarily upon material changes. Closes #2848. 2025-05-14 21:46:16 +02:00
Davide Tantillo
67a965b633 [ts] Removed global declarations from require-shim files. Closes #2847. 2025-05-14 17:34:08 +02:00
Mario Zechner
4246da1afa [ts] Update package-lock.json 2025-05-14 15:49:47 +02:00
Mario Zechner
c7b850f972 [ts] Update esbuild and (a)live-server 2025-05-14 15:49:34 +02:00
Davide Tantillo
b6f39efc92 [ts][webcomponents] Fix no-spinner logic reversed. 2025-05-14 13:10:31 +02:00
Davide Tantillo
a799d02ece [ts][webcomponents] Fix onScreenAtLeastOnce not set if widget laods off screen. 2025-05-14 12:41:52 +02:00
Davide Tantillo
680fa631d6 [ts][webcomponents] Add holdDurationLastAnimation to animations attribute. 2025-05-14 11:18:04 +02:00
Mario Zechner
ebaf15d9de
Update pull_request_template.md 2025-05-13 16:44:19 +02:00
Mario Zechner
7df38b3390
Update pull_request_template.md 2025-05-13 16:37:47 +02:00
Mario Zechner
66699719ef
Pull request template 2025-05-13 16:36:26 +02:00
Davide Tantillo
e9883a86b9 [ts] Formatting. 2025-05-13 12:23:41 +02:00
Davide Tantillo
6e4162d093 [ts][phaser] Fix texture fetching with loader path set. Closes #2845. 2025-05-13 12:15:06 +02:00
Mario Zechner
f256510248 [godot] Build on Ubuntu 22 runners, closes #2844 2025-05-12 12:02:21 +02:00
Davide Tantillo
158a4922cd [ts][wecomponents] Use computed style to determine overlay z-index. 2025-05-12 11:52:12 +02:00
Davide Tantillo
4acd202f41 [ts][wecomponents] Determine overlay z-index when widget is added. 2025-05-12 11:43:11 +02:00
Nathan Sweet
428b3f09cd [ts] Use double quotes in dev* for Windows. 2025-05-09 17:09:24 -04:00
Davide Tantillo
e8cf7ba3b6 [ts] Move SHOW_FPS to overlay. Add wecomponents to build.sh. 2025-05-09 16:12:34 +02:00
Davide
c9b040f797
[ts] Add spine-webcomponents package
* [ts] poc wegl overlay

* [ts] poc wegl overlay

* canvas4

* overlay 4

* overlay

* overlay fix scroll cut

* Zoom fix - WIP horizontal scroll bug see comment at line 495

* Scroll should be resolved

* web component

* Loading

* mostly work - when overflow top/bottom...are > 0, widgets slightly jump on up and down fast scroll.

* Renamed

* Add OffScreenUpdateBehaviour

* Fixed loading spinner example

* Translate is done each frame through requestAnimationFrame.

* Added clip.

* Removed SpineCanvasApp dependency.

* Removed code duplication for clipping into div

* Refactor drag logic. Drag works with clip too.

* WIP - Doc before refactor

* WIP - Refactor + animation and skin attribute change will reinit the widget

* Modified export script to copy chibi

* Fix zoom bug due to screen size remaining the same at different zoom level.

* Removed useless changes on other classes.

* Removed custom LoadingSpinnerWindget class. Added a new specific method in LoadingSpinner.

* Fix 1 pixel misalignment in non clip mode.

* Cleaned webcomponent example.

* Made span fps display configurable.

* Made some changes to make it work on old browsers.

* Manage lifecycle for Input and SpineWebComponentOverlay. Missing SpineWebComponentWidget.

* Managed lifecycle for SpineWebComponentWidget.

* Fixed input remove listener. Run tsfmt.

* Fixed infinite requestAnimationFrame calls.

* Fix x-axis and y-axis not working in clip mode.

* Fix widget using overlay before overlay webcomponent is fully upgraded.

* Restore resize observer since the window resize event does not fire on body resize, but on window resize. It's supported by 93% of the browsers.

* Add padding attributes/properties.

* Exposed parameters to set bounds.
Deeply changed how bounds work, especially for the fact that they are not auto recalculated anymore if the animation is changed (unless autoRecalculateBounds is set to true).

* Changes to make the widget more dynamic while changing attributes. See now webcomponent-gui.html.

* Initial support of spine-widget into scrollable containers, and overlay-id for multiple spine-overlay.
working

* WIP - Added/Changed:
- overlay loading: now overlay is moved as the last element from where it is inserted to avoid widgets covered by backgrounds of html elements after it.
- default overlayId
- widget position in overlay coordinates (worldX, worldY) (experimental)
- cursor position on widget world (cursorWorldX, cursorWorldY) (experimental)
- jsonSkeletonKey: allow to load a specific skeleton in json containing multiple skeletons
- onViewportManualStart: start the widget when in manual-start and enters the viewport the first time
- overlayAssignedPromise: a promise that resolves when the overlay is assigned to the widget. Reads the comment on it
- appendTo: to append the widget created using js and wait for the overlayAssignedPromise to resolve
- changed how loadingPromise works
- added cursorCanvasX, cursorCanvasY, cursorWorldX, cursorWorldY to overlay (experimental)

* Docs and minor fixes.

* Fixed example.

* Allow multiple widgets for the same HTMLElement

* Simplified clip to div by using scissor rather than changing viewport+camera.
In this way we can treat coordinates equally for cliped and not clipped widgets!

* Simplified drag calculation and drag debug removing an additional div.

* WIP - Add interactivity events. isdraggable is currently broken.

* Add interactivity events.

* Fixed a bug where an infinite loop occurred in Firefox when compareDocumentPosition results in DOCUMENT_POSITION_DISCONNECTED.

In both Chrome and Firefox, when an element is inside a webcomponent the comparison results in DOCUMENT_POSITION_DISCONNECTED. But in Firefox the element result in DOCUMENT_POSITION_FOLLOWING too, leading to an infinite loop.

* Fix physicsTranslate y opposite direction while dragging.

* Add followSlot method

* Add animations, animations-bound and default-mix attributes.

* Original event is passed to bounds and slot callbacks.

* Made overlay canvas size consistent across different browsers. Base size is not anymore the screen size due to browser limitations, but the window size. This will trigger additional canvas resize on window resize.

* Reduce DPI if canvas is too big to avoid page crash - this happen on webpage on mobile with high dpi and missing meta viewport tag with width=device-width.

* Pma properties on atlas is used to detect pma textures.

* Add rawData attribute to pass s stringified JSON object for inline base64 assets.

* format

* Prevent useless resize.

* Prevent error on disconnected callback

* Update tutorial.

* Fixed multiple click events on mobile touches. Add team example.

* Fixed slot interaction issue.

* Resize overlay when follow slot element is added.

* Add interactive widget example.

* Temporarily add windmill only manually to webgl assets

* Move getBounding in scrollable case.

* formatter

* Fixed overlay disconnectedCallback.

* Overlay should load not for DOMContentLoaded event only if document has already complete loading.

* Overlay parent bounding box determined only if necessary.

* Overlay needs to consider border if it's scrollable.

* Fixed issues with slot events on mobile.

* food app and cleanup

* Make overlayAssignedPromise private.

* Change scrollable to appendedToBody, make it private and determine it at dom connect.

* scrollable-tweak-off changed to no-auto-parent-transform.

* Update bounds and slot interaction method names.

* getHTMLElementReference to getHostElement.

* recalculateBounds and autoRecalculateBounds to calculateBounds and autoCalculateBounds.

* dpi to dpr and transform DPR to DevicePixelRatio when needed. Add @internal tag to internal fields.

* Properties rename.

* Better comments and variable names for canvas resize related stuff.

* callbacks renamed consistently.

* for each to for of.

* Update other names.

* onScreenManualStart to startWhenVisible. startWhenVisible set manualStart to true.

* fix return to continue in for of.

* Refcounter for asset manager and gl resources disposal for webcomponent.

* Fixes to asset manager ref counter.

* Add dispose example.

* Fix overlay init not completed in some scenario.
DOMContentLoaded is invoked only when document.readyState is interactive.

* Cleaned up examples.

* spinner to no-spinner.

* Move webcomponent to spine-widget folder.

* start won't reset bounds.

* Remove test file.

* Moved team example in its own page.

* Improved tutorial explanations.

* Moved some examples in their own pages.

* Formatter.

* Widgets dragged can be dragged even if host is offscreen.

* General refactor. spine-widget to spine-skeleton.

* spine-widget package renamed to spine-webcomponents.

* Moved assets to a single assets folder.

* Run formatter.

* Add beta notice.

* Changed widget occurrences to webcomponents.
2025-05-09 15:59:00 +02:00
Davide Tantillo
69cc3e81c1 [ts] Release 4.2.81 2025-05-08 13:01:28 +02:00
Davide Tantillo
e553d71807 [ts][pixi-v8] Spine allowChildren to true to prevent deprecation warning. Close #2841. 2025-05-08 12:54:58 +02:00
Davide Tantillo
24529f5cd1 [haxe] port of commit 4a351ce: Fixed delay being negative, causing the track time to jump. See #2837. 2025-05-07 17:53:18 +02:00
Harald Csaszar
c516c9a5cd [csharp] port of commit 4a351ce: Fixed delay being negative, causing the track time to jump. See #2837. 2025-05-07 14:21:34 +02:00
Nathan Sweet
262a0d270f [libgdx] Fixed delay being negative, causing the track time to jump. 2025-05-07 13:18:56 +02:00
Mario Zechner
c9aca368d6 [ts] Port of #2837 2025-05-07 13:17:43 +02:00
Mario Zechner
3f440bfc4a [c] Port of #2837 2025-05-07 13:11:49 +02:00
Mario Zechner
ec3231f861 [cpp] Port of #2837 2025-05-07 13:06:50 +02:00
Mario Zechner
5b2d479d4b [godot] Fix loading of atlas page PNGs for non-resource paths (user://, absolute). Closes #2814 2025-05-06 16:11:03 +02:00
Harald Csaszar
480a4b18b7 [unity] Fixed BoundingBoxFollower and BoundingBoxFollowerGraphic ignoring deactivated skin bone. Closes #2836. 2025-05-05 21:30:28 +02:00
Harald Csaszar
ff572ec8a4 [unity] Added null check at SkeletonRenderSeparator, closes #2823. 2025-05-05 16:37:25 +02:00
Mario Zechner
80e853b74b [godot] Fix GH action for extension 2025-05-05 15:44:37 +02:00
Mario Zechner
4f5e990b5f [godot] Fetch major.minor from git branch name. 2025-05-05 14:26:35 +02:00
Mario Zechner
15b96b3ea8 Merge branch 'apple-fixes' of https://github.com/mihe/spine-runtimes into mihe-apple-fixes 2025-05-05 13:35:49 +02:00
James Chen
b57acb040c
Fix spine::Vector copy assignment. (#2828) 2025-05-05 13:24:21 +02:00
bofeng-song
7fd1e5340c
Fix the inconsistent behavior between Spine vector's setSize and std::vector's resize, which causes the Spine vector to allocate additional space upfront. (#2830) 2025-05-05 13:21:33 +02:00
Byeong Gwan
123426d3e3
[iOS] fix additive, normal blending (#2822) 2025-05-05 11:57:51 +02:00
Mario Zechner
ae8c4792ba [godot] Update build dotnet SDK to 8.0.x 2025-04-30 17:02:30 +02:00
Mario Zechner
2712cffc00 [godot] Closes #2832, SpineSprite.set_time_scale/get_time_scale 2025-04-30 14:01:50 +02:00
Davide Tantillo
6654484a33 [ts] Release 4.2.80 2025-04-24 16:08:06 +02:00
Davide Tantillo
1530550acd [ts][pixi-v7][pixi-v8] Fixed slot objects ignoring negative parent bone scale. See #2818. 2025-04-24 16:03:25 +02:00
Harald Csaszar
d7f3ab4723 [unity] Fixed Create Hinge Chain creating incorrect hierarchy on multiple children. Closes #2825. 2025-04-23 21:31:58 +02:00
Davide Tantillo
3f65213f70 [ts] Release 4.2.79 2025-04-23 17:06:06 +02:00
Davide Tantillo
15766e8ef2 [ts][phaser-v3][phaser-v4] Fixed gameobject position when it is rotated. 2025-04-23 17:06:06 +02:00
badlogic
878a658ea9 [ue] Add missing default initializer to FSpineEvent, closes #2821 2025-04-23 13:59:54 +02:00
Davide Tantillo
4d63de47e4 [ts] Release 4.2.78 2025-04-23 12:37:47 +02:00