@archvisioninc/canvas 3.3.4 → 3.3.6

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,7 +65,7 @@ const performTransform = args => {
65
65
  };
66
66
  const getPositionsChangeAfterGlobal = () => {
67
67
  const userMeshes = getUserMeshes();
68
- const updatedPositions = scene.metadata.meshChangeTracking.map(mesh => {
68
+ const updatedPositions = scene.metadata.meshChangeTracking?.map(mesh => {
69
69
  const userMesh = userMeshes.find(userMesh => userMesh.id === mesh.meshId);
70
70
  const parent = userMesh?.parent;
71
71
  userMesh?.setParent?.(null);
@@ -638,12 +638,7 @@ const billboardScreenshot = view => {
638
638
  return BABYLON.Tools.CreateScreenshotUsingRenderTargetAsync(engine, camera, 2048);
639
639
  };
640
640
  export const takePreviewScreenshots = () => {
641
- // BUG: The first item from orthoOptions creates a blank screenshot.
642
- const orthoViews = Object.keys(orthoOptions).map(view => view);
643
641
  const baseView = ['perspective'];
644
- if (!props.materialMode) {
645
- baseView.push(...orthoViews);
646
- }
647
642
  const outerFrame = guiTexture.getControlByName(GUI.outerSafeFrame);
648
643
  const xAxisMesh = scene.getMeshByName('xAxisMesh');
649
644
  const yAxisMesh = scene.getMeshByName('yAxisMesh');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "3.3.4",
3
+ "version": "3.3.6",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -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 = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjE2MDAyMDc3ODQifQ.eyJpZCI6ImowbzVobDJkdXc5ZXZ4bXJubGIxZWh6a3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yIiwic2NvcGUiOiJiYXNpYyJ9.u5YSyASNg4COp_eJKK7jKBDhOBLQo1TEM2Zy1hMFrb5Unct0deWBhDb8GdjwtIywj8Fhgyj8Rk_YGeBoAoMM-SDbNs4IDEqY1BlSM-a3rcMkRiFajMMZVAE0Z99JHWehdQ2_xe7meVjlLnB1OIbL2e81AicoY4aTFv2Zi_w38ZlpNCbcqIQV_rj7Td7Ke3mpvJNjwr1FnrndEkYl5bQ-yEpJyyG5m7cwX8nwFn5ZGFx1yc3xTEOJLY9U_p7-y6NhPojWFIjWucizRyMhdPRbjArT4SK-56gwEMFyJ-B4y1teQaqU2GuOYldxvYULZAbQ1ENFjW4TMN1B7BfkLY44eQ';
18
18
  const options = {
19
19
  method: 'GET',
20
20
  headers: {
@@ -103,7 +103,7 @@ const performTransform = args => {
103
103
 
104
104
  const getPositionsChangeAfterGlobal = () => {
105
105
  const userMeshes = getUserMeshes();
106
- const updatedPositions = scene.metadata.meshChangeTracking.map(mesh => {
106
+ const updatedPositions = scene.metadata.meshChangeTracking?.map(mesh => {
107
107
  const userMesh = userMeshes.find(userMesh => userMesh.id === mesh.meshId);
108
108
  const parent = userMesh?.parent;
109
109
 
@@ -1205,7 +1205,7 @@ export const updateLighting = inboundData => {
1205
1205
  if (radius !== undefined) {
1206
1206
  light.radius = radius;
1207
1207
  }
1208
-
1208
+
1209
1209
  if (diffuse) {
1210
1210
  const { r, g, b } = diffuse;
1211
1211
  light.diffuse = newColor(r, g, b);
@@ -697,14 +697,8 @@ const billboardScreenshot = view => {
697
697
  };
698
698
 
699
699
  export const takePreviewScreenshots = () => {
700
- // BUG: The first item from orthoOptions creates a blank screenshot.
701
- const orthoViews = Object.keys(orthoOptions).map(view => view);
702
700
  const baseView = [ 'perspective' ];
703
701
 
704
- if (!props.materialMode) {
705
- baseView.push(...orthoViews);
706
- }
707
-
708
702
  const outerFrame = guiTexture.getControlByName(GUI.outerSafeFrame);
709
703
  const xAxisMesh = scene.getMeshByName('xAxisMesh');
710
704
  const yAxisMesh = scene.getMeshByName('yAxisMesh');