imagine-curator-sdk 0.2.3 → 0.2.5
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/README.md +2 -2
- package/package.json +1 -1
- package/src/config/constant/projectConstant.js +9 -5
- package/src/constants/productConfiguratorConstants.js +10 -5
- package/src/constants/textureConstants.js +10 -5
- /package/{public → src/assets}/Build/LiveFurnishBuild.data +0 -0
- /package/{public → src/assets}/Build/LiveFurnishBuild.framework.js +0 -0
- /package/{public → src/assets}/Build/LiveFurnishBuild.loader.js +0 -0
- /package/{public → src/assets}/Build/LiveFurnishBuild.wasm +0 -0
package/README.md
CHANGED
|
@@ -21,10 +21,10 @@ function App() {
|
|
|
21
21
|
|
|
22
22
|
## Peer Dependencies
|
|
23
23
|
|
|
24
|
-
This package requires React 18
|
|
24
|
+
This package requires React 18+ and react-unity-webgl:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npm install react react-dom
|
|
27
|
+
npm install react react-dom react-unity-webgl@^8.7.4
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
## License
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
// Import Unity build files as URLs
|
|
2
|
+
import loaderUrl from '../../assets/Build/LiveFurnishBuild.loader.js?url';
|
|
3
|
+
import dataUrl from '../../assets/Build/LiveFurnishBuild.data?url';
|
|
4
|
+
import frameworkUrl from '../../assets/Build/LiveFurnishBuild.framework.js?url';
|
|
5
|
+
import codeUrl from '../../assets/Build/LiveFurnishBuild.wasm?url';
|
|
2
6
|
|
|
3
7
|
export const UNITY_REF = {
|
|
4
|
-
loaderUrl
|
|
5
|
-
dataUrl
|
|
6
|
-
frameworkUrl
|
|
7
|
-
codeUrl
|
|
8
|
+
loaderUrl,
|
|
9
|
+
dataUrl,
|
|
10
|
+
frameworkUrl,
|
|
11
|
+
codeUrl,
|
|
8
12
|
streamingAssetsUrl: 'StreamingAssets',
|
|
9
13
|
companyName: 'DefaultCompany',
|
|
10
14
|
productName: 'Live FurnishV2',
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { COLOR_TYPE } from '../redux/slicers/admin/curatorStylesSlicer';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// Import Unity build files as URLs (uses main build - configurator build not available)
|
|
4
|
+
import loaderUrl from '../assets/Build/LiveFurnishBuild.loader.js?url';
|
|
5
|
+
import dataUrl from '../assets/Build/LiveFurnishBuild.data?url';
|
|
6
|
+
import frameworkUrl from '../assets/Build/LiveFurnishBuild.framework.js?url';
|
|
7
|
+
import codeUrl from '../assets/Build/LiveFurnishBuild.wasm?url';
|
|
3
8
|
|
|
4
9
|
export const CONFIGURATOR_TYPE = {
|
|
5
10
|
IMAGE: '1',
|
|
@@ -24,10 +29,10 @@ export const THEME = {
|
|
|
24
29
|
export const NEW_CONFIGURATOR_ID = 'new';
|
|
25
30
|
|
|
26
31
|
export const UNITY_REF = {
|
|
27
|
-
loaderUrl
|
|
28
|
-
dataUrl
|
|
29
|
-
frameworkUrl
|
|
30
|
-
codeUrl
|
|
32
|
+
loaderUrl,
|
|
33
|
+
dataUrl,
|
|
34
|
+
frameworkUrl,
|
|
35
|
+
codeUrl,
|
|
31
36
|
};
|
|
32
37
|
|
|
33
38
|
export const EMPTY_CONFIGURATOR = {
|
|
@@ -5,13 +5,18 @@ export const TYPE_TEXTURE = 2;
|
|
|
5
5
|
export const MODE_EDIT = 'edit';
|
|
6
6
|
export const MODE_UPLOAD = 'upload';
|
|
7
7
|
export const MODE_MOVE_TO_TEXTURES = 'move-to-textures';
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
// Import Unity build files as URLs (uses main build - texture preview build not available)
|
|
10
|
+
import loaderUrl from '../assets/Build/LiveFurnishBuild.loader.js?url';
|
|
11
|
+
import dataUrl from '../assets/Build/LiveFurnishBuild.data?url';
|
|
12
|
+
import frameworkUrl from '../assets/Build/LiveFurnishBuild.framework.js?url';
|
|
13
|
+
import codeUrl from '../assets/Build/LiveFurnishBuild.wasm?url';
|
|
9
14
|
|
|
10
15
|
export const UNITY_REF = {
|
|
11
|
-
loaderUrl
|
|
12
|
-
dataUrl
|
|
13
|
-
frameworkUrl
|
|
14
|
-
codeUrl
|
|
16
|
+
loaderUrl,
|
|
17
|
+
dataUrl,
|
|
18
|
+
frameworkUrl,
|
|
19
|
+
codeUrl,
|
|
15
20
|
};
|
|
16
21
|
|
|
17
22
|
export const MAX_UPLOAD_WIDTH_PIXELS = 16384;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|