@gamelearn/arcade-components 1.29.3-hotfix-retry-test-2 → 1.29.3
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.
|
@@ -65,14 +65,7 @@ function Panel(_ref) {
|
|
|
65
65
|
cameraRef.current.updateProjectionMatrix();
|
|
66
66
|
|
|
67
67
|
if (character.type === 'character') {
|
|
68
|
-
cameraRef.current.position.setY(size.y - 1.5 * 1.3);
|
|
69
|
-
|
|
70
|
-
model.traverse(function (obj) {
|
|
71
|
-
if (obj.type === 'Bone' && (obj.name.toLowerCase().includes('l_eye') || obj.name.toLowerCase().includes('eye_l'))) {
|
|
72
|
-
var leftEyeVector = new _three.Vector3().setFromMatrixPosition(obj.matrixWorld);
|
|
73
|
-
cameraRef.current.position.setY(leftEyeVector.y - 0.5);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
68
|
+
cameraRef.current.position.setY(size.y - 1.5 * 1.3);
|
|
76
69
|
cameraRef.current.zoom = 1.85;
|
|
77
70
|
} else if (character.type === 'object') {
|
|
78
71
|
(0, _helpers.cameraFitAnyObject)(model, cameraRef.current);
|
|
@@ -203,10 +203,7 @@ var TestComponent = function TestComponent(_ref) {
|
|
|
203
203
|
setResult({});
|
|
204
204
|
setTime(countdown.time);
|
|
205
205
|
setTimeOver(false);
|
|
206
|
-
|
|
207
|
-
if (audio !== null && audio !== void 0 && audio.url) {
|
|
208
|
-
playSound(audio.url, 'test_bg');
|
|
209
|
-
}
|
|
206
|
+
playSound(audio.url, 'test_bg');
|
|
210
207
|
};
|
|
211
208
|
|
|
212
209
|
var resultAnswers = Object.values(result);
|
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.29.3
|
|
5
|
+
"version": "1.29.3",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "https://github.com/gamelearn/arcade-components"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@gamelearn/arcade-styles": "0.
|
|
16
|
+
"@gamelearn/arcade-styles": "0.14.2",
|
|
17
17
|
"@gamelearn/arcade-three-core": "1.14.5",
|
|
18
18
|
"@react-three/drei": "9.4.3",
|
|
19
19
|
"@react-three/fiber": "8.0.17",
|