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

223 lines
3.6 KiB
Plaintext

food-app-pro.png
size:2047,812
filter:Linear,Linear
pma:true
scale:0.25
blob-delivery
bounds:567,422,561,388
blob-list
bounds:54,375,511,435
blob-pan
bounds:1130,387,510,423
blob-ready
bounds:567,13,494,407
bottle-base
bounds:153,203,98,170
bottle-cork
bounds:1517,237,55,43
bottle-liquid-base
bounds:2,116,91,143
bottle-liquid-top
bounds:1947,479,68,21
bottle-reflection-middle
bounds:1746,565,16,11
bottle-reflection-top
bounds:31,696,13,9
bottle-top-open
bounds:1936,606,40,10
bottle-wrap
bounds:95,62,99,66
box
bounds:1821,123,133,132
rotate:90
bread
bounds:1689,59,81,68
bread-bottom
bounds:1396,282,180,103
bread-top
bounds:1829,360,187,112
bubble-base-b
bounds:446,147,119,119
bubble-base-c
bounds:253,149,119,119
bubble-base-m
bounds:1396,161,119,119
bubble-base-t
bounds:1063,161,119,119
bubble-big
bounds:1805,599,13,12
bubble-small
bounds:2008,619,9,9
bubble-tail-b
bounds:429,345,29,28
bubble-tail-c
bounds:2018,442,28,27
rotate:90
bubble-tail-m
bounds:2018,472,27,28
bubble-tail-t
bounds:1097,392,28,29
rotate:90
building
bounds:2,261,149,112
building2
bounds:1849,258,149,100
burger-case-base
bounds:1760,474,229,142
burger-case-front
bounds:1508,115,230,123
bush
bounds:1063,89,111,70
bush-small
bounds:486,21,75,53
carrot-body
bounds:1988,554,50,62
carrot-green
bounds:2000,324,42,34
cheese
bounds:1642,366,185,115
circle
bounds:1642,613,197,197
offsets:1,2,200,200
cloud
bounds:1576,92,111,70
flame-orange-1
bounds:1746,537,12,11
flame-orange-2
bounds:31,707,16,16
flame-orange-3
bounds:31,725,16,20
flame-orange-4
bounds:1972,589,12,15
flame-orange-5
bounds:1746,550,11,13
flame-red-1
bounds:2018,412,25,28
flame-red-2
bounds:2,385,40,42
flame-red-3
bounds:2,429,39,45
flame-red-4
bounds:2008,733,31,37
flame-red-5
bounds:2008,660,30,34
food-piece-1
bounds:2000,300,23,22
food-piece-2
bounds:2008,696,32,35
food-piece-3
bounds:2018,388,27,22
food-piece-4
bounds:1578,366,23,19
food-piece-5
bounds:2,476,46,43
food-piece-6
bounds:2008,772,37,38
food-piece-7
bounds:1789,597,14,14
fries-1
bounds:1515,28,59,87
fries-10
bounds:374,135,68,129
fries-11
bounds:1363,96,63,126
rotate:90
fries-12
bounds:2,571,49,121
fries-13
bounds:161,15,37,100
rotate:90
fries-2
bounds:196,54,46,114
rotate:90
fries-3
bounds:1880,22,39,101
rotate:90
fries-4
bounds:1256,93,76,105
rotate:90
fries-5
bounds:1184,149,70,131
fries-6
bounds:1955,126,57,130
fries-7
bounds:95,130,71,115
rotate:90
fries-8
bounds:1176,47,72,100
fries-9
bounds:1256,171,72,115
rotate:90
fries-case-back
bounds:1259,245,135,140
fries-case-front
bounds:1578,240,132,124
fries-case-side
bounds:1811,25,67,104
house-distant
bounds:2,50,83,64
house-front
bounds:1642,497,102,114
lamp-post
bounds:2,694,27,116
list-base
bounds:1841,618,192,165
rotate:90
list-writing
bounds:1712,239,135,119
magnifier-holder
bounds:410,19,55,74
rotate:90
magnifier-reflection
bounds:1063,393,32,27
magnifier-round
bounds:466,278,88,95
mushroom
bounds:1983,2,60,59
mushroom-1
bounds:1250,32,82,59
mushroom-2
bounds:312,12,77,51
mushroom-3
bounds:1576,33,78,57
offsets:0,0,78,61
mushroom-4
bounds:1899,63,88,61
offsets:0,1,88,62
olive
bounds:2008,630,33,28
olive-pick
bounds:31,747,8,63
pan-front
bounds:196,43,212,104
pan-handle
bounds:407,76,123,57
pan-handle-knot
bounds:2018,363,23,23
pan-inside
bounds:253,265,211,108
salad
bounds:1063,282,194,103
sparkle-1
bounds:2,521,45,48
sparkle-2
bounds:1990,502,50,50
tomato-1
bounds:1656,4,72,53
tomato-2
bounds:1656,4,72,53
tomato-3
bounds:87,7,72,53
tomato-body
bounds:1363,27,76,67
tomato-green
bounds:1746,578,41,33
tree-top
bounds:1741,129,68,108
tree-trunk
bounds:41,752,11,58
wing-back
bounds:1441,32,69,62
wing-front
bounds:1063,29,73,58