@crystaldesign/real-time-viewer 24.9.0-rc.10 → 24.9.0-rc.12
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
|
@@ -2975,7 +2975,6 @@ function useRealTimeRenderData (_ref) {
|
|
|
2975
2975
|
var _callbacks$onInitiali;
|
|
2976
2976
|
if (!elementsInfo) return false;
|
|
2977
2977
|
if (freePlacesOnGrids || plannedPlacesOnGrids) gridStore.getGrids(freePlacesOnGrids, plannedPlacesOnGrids);
|
|
2978
|
-
actions.toggleLoading('buildScene', false, false);
|
|
2979
2978
|
(_callbacks$onInitiali = callbacks.onInitialized) === null || _callbacks$onInitiali === void 0 || _callbacks$onInitiali.call(callbacks);
|
|
2980
2979
|
sceneStore.isInitializing = false;
|
|
2981
2980
|
return false;
|
|
@@ -3026,40 +3025,41 @@ function useRealTimeRenderData (_ref) {
|
|
|
3026
3025
|
allViewpoints: filteredCustomViewpoints
|
|
3027
3026
|
}));
|
|
3028
3027
|
}
|
|
3029
|
-
_context2.next =
|
|
3028
|
+
_context2.next = 15;
|
|
3030
3029
|
break;
|
|
3031
3030
|
case 10:
|
|
3032
3031
|
sceneStore.hqRenderScript = JSON.parse(renderjob);
|
|
3033
3032
|
if (checkCachedData()) {
|
|
3034
|
-
_context2.next =
|
|
3033
|
+
_context2.next = 15;
|
|
3035
3034
|
break;
|
|
3036
3035
|
}
|
|
3037
3036
|
if (elementsInfo) uiStore.initGui(callbacks.onElementSelected, sceneStore.elements, elementsInfo);
|
|
3037
|
+
actions.toggleLoading('buildScene', false, false);
|
|
3038
3038
|
return _context2.abrupt("return");
|
|
3039
|
-
case
|
|
3039
|
+
case 15:
|
|
3040
3040
|
LOG.startTransaction({
|
|
3041
3041
|
event: 'buildScene',
|
|
3042
3042
|
message: 'Start Building Realtime Scene',
|
|
3043
3043
|
eventId: 'BUILD_SCENE'
|
|
3044
3044
|
});
|
|
3045
|
-
_context2.prev =
|
|
3046
|
-
_context2.next =
|
|
3045
|
+
_context2.prev = 16;
|
|
3046
|
+
_context2.next = 19;
|
|
3047
3047
|
return parser();
|
|
3048
|
-
case
|
|
3048
|
+
case 19:
|
|
3049
3049
|
if (elementsInfo) uiStore.initGui(callbacks.onElementSelected, sceneStore.elements, elementsInfo);
|
|
3050
3050
|
if (freePlacesOnGrids || plannedPlacesOnGrids) gridStore.getGrids(freePlacesOnGrids, plannedPlacesOnGrids);
|
|
3051
|
-
_context2.next =
|
|
3051
|
+
_context2.next = 28;
|
|
3052
3052
|
break;
|
|
3053
|
-
case
|
|
3054
|
-
_context2.prev =
|
|
3055
|
-
_context2.t0 = _context2["catch"](
|
|
3053
|
+
case 23:
|
|
3054
|
+
_context2.prev = 23;
|
|
3055
|
+
_context2.t0 = _context2["catch"](16);
|
|
3056
3056
|
LOG.errorTransaction('BUILD_SCENE', 'RTS_0001', _context2.t0.message);
|
|
3057
3057
|
LOG.error(new DivaError('Error building scene', {
|
|
3058
3058
|
cause: _context2.t0,
|
|
3059
3059
|
code: 'RTS_0001'
|
|
3060
3060
|
}));
|
|
3061
3061
|
sceneStore.isInitializing = false;
|
|
3062
|
-
case
|
|
3062
|
+
case 28:
|
|
3063
3063
|
if (callbacks.setGlb) {
|
|
3064
3064
|
sceneStore.exportScene().then(function (res) {
|
|
3065
3065
|
var _callbacks$setGlb;
|
|
@@ -3075,11 +3075,11 @@ function useRealTimeRenderData (_ref) {
|
|
|
3075
3075
|
//sceneStore.scene.debugLayer?.show();
|
|
3076
3076
|
sceneStore.scene.onAfterRenderObservable.add(onFirstFrame);
|
|
3077
3077
|
LOG.successTransaction('BUILD_SCENE');
|
|
3078
|
-
case
|
|
3078
|
+
case 32:
|
|
3079
3079
|
case "end":
|
|
3080
3080
|
return _context2.stop();
|
|
3081
3081
|
}
|
|
3082
|
-
}, _callee2, null, [[
|
|
3082
|
+
}, _callee2, null, [[16, 23]]);
|
|
3083
3083
|
}));
|
|
3084
3084
|
return _onSceneReady.apply(this, arguments);
|
|
3085
3085
|
}
|