247 Commits

Author SHA1 Message Date
Mario Zechner
814095fe11 Update runtime.sh for spine-godot extension 2025-11-10 17:26:42 +01:00
Harald Csaszar
c3e41214cf [unity] Changed example skeleton atlas assets from using PMA to straight alpha for better compatibility with Linear color space. 2025-09-16 20:37:36 +02:00
Harald Csaszar
de81263377 [examples] Adjusted spine-unity asset copy path to new Samples dir. See #2926, commit 8bcadb4. 2025-09-16 12:15:57 +02:00
Mario Zechner
b9c394fc8d [glfw] Added physics example 2025-09-11 01:26:50 +02:00
Mario Zechner
b96e7c2461 [assets] Re-exported and distributed to runtimes 2025-09-11 01:09:23 +02:00
Nathan Sweet
cf12e9cc19 [examples] Diamond example exports and license. 2025-09-03 15:57:48 -06:00
Nathan Sweet
38daba88e9 [examples] Added diamond example. 2025-09-03 15:50:01 -06:00
Nathan Sweet
cf02874ac6 [examples] Added diamond example. 2025-09-03 15:47:31 -06:00
Nathan Sweet
06e085660e Updated owl example project. 2025-07-31 17:25:35 -04:00
Davide Tantillo
522785b8fb [haxe] Fixed sack example export. 2025-06-23 10:55:52 +02:00
Nathan Sweet
17b74d740f Exported example projects with 4.3.37-beta. 2025-06-20 15:55:39 -04:00
Nathan Sweet
1139e0181b Fixed example project settings. 2025-06-20 15:53:28 -04:00
Nathan Sweet
bb700b6ff4 Fixed cloud-pot example constraint order. 2025-06-20 12:12:05 -04:00
Davide Tantillo
517d9341b6 [examples] Sed 7-anticipation to sack to atlas file for sack example. 2025-06-20 15:20:59 +02:00
Harald Csaszar
3b2d01d1af [examples] Copy script: added missing -f at some removal statements. 2025-06-17 15:32:29 +02:00
Harald Csaszar
a1b8f1ddb2 [unity] Updated outdated runtime example script path (sack project). 2025-06-17 12:35:27 +02:00
Davide Tantillo
410921833b [examples] Changed sack to 7-anticipation in runtime.sh. 2025-06-17 12:30:04 +02:00
Nathan Sweet
425f3d5776 Updated owl example project. 2025-06-13 15:01:37 -04:00
Nathan Sweet
427452c007 Updated chibi-stickers example project. 2025-06-12 12:58:43 -04:00
Nathan Sweet
65f29abc32 Updated 7-anticipation example. 2025-06-10 13:53:57 -04:00
Davide Tantillo
b3717f3a9b [haxe] Port to 4.3 (WIP) - revert runtime.sh 2025-06-05 18:00:29 +02:00
Davide Tantillo
47c687c870 [haxe] Port to 4.3 (WIP) 2025-06-05 17:58:50 +02:00
Nathan Sweet
4bcf00b7d8 Spineboy example, set run as default animation. 2025-05-26 17:20:59 -04:00
Nathan Sweet
b8b55ebd5e food-app example, update skeleton order. 2025-05-21 10:19:15 -04:00
Nathan Sweet
70d0171468 * Added food-app example project.
* Updated mix-and-match to fix blue dress sleeve.
* Changed export scripts to pack polygons for most PRO projects.
* Re-exported projects.
2025-05-20 19:54:49 -04:00
Nathan Sweet
8ade10fc97 Removed unused transform constraint from spineboy example project. 2025-05-17 20:08:56 -04:00
Nathan Sweet
0f4abc0aab Example projects updated, unused transform properties unmapped. 2025-05-15 17:01:30 -04:00
Nathan Sweet
7be6dac44a Merge branch '4.2' into 4.3-beta
# Conflicts:
#	spine-ts/package.json
#	spine-unity/Assets/Spine/package.json
2025-05-09 17:05:41 -04: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
Nathan Sweet
7a48eb9f3a Spineboy example, use 3 vertices for clipping. 2025-05-05 15:16:37 -04:00
Nathan Sweet
b263728502 * Exported examples with 4.3.15-beta.
* Fixed spine-unity/raptor.
* Resized the largest image down by 0.5, scaled by 2 in projects.
2025-04-27 16:26:36 -04:00
Nathan Sweet
ac1c5ecb68 Added 8 Animating with Spine example projects.
Renamed sack to 7-anticipation.
2025-04-24 18:10:15 -04:00
Nathan Sweet
330717a449 Updated example projects. 2025-04-24 11:07:54 -04:00
Nathan Sweet
dafafca942 Merge branch '4.2' into 4.3-beta-sliders
# Conflicts:
#	spine-ts/package.json
2025-04-23 11:59:55 -04:00
Davide
b2c12b9d06
[ts][phaser-v3][phaser-v4] New runtime for phaser-v4. Moved phaser to phaser-v3 (#2815) 2025-04-16 17:01:53 +02:00
Harald Csaszar
7fe96af60f [unity] Adjusted runtime example copy script to deleted LWRP package and added ui-toolkit package. 2025-04-09 17:23:33 +02:00
Davide Tantillo
7594c959dc [ts][threejs] Add support for lighting and shadow. Upgraded three to 0.162.0. Added new constructor. 2024-12-06 11:22:53 +01:00
Davide Tantillo
417d7c2239 [ts][pixi-v8] Cleanup examples and updated runtime.sh script. 2024-11-13 11:33:16 +01:00
Mario Zechner
9207cd2a40 [cpp][glfw] Fix reading bounding box attachments in SkeletonBinary, closes #2668, add binary Spineboy to example 2024-11-05 13:55:28 +01:00
Mario Zechner
09c71cd313 [android] Copy assets via runtime.sh 2024-07-25 19:13:39 +02:00
Mario Zechner
68ec7459c0 [canvaskit] Add physics assets 2024-07-09 10:55:25 +02:00
Mario Zechner
1df497e1e7 [ts][canvas] Minor fix to triangle renderer, improve examples 2024-07-05 17:53:48 +02:00
Davide Tantillo
f3b3cb429a [ts][threejs] Allow to load pma textures. Non-pma textures are pma on upload. Fixed blending modes. Add physics example.
Close #2503.
2024-07-02 18:09:40 +02:00
Mario Zechner
a5b3bc709d [ios] Fix blending, use PMA assets in all examples. See #2555 2024-06-28 15:46:28 +02:00
Mario Zechner
da8131e0e1 [ios] Fix version in podspec files, update example/export/runtimes.sh 2024-06-18 10:46:12 +02:00
Davide Tantillo
61e9be2dcc [ts][pixi] clipping + alpha for pixi objects added to slots 2024-06-12 12:41:55 +02:00
Davide Tantillo
fd65b561b8 [ts][pixi] Add typescript example 2024-05-23 12:23:21 +02:00
Mario Zechner
cb3aa4ec7c [sdl] Use PMA asset in example, formatting, port to C backend 2024-05-21 11:55:53 +02:00
Mario Zechner
a911384e67 Re-export examples and copy to runtimes 2024-05-16 16:08:40 +02:00
Harald Csaszar
d0480da0e5 [examples] Removed spine-cocos2d-objc from runtimes copy script. 2024-05-16 09:56:20 +02:00