@gamelearn/arcade-components 0.25.7 → 0.25.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,10 +40,11 @@ var AnimateElement = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
40
40
  animationUrl = _ref.animationUrl,
41
41
  enableBounding = _ref.enableBounding,
42
42
  layers = _ref.layers,
43
+ pauseAtStart = _ref.pauseAtStart,
43
44
  onClick = _ref.onClick,
44
45
  onPointerOver = _ref.onPointerOver,
45
46
  onPointerOut = _ref.onPointerOut,
46
- props = _objectWithoutProperties(_ref, ["model", "position", "rotation", "animationUrl", "enableBounding", "layers", "onClick", "onPointerOver", "onPointerOut"]);
47
+ props = _objectWithoutProperties(_ref, ["model", "position", "rotation", "animationUrl", "enableBounding", "layers", "pauseAtStart", "onClick", "onPointerOver", "onPointerOut"]);
47
48
 
48
49
  var _useGLB = (0, _useGLB2.default)(animationUrl),
49
50
  animations = _useGLB.animations;
@@ -88,9 +89,13 @@ var AnimateElement = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
88
89
  if (clip) {
89
90
  var action = mixer.clipAction(clip, animationRef.current);
90
91
  action.play();
92
+
93
+ if (pauseAtStart) {
94
+ action.paused = true;
95
+ }
91
96
  }
92
97
  }
93
- }, [mixer, animations, animationRef]);
98
+ }, [mixer, animations, pauseAtStart, animationRef]);
94
99
  return /*#__PURE__*/_react.default.createElement("group", {
95
100
  visible: props.visible
96
101
  }, enableBounding ? /*#__PURE__*/_react.default.createElement(_BoundingBox.default, _extends({
@@ -241,7 +241,7 @@ var VideoVisor = function VideoVisor(_ref) {
241
241
  mute: mute,
242
242
  muted: videoPlayer ? videoPlayer.muted : false,
243
243
  paused: paused,
244
- isFinish: isFinish,
244
+ finished: isFinish,
245
245
  restart: restart,
246
246
  setTimePoint: setTimePoint,
247
247
  time: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "license": "Gamelearn",
4
- "version": "0.25.7",
4
+ "version": "0.25.9",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",
@@ -80,4 +80,4 @@
80
80
  "^react-pdf$": "react-pdf/dist/umd/entry.jest"
81
81
  }
82
82
  }
83
- }
83
+ }