@gamelearn/arcade-components 0.25.26 → 0.25.28
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.
- package/dist/helpers/useGLB.js +3 -1
- package/package.json +3 -2
package/dist/helpers/useGLB.js
CHANGED
|
@@ -16,7 +16,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
16
16
|
// We need this to reuse GLTF and DRACO loaders for Arcade working
|
|
17
17
|
// in Mobile devices, drei.useGLTF instances new loaders every time is
|
|
18
18
|
// used
|
|
19
|
-
|
|
19
|
+
// const dracoDecoderPath = 'https://www.gstatic.com/draco/v1/decoders/';
|
|
20
|
+
var dracoDecoderPath = 'https://www.gstatic.com/draco/versioned/decoders/1.4.2/'; // Changed to specific version because 1.4.3 seems to have issues
|
|
21
|
+
// TODO: Maybe download those files to statics.gamelearn
|
|
20
22
|
|
|
21
23
|
var whiteImage = new Image();
|
|
22
24
|
whiteImage.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=';
|
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.28",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"start": "npm run storybook",
|
|
37
37
|
"clean": "rimraf dist",
|
|
38
|
-
"watch": "nodemon -e js --ignore dist --exec \"yarn compile && yalc push --changed\"",
|
|
38
|
+
"watch": "npx nodemon -e js --ignore dist --exec \"yarn compile && yalc push --changed\"",
|
|
39
39
|
"compile": "npm run clean && cross-env NODE_ENV=production babel src -d dist --ignore src/**/*.stories.js,src/**/*.test.js,src/setupTests.js",
|
|
40
40
|
"test": "react-scripts test",
|
|
41
41
|
"eject": "react-scripts eject",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"@storybook/theming": "^6.3.8",
|
|
72
72
|
"babel-loader": "8.2.2",
|
|
73
73
|
"cross-env": "7.0.3",
|
|
74
|
+
"nodemon": "^2.0.13",
|
|
74
75
|
"plop": "^2.7.4",
|
|
75
76
|
"react": "0.0.0-experimental-27659559e",
|
|
76
77
|
"react-dom": "0.0.0-experimental-27659559e",
|