@crystaldesign/real-time-viewer 25.14.0-rc.8 → 25.14.0

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.
@@ -4210,50 +4210,49 @@ function useRealTimeRenderData (_ref) {
4210
4210
  return _context2.abrupt("return");
4211
4211
  case 2:
4212
4212
  sceneStore.isInitializing = true;
4213
- if (!overlayImage && !disableToggleLoading) actions.toggleLoading('buildScene', false, true);
4214
4213
  if (sceneStore.hasRendered) {
4215
- _context2.next = 10;
4214
+ _context2.next = 9;
4216
4215
  break;
4217
4216
  }
4218
4217
  if (inBackground) sceneStore.scene.getEngine().setHardwareScalingLevel(5);
4219
4218
  sceneStore.init(apiConfig.diva3darchive + '/', gameCanvas.current, viewpoint, resolution);
4220
4219
  uiStore.resize();
4221
- _context2.next = 15;
4220
+ _context2.next = 13;
4222
4221
  break;
4223
- case 10:
4222
+ case 9:
4224
4223
  sceneStore.hqRenderScript = JSON.parse(renderjob);
4225
4224
  if (checkCachedData()) {
4226
- _context2.next = 15;
4225
+ _context2.next = 13;
4227
4226
  break;
4228
4227
  }
4229
- if (!overlayImage && !disableToggleLoading) actions.toggleLoading('buildScene', false, false);
4230
4228
  sceneStore.isInitializing = false;
4231
4229
  return _context2.abrupt("return");
4232
- case 15:
4230
+ case 13:
4231
+ if (!overlayImage && !disableToggleLoading) actions.toggleLoading('buildScene', false, true);
4233
4232
  LOG.startTransaction({
4234
4233
  event: 'buildScene',
4235
4234
  message: 'Start Building Realtime Scene',
4236
4235
  eventId: 'BUILD_SCENE'
4237
4236
  });
4238
- _context2.prev = 16;
4237
+ _context2.prev = 15;
4239
4238
  uiStore.deactivateHighlightLayer();
4240
- _context2.next = 20;
4239
+ _context2.next = 19;
4241
4240
  return parser();
4242
- case 20:
4241
+ case 19:
4243
4242
  uiStore.initGui(callbacks.onElementSelected, sceneStore.elements);
4244
4243
  if ((uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.plannerMode) != 'BoxPlanner' && (freePlacesOnGrids || plannedPlacesOnGrids)) gridStore.getGrids('ShelfPlanner', undefined, freePlacesOnGrids, plannedPlacesOnGrids);else if (viewHandler !== null && viewHandler !== void 0 && viewHandler.settingsState.generalPlanningState) gridStore.getGrids('BoxPlanner', viewHandler.settingsState.generalPlanningState);
4245
- _context2.next = 29;
4244
+ _context2.next = 28;
4246
4245
  break;
4247
- case 24:
4248
- _context2.prev = 24;
4249
- _context2.t0 = _context2["catch"](16);
4246
+ case 23:
4247
+ _context2.prev = 23;
4248
+ _context2.t0 = _context2["catch"](15);
4250
4249
  LOG.errorTransaction('BUILD_SCENE', 'RTS_0001', _context2.t0.message);
4251
4250
  LOG.error(new DivaError('Error building scene', {
4252
4251
  cause: _context2.t0,
4253
4252
  code: 'RTS_0001'
4254
4253
  }));
4255
4254
  sceneStore.isInitializing = false;
4256
- case 29:
4255
+ case 28:
4257
4256
  if (callbacks.setGlb) {
4258
4257
  sceneStore.exportScene(callbacks.setGlb);
4259
4258
  } else {
@@ -4265,11 +4264,11 @@ function useRealTimeRenderData (_ref) {
4265
4264
  sceneStore.runRenderLoopForTime(5000);
4266
4265
  sceneStore.scene.onAfterRenderObservable.add(onFirstFrame);
4267
4266
  LOG.successTransaction('BUILD_SCENE');
4268
- case 34:
4267
+ case 33:
4269
4268
  case "end":
4270
4269
  return _context2.stop();
4271
4270
  }
4272
- }, _callee2, null, [[16, 24]]);
4271
+ }, _callee2, null, [[15, 23]]);
4273
4272
  }));
4274
4273
  return _onSceneReady.apply(this, arguments);
4275
4274
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAO/B,QAAA,MAAM,gBAAgB,oCACZ,KAAK,uBA4Bd,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAO/B,QAAA,MAAM,gBAAgB,oCACZ,KAAK,uBA+Bd,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRealTimeRenderData.d.ts","sourceRoot":"","sources":["../../../../src/useRealTimeRenderData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC,OAAO,8BAA8B,CAAC;AAUtC,MAAM,CAAC,OAAO,WAAW,EACvB,GAAG,EACH,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,GACrB,EAAE,KAAK;;EA2PP"}
1
+ {"version":3,"file":"useRealTimeRenderData.d.ts","sourceRoot":"","sources":["../../../../src/useRealTimeRenderData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC,OAAO,8BAA8B,CAAC;AAUtC,MAAM,CAAC,OAAO,WAAW,EACvB,GAAG,EACH,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,GACrB,EAAE,KAAK;;EA0PP"}