@archvisioninc/canvas 2.5.7 → 2.5.9

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.
@@ -233,7 +233,7 @@ export const updateMaterial = inboundData => {
233
233
  }
234
234
 
235
235
  // Normal/Bump
236
- if (bumpIntensity !== undefined && !_.isEmpty(bumpTexture)) {
236
+ if (bumpIntensity !== undefined && !_.isEmpty(material.bumpTexture?.url)) {
237
237
  material.bumpTexture.level = bumpIntensity;
238
238
  }
239
239
  if (!_.isEmpty(bumpTexture)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -42,11 +42,11 @@
42
42
  "@testing-library/user-event": "^13.5.0",
43
43
  "@typescript-eslint/eslint-plugin": "^5.48.0",
44
44
  "axios": "^1.2.0",
45
- "babylonjs": "^6.16.0",
46
- "babylonjs-gui": "^6.16.0",
47
- "babylonjs-loaders": "^6.16.0",
48
- "babylonjs-materials": "^6.16.0",
49
- "babylonjs-serializers": "^6.16.0",
45
+ "babylonjs": "^6.32.1",
46
+ "babylonjs-gui": "^6.32.1",
47
+ "babylonjs-loaders": "^6.32.1",
48
+ "babylonjs-materials": "^6.32.1",
49
+ "babylonjs-serializers": "^6.32.1",
50
50
  "eslint-plugin-destructuring": "^2.2.1",
51
51
  "eslint-plugin-etc": "^2.0.2",
52
52
  "eslint-plugin-no-inline-styles": "^1.0.5",
@@ -14,7 +14,7 @@ export const fetchDownloadURL = async args => {
14
14
  if (!_.isEmpty(rpcGuid)) {
15
15
  const servicesURL = `https://api.archvision.services/rpc/v1/integration/${rpcGuid}/download/${format}`;
16
16
  // eslint-disable-next-line
17
- const token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FyY2h2aXNpb24uY29tIiwic3ViIjozOTUxNTcsInRva2VuX3R5cGUiOiJiZWFyZXIiLCJzY29wZSI6ImJhc2ljIiwiYXVkIjoiNDVFUnF3SEV5SWRqbXhkaUU4MUxMbDlFYTN2SzZZQ3dLNWE2R2xEMyIsImlhdCI6MTY5NTA0MTc0MCwiZXhwIjoxNzAwMjI1NzQwfQ.xTj9rYTPWr8XBHgM1Hcz2DBF6xln8muyGR1SwJWRGqk';
17
+ const token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FyY2h2aXNpb24uY29tIiwic3ViIjoiMzk1MTU3IiwidG9rZW5fdHlwZSI6ImJlYXJlciIsInNjb3BlIjoiYmFzaWMiLCJhdWQiOiI0NUVScXdIRXlJZGpteGRpRTgxTExsOUVhM3ZLNllDd0s1YTZHbEQzIiwiaWF0IjoxNjk5ODc1Nzg5LCJleHAiOjE3MDUwNTk3ODl9.og2ryAY097yemGOuD3LvQBEZcIXJxmKNei7527I4AUg';
18
18
  const options = {
19
19
  method: 'GET',
20
20
  headers: {
@@ -266,7 +266,7 @@ export const updateMaterial = inboundData => {
266
266
  }
267
267
 
268
268
  // Normal/Bump
269
- if (bumpIntensity !== undefined && !_.isEmpty(bumpTexture)) {
269
+ if (bumpIntensity !== undefined && !_.isEmpty(material.bumpTexture?.url)) {
270
270
  material.bumpTexture.level = bumpIntensity;
271
271
  }
272
272
 
@@ -109,7 +109,7 @@ const App = () => {
109
109
  };
110
110
 
111
111
  updateCamera(inboundData);
112
- console.log(scene.metadata?.screenshotData);
112
+ console.log({ screenshotData: scene.metadata?.screenshotData });
113
113
  }}
114
114
  >
115
115
  Screenshot Data