Skip to content

Commit 7d3d6a7

Browse files
committed
Update tutorial.
1 parent 36913c0 commit 7d3d6a7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

spine-ts/spine-webgl/example/webcomponent-tutorial.html

+6-8
Original file line numberDiff line numberDiff line change
@@ -2782,15 +2782,15 @@
27822782
function createCircleOfDivs(numDivs = 8) {
27832783
const container = document.createElement('div');
27842784
container.style.position = 'relative';
2785-
container.style.width = '400px';
2786-
container.style.height = '400px';
2785+
container.style.width = '350px';
2786+
container.style.height = '350px';
27872787
container.style.backgroundColor = '#f3f4f6';
27882788
container.style.borderRadius = '50%';
27892789
container.style.display = 'flex';
27902790
container.style.justifyContent = 'center';
27912791
container.style.alignItems = 'center';
27922792

2793-
const radius = 150;
2793+
const radius = 140;
27942794

27952795
for (let i = 0; i < numDivs; i++) {
27962796
const angle = (i / numDivs) * 2 * Math.PI;
@@ -2799,8 +2799,8 @@
27992799

28002800
const div = document.createElement('div');
28012801
div.style.position = 'absolute';
2802-
div.style.width = '100px';
2803-
div.style.height = '100px';
2802+
div.style.width = '90px';
2803+
div.style.height = '90px';
28042804
div.style.backgroundColor = '#3b82f6';
28052805
div.style.borderRadius = '8px';
28062806
div.style.display = 'flex';
@@ -3185,7 +3185,6 @@
31853185

31863186
<div class="section vertical-split">
31873187

3188-
<div class="split-top split">
31893188
<div class="split-left">
31903189
A login UI made using the chibi stickers and a button made using Spine.
31913190
<p>
@@ -3211,7 +3210,7 @@
32113210

32123211

32133212
<span id="ruler" style="visibility: hidden; white-space: nowrap; position: absolute"></span>
3214-
<div style="background-color: white; width: 350px; padding: 30px; text-align: center;">
3213+
<div style="background-color: white; width: 250px; padding: 30px; text-align: center;">
32153214
<div style="display: flex; justify-content: center;">
32163215
<div style="width: 150px; height:150px; border-radius: 5%; border: 1px solid rgb(113, 113, 113); background-color: rgb(211, 211, 211); margin-bottom: 30px;">
32173216
<spine-widget
@@ -3413,7 +3412,6 @@
34133412

34143413
</script>
34153414

3416-
</div>
34173415

34183416
<div class="split-bottom">
34193417
<pre><code id="code-display">

0 commit comments

Comments
 (0)