Davide Tantillo
3dd4e91ff5
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.
2025-05-09 15:40:38 +02:00
Davide Tantillo
4d795da488
Add interactivity events.
2025-05-09 15:40:38 +02:00
Davide Tantillo
598fcc5cf4
WIP - Add interactivity events. isdraggable is currently broken.
2025-05-09 15:40:38 +02:00
Davide Tantillo
f7316acef5
Simplified drag calculation and drag debug removing an additional div.
2025-05-09 15:40:38 +02:00
Davide Tantillo
89976b7f48
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!
2025-05-09 15:40:38 +02:00
Davide Tantillo
2b6e1ff578
Allow multiple widgets for the same HTMLElement
2025-05-09 15:40:37 +02:00
Davide Tantillo
f9bada6d0c
Merge branch '4.2' into ts-webgl-overlay
2025-05-09 15:40:37 +02:00
Davide Tantillo
69cc3e81c1
[ts] Release 4.2.81
2025-05-08 13:01:28 +02:00
Davide Tantillo
6654484a33
[ts] Release 4.2.80
2025-04-24 16:08:06 +02:00
Davide Tantillo
3f65213f70
[ts] Release 4.2.79
2025-04-23 17:06:06 +02:00
Davide Tantillo
4d63de47e4
[ts] Release 4.2.78
2025-04-23 12:37:47 +02:00
Davide Tantillo
da0be9de63
[ts] Release 4.2.77
2025-04-16 17:32:06 +02:00
Davide Tantillo
18d30af5a9
[ts] Release 4.2.76
2025-03-12 10:40:45 +01:00
Nathan Sweet
56823c5ca5
Use timekeeper delta.
2025-03-08 11:39:25 -04:00
Davide Tantillo
9ecbee794b
[ts] Release 4.2.75
2025-03-05 12:37:46 +01:00
Davide Tantillo
9f819b3872
[ts] Release 4.2.74
2025-02-20 12:58:57 +01:00
Davide Tantillo
bd1b98fe97
[ts] Release 4.2.73
2025-02-13 11:58:59 +01:00
Davide Tantillo
ab4add3db6
[ts] Release 4.2.72
2025-02-06 11:09:17 +01:00
Davide Tantillo
7761e68269
[ts] Release 4.2.71
2025-01-24 17:30:55 +01:00
Davide Tantillo
1f0ed7547f
[ts] Release 4.2.70
2024-12-18 14:30:13 +01:00
Davide Tantillo
3514e2070b
ts] Release 4.2.69
2024-12-14 23:14:44 +01:00
Davide Tantillo
007f39f519
[ts] Release 4.2.68
2024-12-10 14:23:46 +01:00
Davide Tantillo
ab545be08c
[ts] Release 4.2.67
2024-12-06 11:43:50 +01:00
Davide Tantillo
a90bdce403
[ts] Release 4.2.66
2024-11-15 11:21:02 +01:00
Davide Tantillo
2fa1c28fba
[ts] Release 4.2.65
2024-11-13 11:08:02 +01:00
Davide Tantillo
6ab5ddf92d
[ts] Release 4.2.64
2024-11-12 10:07:55 +01:00
Davide Tantillo
b2b0a3dc42
[ts] Release 4.2.63
2024-11-07 15:17:01 +01:00
Davide Tantillo
c3d510e3c8
[ts] Release 4.2.62
2024-11-05 17:31:40 +01:00
Davide Tantillo
bdb9ea160e
Fixed example.
2024-10-21 15:31:33 +02:00
Davide Tantillo
38f5231cd2
Docs and minor fixes.
2024-10-21 15:19:46 +02:00
Davide Tantillo
0fa960251a
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)
2024-10-18 16:42:57 +02:00
Davide Tantillo
de7494036c
Initial support of spine-widget into scrollable containers, and overlay-id for multiple spine-overlay.
...
working
2024-10-14 18:22:09 +02:00
Davide Tantillo
e9a07bd6b9
Changes to make the widget more dynamic while changing attributes. See now webcomponent-gui.html.
2024-10-08 17:26:31 +02:00
Davide Tantillo
a34b8273b3
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).
2024-10-04 17:38:23 +02:00
Davide Tantillo
f4837ad8eb
Add padding attributes/properties.
2024-10-03 13:05:12 +02:00
Davide Tantillo
bedce14780
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.
2024-10-03 11:05:14 +02:00
Davide Tantillo
8cc5a2ba5e
Fix widget using overlay before overlay webcomponent is fully upgraded.
2024-10-03 09:23:48 +02:00
Davide Tantillo
6fa149756a
Fix x-axis and y-axis not working in clip mode.
2024-10-01 13:01:53 +02:00
Davide Tantillo
6108d625c0
Fixed infinite requestAnimationFrame calls.
2024-09-30 12:07:36 +02:00
Davide Tantillo
95f2119e46
Fixed input remove listener. Run tsfmt.
2024-09-30 11:52:02 +02:00
Davide Tantillo
2db1873fd5
Managed lifecycle for SpineWebComponentWidget.
2024-09-30 11:36:39 +02:00
Davide Tantillo
5c42b6fa2d
Manage lifecycle for Input and SpineWebComponentOverlay. Missing SpineWebComponentWidget.
2024-09-27 16:06:23 +02:00
Davide Tantillo
e26034426a
Made some changes to make it work on old browsers.
2024-09-27 12:30:09 +02:00
Davide Tantillo
27edd8a284
Made span fps display configurable.
2024-09-26 17:09:15 +02:00
Davide Tantillo
a254fabaef
Cleaned webcomponent example.
2024-09-26 16:09:27 +02:00
Davide Tantillo
3b4ab02d92
Fix 1 pixel misalignment in non clip mode.
2024-09-26 15:45:19 +02:00
Davide Tantillo
3d77f1c26e
Removed custom LoadingSpinnerWindget class. Added a new specific method in LoadingSpinner.
2024-09-26 15:40:16 +02:00
Davide Tantillo
9399c42ec7
Removed useless changes on other classes.
2024-09-26 14:41:41 +02:00
Davide Tantillo
e9873147c2
Fix zoom bug due to screen size remaining the same at different zoom level.
2024-09-26 14:22:59 +02:00
Davide Tantillo
e8511ca8b2
Modified export script to copy chibi
2024-09-26 14:22:59 +02:00