From a254fabaeff7b6aa76dc659d6a0c03153376d703 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Thu, 26 Sep 2024 16:09:27 +0200 Subject: [PATCH] Cleaned webcomponent example. --- .../{canvas9.html => webcomponent.html} | 230 +++++++----------- 1 file changed, 92 insertions(+), 138 deletions(-) rename spine-ts/spine-webgl/example/{canvas9.html => webcomponent.html} (94%) diff --git a/spine-ts/spine-webgl/example/canvas9.html b/spine-ts/spine-webgl/example/webcomponent.html similarity index 94% rename from spine-ts/spine-webgl/example/canvas9.html rename to spine-ts/spine-webgl/example/webcomponent.html index bff8e1d3e..913ed9935 100644 --- a/spine-ts/spine-webgl/example/canvas9.html +++ b/spine-ts/spine-webgl/example/webcomponent.html @@ -16,8 +16,6 @@ font-family: Arial, sans-serif; } .section { - /* height: 100lvh; */ - /* height: 800px; */ display: flex; justify-content: center; align-items: center; @@ -132,11 +130,11 @@ -
+
@@ -173,14 +171,13 @@ - @@ -254,21 +251,17 @@ - - - - -
+
@@ -296,7 +289,6 @@ animation="walk" height="200" width="200" - fit="fill" >`) @@ -305,25 +297,17 @@ - - - - - - - - -
+
@@ -371,11 +355,11 @@ -
+
@@ -410,17 +394,17 @@ -
+
@@ -488,7 +472,7 @@ @@ -533,7 +517,6 @@ ///////////////////// --> - -
+
@@ -646,18 +629,16 @@
- - -
+
@@ -886,19 +867,16 @@
- - - -
+
@@ -1152,17 +1130,16 @@
- -
+
@@ -1275,19 +1252,16 @@
- - - -
+
@@ -1371,18 +1345,16 @@
- - -
+
@@ -1438,27 +1410,46 @@
-
+
@@ -1531,6 +1522,7 @@ animation="sneak" offscreen="pose" > + ... const stretchyman = spine.getSpineWidget("stretchyman"); @@ -1551,16 +1543,16 @@ -
+
@@ -1656,20 +1648,24 @@ -
+
+ +
+ More examples for clip attribute. +
-
+
@@ -1687,7 +1683,7 @@ animation="walk" scale="1.5" fit="none" - clip="true" + clip >
@@ -1697,7 +1693,7 @@ animation="walk" scale="1" fit="none" - clip="true" + clip >
@@ -1707,7 +1703,7 @@ animation="playing-in-the-rain" scale="0.5" fit="none" - clip="true" + clip >
@@ -1715,9 +1711,8 @@ identifier="celeste" atlas="assets/celestial-circus-pma.atlas" skeleton="assets/celestial-circus-pro.skel" - animation="wings-and-feet" - clip="true" - draggable="true" + clip + draggable >