@crystaldesign/real-time-viewer 25.15.0-beta.15 → 25.15.0-beta.16
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/build/esm/index.js
CHANGED
|
@@ -4236,50 +4236,49 @@ function useRealTimeRenderData (_ref) {
|
|
|
4236
4236
|
return _context2.abrupt("return");
|
|
4237
4237
|
case 2:
|
|
4238
4238
|
sceneStore.isInitializing = true;
|
|
4239
|
-
if (!overlayImage && !disableToggleLoading) actions.toggleLoading('buildScene', false, true);
|
|
4240
4239
|
if (sceneStore.hasRendered) {
|
|
4241
|
-
_context2.next =
|
|
4240
|
+
_context2.next = 9;
|
|
4242
4241
|
break;
|
|
4243
4242
|
}
|
|
4244
4243
|
if (inBackground) sceneStore.scene.getEngine().setHardwareScalingLevel(5);
|
|
4245
4244
|
sceneStore.init(apiConfig.diva3darchive + '/', gameCanvas.current, viewpoint, resolution);
|
|
4246
4245
|
uiStore.resize();
|
|
4247
|
-
_context2.next =
|
|
4246
|
+
_context2.next = 13;
|
|
4248
4247
|
break;
|
|
4249
|
-
case
|
|
4248
|
+
case 9:
|
|
4250
4249
|
sceneStore.hqRenderScript = JSON.parse(renderjob);
|
|
4251
4250
|
if (checkCachedData()) {
|
|
4252
|
-
_context2.next =
|
|
4251
|
+
_context2.next = 13;
|
|
4253
4252
|
break;
|
|
4254
4253
|
}
|
|
4255
|
-
if (!overlayImage && !disableToggleLoading) actions.toggleLoading('buildScene', false, false);
|
|
4256
4254
|
sceneStore.isInitializing = false;
|
|
4257
4255
|
return _context2.abrupt("return");
|
|
4258
|
-
case
|
|
4256
|
+
case 13:
|
|
4257
|
+
if (!overlayImage && !disableToggleLoading) actions.toggleLoading('buildScene', false, true);
|
|
4259
4258
|
LOG.startTransaction({
|
|
4260
4259
|
event: 'buildScene',
|
|
4261
4260
|
message: 'Start Building Realtime Scene',
|
|
4262
4261
|
eventId: 'BUILD_SCENE'
|
|
4263
4262
|
});
|
|
4264
|
-
_context2.prev =
|
|
4263
|
+
_context2.prev = 15;
|
|
4265
4264
|
uiStore.deactivateHighlightLayer();
|
|
4266
|
-
_context2.next =
|
|
4265
|
+
_context2.next = 19;
|
|
4267
4266
|
return parser();
|
|
4268
|
-
case
|
|
4267
|
+
case 19:
|
|
4269
4268
|
uiStore.initGui(callbacks.onElementSelected, sceneStore.elements);
|
|
4270
4269
|
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);
|
|
4271
|
-
_context2.next =
|
|
4270
|
+
_context2.next = 28;
|
|
4272
4271
|
break;
|
|
4273
|
-
case
|
|
4274
|
-
_context2.prev =
|
|
4275
|
-
_context2.t0 = _context2["catch"](
|
|
4272
|
+
case 23:
|
|
4273
|
+
_context2.prev = 23;
|
|
4274
|
+
_context2.t0 = _context2["catch"](15);
|
|
4276
4275
|
LOG.errorTransaction('BUILD_SCENE', 'RTS_0001', _context2.t0.message);
|
|
4277
4276
|
LOG.error(new DivaError('Error building scene', {
|
|
4278
4277
|
cause: _context2.t0,
|
|
4279
4278
|
code: 'RTS_0001'
|
|
4280
4279
|
}));
|
|
4281
4280
|
sceneStore.isInitializing = false;
|
|
4282
|
-
case
|
|
4281
|
+
case 28:
|
|
4283
4282
|
if (callbacks.setGlb) {
|
|
4284
4283
|
sceneStore.exportScene(callbacks.setGlb);
|
|
4285
4284
|
} else {
|
|
@@ -4291,11 +4290,11 @@ function useRealTimeRenderData (_ref) {
|
|
|
4291
4290
|
sceneStore.runRenderLoopForTime(5000);
|
|
4292
4291
|
sceneStore.scene.onAfterRenderObservable.add(onFirstFrame);
|
|
4293
4292
|
LOG.successTransaction('BUILD_SCENE');
|
|
4294
|
-
case
|
|
4293
|
+
case 33:
|
|
4295
4294
|
case "end":
|
|
4296
4295
|
return _context2.stop();
|
|
4297
4296
|
}
|
|
4298
|
-
}, _callee2, null, [[
|
|
4297
|
+
}, _callee2, null, [[15, 23]]);
|
|
4299
4298
|
}));
|
|
4300
4299
|
return _onSceneReady.apply(this, arguments);
|
|
4301
4300
|
}
|
|
@@ -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,
|
|
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;;
|
|
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"}
|