@gamelearn/arcade-components 1.22.12 → 1.22.15

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.
@@ -64,7 +64,8 @@ var AnimationComponent = function AnimationComponent(_ref) {
64
64
  type: 'saveAnimation',
65
65
  payload: {
66
66
  uid: resource.uid,
67
- animation: animation.id
67
+ animation: animation.id,
68
+ index: object.index
68
69
  }
69
70
  });
70
71
  emitEvent({
@@ -17,6 +17,8 @@ var _GLTFLoader = require("three/examples/jsm/loaders/GLTFLoader");
17
17
 
18
18
  var _arcadeThreeCore = require("@gamelearn/arcade-three-core");
19
19
 
20
+ var _gsap = _interopRequireDefault(require("gsap"));
21
+
20
22
  var _SpeechBubbleComponent = _interopRequireDefault(require("./SpeechBubbleComponent"));
21
23
 
22
24
  var _decisionComponent = _interopRequireDefault(require("../../decision-component"));
@@ -31,8 +33,6 @@ var _useEkho = _interopRequireDefault(require("../../../helpers/useEkho"));
31
33
 
32
34
  var _LangIsRtl = _interopRequireDefault(require("../../../helpers/LangIsRtl"));
33
35
 
34
- var _gsap = _interopRequireDefault(require("gsap"));
35
-
36
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
37
 
38
38
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -632,7 +632,7 @@ var DialogComponent = function DialogComponent(_ref) {
632
632
  var mult = messagePosition.current.isLeft ? -1 : 1;
633
633
  var headSpace = 2.25 * mult; // move bubble
634
634
 
635
- messagePosition.current.pos[0] = messagePosition.current.pos[0] - 1.25;
635
+ messagePosition.current.pos[0] -= 1.25;
636
636
  animationTarget.current.translateX(-10 * mult - headSpace);
637
637
  animationTarget.current.translateY(-5);
638
638
  animationTarget.current.translateZ(30);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "1.22.12",
5
+ "version": "1.22.15",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",