345 Commits

Author SHA1 Message Date
Davide Tantillo
f8a125aa8a [ts] Port of commit 48355c2, abb4362: PhysicsConstraint fixes. 2025-09-15 11:32:57 +02:00
Davide Tantillo
1309058850 [ts] Allow setSkin to accept null to unset skins. 2025-08-14 11:16:08 +02:00
Davide Tantillo
7c28c3c1c7 [ts] Add SkeletonRendererCore (missing file). 2025-08-12 10:34:02 +02:00
Davide Tantillo
3fa97353f1 [ts] Add SkeletonRendererCore. 2025-08-12 10:32:17 +02:00
Davide Tantillo
3bec86e5bd [ts] Port of commit 25bd863: Reverse IK bend positive logic (#2895).
Requires 4.3.39-beta+.
2025-07-25 09:13:30 +02:00
Davide Tantillo
cb9bdc8294 [ts] Add missing js extension on imports. 2025-07-22 16:00:40 +02:00
Mario Zechner
3927ff25ff [ts] Fix lints in HeadlessTest 2025-07-20 06:51:37 +02:00
Mario Zechner
c79031cc75 Remove npx install prompts and rely on auto-download
- Use npx -y for tsx to avoid install prompts
- Remove tsx from devDependencies since we use npx
- Remove npm install checks from format-ts.sh
2025-07-16 05:05:33 +02:00
Mario Zechner
62b38f9da8 Fix TypeScript dependencies and optimize Eclipse formatter build
- Install npm dependencies if node_modules missing
- Only rebuild Eclipse formatter if source is newer than JAR
- Make Eclipse formatter less verbose
2025-07-16 04:58:41 +02:00
Mario Zechner
8eb9ba957b [ts] Update main dependencies, add formatting script, add Biome for linting, temporary commit 2025-07-15 23:56:33 +02:00
Davide Tantillo
e280924dc5 [ts] 4.3 porting (a012479f, 92723279). 2025-07-15 09:50:55 +02:00
Mario Zechner
73a17e88c9 [tests] DebugPrinter -> HeadlessTest 2025-07-11 14:16:24 +02:00
Mario Zechner
6dffb3ea90 [libgdx] Fix VS Code launch config for debug-printer 2025-07-11 13:46:37 +02:00
Mario Zechner
4e3d2be023 [c][cpp][libgdx] Launch configs for debug-printer 2025-07-11 12:33:02 +02:00
Davide Tantillo
40685bb6c6 [ts][webcomponents] Avoid recreating texture when image is passed through cache. 2025-07-11 11:37:39 +02:00
Davide Tantillo
2e5a099ef4 [ts][webcomponents] Sharable cache for AssetManager. 2025-07-11 11:37:35 +02:00
Davide Tantillo
fa24ea24c1 [ts] Fix MeshAttachment copy changing uvs type. 2025-06-26 11:15:39 +02:00
Davide Tantillo
b8211baedc [ts] Formatting. 2025-06-26 10:59:02 +02:00
Davide Tantillo
bb06f81a06 [ts] 4.3 porting WIP. 2025-06-26 10:51:28 +02:00
Davide Tantillo
174426e8f4 [ts] 4.3 Fix ToX and ToY scaling. 2025-06-25 18:39:07 +02:00
Davide Tantillo
049c66054f [ts] 4.3 porting WIP. 2025-06-25 18:39:07 +02:00
Davide Tantillo
6747034d5a [ts] 4.3 From/To properties scale and unscale using skeleton.scaleX/Y. 2025-06-25 18:39:07 +02:00
Davide Tantillo
71a2d90839 [ts] 4.3 porting - Fix SkeletonBinary. 2025-06-25 18:39:07 +02:00
Davide Tantillo
503941ac92 [ts] yDown on FromRotate. 2025-06-25 18:39:07 +02:00
Davide Tantillo
12c75feeb3 [ts] 4.3 porting skeleton binary fix. 2025-06-24 15:12:35 +02:00
Davide Tantillo
bda90bd158 Formatting 2025-06-20 15:28:40 +02:00
Davide Tantillo
9482f60ccf [ts] 4.3 porting WIP. 2025-06-20 12:00:04 +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
528223a2cf [ts] 4.3 porting - Fixed transform constraints ToScaleX/Y when skeleton scale is used. 2025-06-20 08:57:20 +02:00
Davide Tantillo
c99f5804d4 [ts] 4.3 porting - Fixed slider scale. 2025-06-20 08:50:45 +02:00
Davide Tantillo
f51db8f672 [ts] 4.3 porting - Fixed binary export for constraints. 2025-06-20 08:50:00 +02:00
Davide Tantillo
e723893c0c [ts] 4.3 porting WIP - latest updates. 2025-06-19 12:25:42 +02:00
Davide Tantillo
8d046cbbf4 [ts] 4.3 porting WIP - latest updates. 2025-06-16 09:33:33 +02:00
Davide Tantillo
2beb50f31f [ts] 4.3 porting WIP - Sliders fix. 2025-06-12 17:41:55 +02:00
Davide Tantillo
3eb587c988 [ts] 4.3 porting WIP - TC constants. 2025-06-12 15:27:18 +02:00
Davide Tantillo
1ec1d23b7f [ts] 4.3 porting WIP. 2025-06-12 15:17:06 +02:00
Davide Tantillo
cb7872274d [ts] 4.3 porting WIP. 2025-06-12 15:17:06 +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
b74ba4cab2 [ts] Port to 4.3 fixes (WIP) 2025-06-01 16:21:53 +02:00
Davide Tantillo
a2547097c2 [ts] Port to 4.3 (WIP) 2025-05-29 17:35:17 +02:00
Nathan Sweet
9b596c3856 Merge branch '4.2' into 4.3-beta
# Conflicts:
#	spine-unity/Assets/Spine/package.json
2025-05-21 10:29:28 -04:00
Davide Tantillo
430b54de5e [ts] Release 4.2.82 2025-05-16 12:50:14 +02: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
Davide Tantillo
69cc3e81c1 [ts] Release 4.2.81 2025-05-08 13:01:28 +02:00
Mario Zechner
c9aca368d6 [ts] Port of #2837 2025-05-07 13:17:43 +02:00
Nathan Sweet
020cd51b96 Merge branch '4.2' into 4.3-beta
# Conflicts:
#	spine-unity/Assets/Spine/package.json
2025-04-30 17:29:49 -04:00
Davide Tantillo
6654484a33 [ts] Release 4.2.80 2025-04-24 16:08:06 +02:00