@crystaldesign/real-time-viewer 24.10.0-rc.8 → 24.10.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.
package/build/esm/index.js
CHANGED
|
@@ -839,7 +839,6 @@ var lightning = function lightning(diva3durl, scene, cams, isMobile, sceneStore)
|
|
|
839
839
|
scene.createDefaultSkybox(environmentTexture);
|
|
840
840
|
scene.environmentIntensity = 1;
|
|
841
841
|
scene.getMaterialByName('skyBox').alpha = 0;
|
|
842
|
-
scene.getEngine().setHardwareScalingLevel(1 / window.devicePixelRatio);
|
|
843
842
|
var ssao = new SSAO2RenderingPipeline('ssao', scene, {
|
|
844
843
|
ssaoRatio: 0.5,
|
|
845
844
|
// Ratio of the SSAO post-process, in a lower resolution
|
|
@@ -3018,10 +3017,11 @@ function useRealTimeRenderData (_ref) {
|
|
|
3018
3017
|
sceneStore.isInitializing = true;
|
|
3019
3018
|
actions.toggleLoading('buildScene', false, true);
|
|
3020
3019
|
if (sceneStore.hasRendered) {
|
|
3021
|
-
_context2.next =
|
|
3020
|
+
_context2.next = 11;
|
|
3022
3021
|
break;
|
|
3023
3022
|
}
|
|
3024
3023
|
getEnableUnityRtvKombi = viewHandler === null || viewHandler === void 0 ? void 0 : viewHandler.divaWebPlanner.getEnableUnityRtvKombi();
|
|
3024
|
+
if (inBackground) sceneStore.scene.getEngine().setHardwareScalingLevel(5);
|
|
3025
3025
|
sceneStore.init(apiConfig.diva3darchive + '/', resolutionDiv.current, gameCanvas.current, getEnableUnityRtvKombi ? (_sceneStore$hqRenderS = sceneStore.hqRenderScript.cams) === null || _sceneStore$hqRenderS === void 0 ? void 0 : _sceneStore$hqRenderS[0] : initViewpoint, getEnableUnityRtvKombi ? sceneStore.hqRenderScript.cams : viewpoints, resolution);
|
|
3026
3026
|
if (viewpoints && sceneStore.activeCamera) {
|
|
3027
3027
|
cams = createCams(sceneStore.scene, initViewpoint);
|
|
@@ -3042,42 +3042,42 @@ function useRealTimeRenderData (_ref) {
|
|
|
3042
3042
|
allViewpoints: filteredCustomViewpoints
|
|
3043
3043
|
}));
|
|
3044
3044
|
}
|
|
3045
|
-
_context2.next =
|
|
3045
|
+
_context2.next = 17;
|
|
3046
3046
|
break;
|
|
3047
|
-
case
|
|
3047
|
+
case 11:
|
|
3048
3048
|
sceneStore.hqRenderScript = JSON.parse(renderjob);
|
|
3049
3049
|
if (checkCachedData()) {
|
|
3050
|
-
_context2.next =
|
|
3050
|
+
_context2.next = 17;
|
|
3051
3051
|
break;
|
|
3052
3052
|
}
|
|
3053
3053
|
if (elementsInfo) uiStore.initGui(callbacks.onElementSelected, sceneStore.elements, elementsInfo);
|
|
3054
3054
|
actions.toggleLoading('buildScene', false, false);
|
|
3055
3055
|
sceneStore.isInitializing = false;
|
|
3056
3056
|
return _context2.abrupt("return");
|
|
3057
|
-
case
|
|
3057
|
+
case 17:
|
|
3058
3058
|
LOG.startTransaction({
|
|
3059
3059
|
event: 'buildScene',
|
|
3060
3060
|
message: 'Start Building Realtime Scene',
|
|
3061
3061
|
eventId: 'BUILD_SCENE'
|
|
3062
3062
|
});
|
|
3063
|
-
_context2.prev =
|
|
3064
|
-
_context2.next =
|
|
3063
|
+
_context2.prev = 18;
|
|
3064
|
+
_context2.next = 21;
|
|
3065
3065
|
return parser();
|
|
3066
|
-
case
|
|
3066
|
+
case 21:
|
|
3067
3067
|
if (elementsInfo) uiStore.initGui(callbacks.onElementSelected, sceneStore.elements, elementsInfo);
|
|
3068
3068
|
if (freePlacesOnGrids || plannedPlacesOnGrids) gridStore.getGrids(freePlacesOnGrids, plannedPlacesOnGrids);
|
|
3069
|
-
_context2.next =
|
|
3069
|
+
_context2.next = 30;
|
|
3070
3070
|
break;
|
|
3071
|
-
case
|
|
3072
|
-
_context2.prev =
|
|
3073
|
-
_context2.t0 = _context2["catch"](
|
|
3071
|
+
case 25:
|
|
3072
|
+
_context2.prev = 25;
|
|
3073
|
+
_context2.t0 = _context2["catch"](18);
|
|
3074
3074
|
LOG.errorTransaction('BUILD_SCENE', 'RTS_0001', _context2.t0.message);
|
|
3075
3075
|
LOG.error(new DivaError('Error building scene', {
|
|
3076
3076
|
cause: _context2.t0,
|
|
3077
3077
|
code: 'RTS_0001'
|
|
3078
3078
|
}));
|
|
3079
3079
|
sceneStore.isInitializing = false;
|
|
3080
|
-
case
|
|
3080
|
+
case 30:
|
|
3081
3081
|
if (callbacks.setGlb) {
|
|
3082
3082
|
sceneStore.exportScene().then(function (res) {
|
|
3083
3083
|
var _callbacks$setGlb;
|
|
@@ -3092,11 +3092,11 @@ function useRealTimeRenderData (_ref) {
|
|
|
3092
3092
|
// sceneStore.scene.debugLayer?.show();
|
|
3093
3093
|
sceneStore.scene.onAfterRenderObservable.add(onFirstFrame);
|
|
3094
3094
|
LOG.successTransaction('BUILD_SCENE');
|
|
3095
|
-
case
|
|
3095
|
+
case 34:
|
|
3096
3096
|
case "end":
|
|
3097
3097
|
return _context2.stop();
|
|
3098
3098
|
}
|
|
3099
|
-
}, _callee2, null, [[
|
|
3099
|
+
}, _callee2, null, [[18, 25]]);
|
|
3100
3100
|
}));
|
|
3101
3101
|
return _onSceneReady.apply(this, arguments);
|
|
3102
3102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lightning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,sCAAsC,CAAC;AAG9C,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,OAAO,gEAAgE,CAAC;AACxE,OAAO,yDAAyD,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,QAAA,MAAM,SAAS,cAAe,MAAM,SAAS,KAAK,QAAQ,MAAM,EAAE,YAAY,OAAO,cAAc,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lightning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,sCAAsC,CAAC;AAG9C,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD,OAAO,gEAAgE,CAAC;AACxE,OAAO,yDAAyD,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,QAAA,MAAM,SAAS,cAAe,MAAM,SAAS,KAAK,QAAQ,MAAM,EAAE,YAAY,OAAO,cAAc,UAAU,SAgC5G,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRealTimeRenderData.d.ts","sourceRoot":"","sources":["../../../../src/useRealTimeRenderData.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQ3C,OAAO,8BAA8B,CAAC;AAOtC,MAAM,CAAC,OAAO,WAAW,EACvB,GAAG,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,kBAAkB,GACnB,EAAE,KAAK;;;;;6BAIa;gBAAE,OAAO,EAAE,MAAM,CAAC;gBAAC,MAAM,MAAM,CAAA;aAAE;2BACnC,SAAS,EAAE,GAAG,SAAS;;;
|
|
1
|
+
{"version":3,"file":"useRealTimeRenderData.d.ts","sourceRoot":"","sources":["../../../../src/useRealTimeRenderData.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQ3C,OAAO,8BAA8B,CAAC;AAOtC,MAAM,CAAC,OAAO,WAAW,EACvB,GAAG,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,kBAAkB,GACnB,EAAE,KAAK;;;;;6BAIa;gBAAE,OAAO,EAAE,MAAM,CAAC;gBAAC,MAAM,MAAM,CAAA;aAAE;2BACnC,SAAS,EAAE,GAAG,SAAS;;;2BA+LT,MAAM,UAAU,OAAO;4BAsBtB,OAAO;;;EAgDxC"}
|