Skip to content

Commit bbff0a4

Browse files
committed
Update NPM dependencies
1 parent d8c2d53 commit bbff0a4

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

examples/tween.html

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,32 @@
3030
</pc-entity>
3131
<!-- Star -->
3232
<pc-entity name="star"
33-
onpointerenter="this.entity.script.tweener.play(0)"
34-
onpointerleave="this.entity.script.tweener.play(1)"
35-
onpointerdown="this.entity.script.tweener.play(2)">
33+
onpointerenter="this.entity.script.tweener.play(2)"
34+
onpointerleave="this.entity.script.tweener.play(3)"
35+
onpointerdown="this.entity.script.tweener.play(0);this.entity.script.tweener.play(1)">
3636
<pc-model asset="star"></pc-model>
3737
<pc-scripts>
3838
<pc-script name="tweener" attributes='{
3939
"tweens": [
40+
{
41+
"path": "localPosition",
42+
"start": [0, 0, 0, 0],
43+
"end": [0, 0.2, 0, 0],
44+
"duration": 1500,
45+
"easingFunction": "Sinusoidal",
46+
"easingType": "InOut",
47+
"yoyo": true,
48+
"repeat": -1
49+
}, {
50+
"path": "localEulerAngles",
51+
"start": [0, 0, 0, 0],
52+
"end": [0, 10, 0, 0],
53+
"duration": 2000,
54+
"easingFunction": "Sinusoidal",
55+
"easingType": "InOut",
56+
"yoyo": true,
57+
"repeat": -1
58+
},
4059
{
4160
"path": "localScale",
4261
"start": [1, 1, 1, 0],

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"rollup": "^4.28.1",
5656
"serve": "^14.2.4",
5757
"tslib": "^2.8.1",
58-
"typedoc": "^0.27.3",
58+
"typedoc": "^0.27.4",
5959
"typedoc-plugin-mdn-links": "^4.0.4",
6060
"typescript": "^5.7.2"
6161
}

0 commit comments

Comments
 (0)