@configura/debug-react 1.3.0-alpha.1 → 1.3.0-alpha.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.
|
@@ -11,11 +11,13 @@ import { SingleProductViewPhase, } from "@configura/babylon-view";
|
|
|
11
11
|
import { BabylonView } from "@configura/babylon-view-react";
|
|
12
12
|
import { degToRad, loadImage, LogObservable, toError, } from "@configura/web-utilities";
|
|
13
13
|
import React, { useEffect, useState } from "react";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
/**
|
|
15
|
+
* This configures the Babylon view, for example the camera configuration and detail levels used.
|
|
16
|
+
*
|
|
17
|
+
* To change the detail levels, just add allowedDetailLevels.
|
|
18
|
+
* For example, the line below will load the lowest available detail level for each product:
|
|
19
|
+
* allowedDetailLevels: [DetailLevel.low, DetailLevel.medium, DetailLevel.high, DetailLevel.base],
|
|
20
|
+
*/
|
|
19
21
|
const viewConfiguration = {
|
|
20
22
|
camera: {
|
|
21
23
|
yaw: degToRad(110),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/debug-react",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-alpha.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@configura/babylon-view": "^1.3.0-alpha.
|
|
23
|
-
"@configura/babylon-view-react": "^1.3.0-alpha.
|
|
24
|
-
"@configura/web-ui": "^1.3.0-alpha.
|
|
25
|
-
"@configura/web-utilities": "^1.3.0-alpha.
|
|
22
|
+
"@configura/babylon-view": "^1.3.0-alpha.5",
|
|
23
|
+
"@configura/babylon-view-react": "^1.3.0-alpha.5",
|
|
24
|
+
"@configura/web-ui": "^1.3.0-alpha.5",
|
|
25
|
+
"@configura/web-utilities": "^1.3.0-alpha.5",
|
|
26
26
|
"react": "17.x || ^16.12.0",
|
|
27
27
|
"react-dom": "17.x || ^16.12.0",
|
|
28
28
|
"react-router-dom": "^5.2.0"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "7f22abef2c1047db092c871d9e9eceecbce5831e"
|
|
48
48
|
}
|