Davide Tantillo
ec314953bb
Overlay should load not for DOMContentLoaded event only if document has already complete loading.
2025-05-09 15:40:38 +02:00
Davide Tantillo
f3612e73cf
Fixed overlay disconnectedCallback.
2025-05-09 15:40:38 +02:00
Davide Tantillo
71780e6d60
formatter
2025-05-09 15:40:38 +02:00
Davide Tantillo
85d4715313
Move getBounding in scrollable case.
2025-05-09 15:40:38 +02:00
Davide Tantillo
2a6b424a1c
Resize overlay when follow slot element is added.
2025-05-09 15:40:38 +02:00
Davide Tantillo
40724dd52e
Fixed slot interaction issue.
2025-05-09 15:40:38 +02:00
Davide Tantillo
29a30a07c1
Fixed multiple click events on mobile touches. Add team example.
2025-05-09 15:40:38 +02:00
Davide Tantillo
34acafb254
Prevent error on disconnected callback
2025-05-09 15:40:38 +02:00
Davide Tantillo
04eb82e8b6
Prevent useless resize.
2025-05-09 15:40:38 +02:00
Davide Tantillo
e02f495883
format
2025-05-09 15:40:38 +02:00
Davide Tantillo
c4d419caf9
Add rawData attribute to pass s stringified JSON object for inline base64 assets.
2025-05-09 15:40:38 +02:00
Davide Tantillo
23ece7f4da
Pma properties on atlas is used to detect pma textures.
2025-05-09 15:40:38 +02:00
Davide Tantillo
69e4d365e0
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.
2025-05-09 15:40:38 +02:00
Davide Tantillo
961e377ec9
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.
2025-05-09 15:40:38 +02:00
Davide Tantillo
6671cac372
Original event is passed to bounds and slot callbacks.
2025-05-09 15:40:38 +02:00
Davide Tantillo
a46e76b1d7
Add animations, animations-bound and default-mix attributes.
2025-05-09 15:40:38 +02:00
Davide Tantillo
a636ef0964
Add followSlot method
2025-05-09 15:40:38 +02:00
Davide Tantillo
f9d73920d2
Fix physicsTranslate y opposite direction while dragging.
2025-05-09 15:40:38 +02:00
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
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
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
Davide Tantillo
4536789e39
WIP - Refactor + animation and skin attribute change will reinit the widget
2024-09-26 14:22:59 +02:00
Davide Tantillo
d178f5de7c
WIP - Doc before refactor
2024-09-26 14:22:59 +02:00
Davide Tantillo
b4f11c2f21
Refactor drag logic. Drag works with clip too.
2024-09-26 14:22:59 +02:00
Davide Tantillo
d2c29c5cfb
Removed code duplication for clipping into div
2024-09-26 14:22:59 +02:00
Davide Tantillo
e67aa324fe
Removed SpineCanvasApp dependency.
2024-09-26 14:22:59 +02:00