@gamelearn/arcade-components 0.25.11 → 0.25.13
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.
|
@@ -90,12 +90,21 @@ var AnimateElement = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
|
90
90
|
var action = mixer.clipAction(clip, animationRef.current);
|
|
91
91
|
action.play();
|
|
92
92
|
|
|
93
|
+
if (animationRef.current.brother) {
|
|
94
|
+
animationRef.current.brother.updatePosition();
|
|
95
|
+
}
|
|
96
|
+
|
|
93
97
|
if (pauseAtStart) {
|
|
94
98
|
action.paused = true;
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
}, [mixer, animations, pauseAtStart, animationRef]);
|
|
103
|
+
(0, _react.useEffect)(function () {
|
|
104
|
+
if (model.brother) {
|
|
105
|
+
model.brother.updatePosition();
|
|
106
|
+
}
|
|
107
|
+
}, [model, position, rotation, currentProps.scale]);
|
|
99
108
|
return /*#__PURE__*/_react.default.createElement("group", {
|
|
100
109
|
visible: props.visible
|
|
101
110
|
}, enableBounding ? /*#__PURE__*/_react.default.createElement(_BoundingBox.default, _extends({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamelearn/arcade-components",
|
|
3
3
|
"license": "Gamelearn",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.13",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"start": "npm run storybook",
|
|
37
37
|
"clean": "rimraf dist",
|
|
38
38
|
"compile": "npm run clean && cross-env NODE_ENV=production babel src -d dist --ignore src/**/*.stories.js,src/**/*.test.js,src/setupTests.js",
|
|
39
|
-
"test": "react-scripts test
|
|
39
|
+
"test": "react-scripts test",
|
|
40
40
|
"eject": "react-scripts eject",
|
|
41
41
|
"storybook": "start-storybook -p 6006 -s public",
|
|
42
42
|
"build-storybook": "build-storybook -o build",
|
|
@@ -77,8 +77,12 @@
|
|
|
77
77
|
"rimraf": "3.0.2"
|
|
78
78
|
},
|
|
79
79
|
"jest": {
|
|
80
|
+
"transformIgnorePatterns": [
|
|
81
|
+
"node_modules/(?!(three)/)"
|
|
82
|
+
],
|
|
80
83
|
"moduleNameMapper": {
|
|
81
|
-
"^react-pdf$": "react-pdf/dist/umd/entry.jest"
|
|
84
|
+
"^react-pdf$": "react-pdf/dist/umd/entry.jest",
|
|
85
|
+
"^react-konva-utils$": "react-pdf/dist/umd/entry.jest"
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
|
-
}
|
|
88
|
+
}
|