@crystaldesign/real-time-viewer 24.15.0-beta.43 → 24.15.0-beta.45
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 +78 -53
- package/build/types/real-time-viewer/src/SelectionHandler/index.d.ts.map +1 -1
- package/build/types/real-time-viewer/src/parser/types.d.ts +1 -0
- package/build/types/real-time-viewer/src/parser/types.d.ts.map +1 -1
- package/build/types/real-time-viewer/src/store/UIStore.d.ts +4 -1
- package/build/types/real-time-viewer/src/store/UIStore.d.ts.map +1 -1
- package/build/types/real-time-viewer/src/useRealTimeRenderData.d.ts.map +1 -1
- package/build/umd/real-time-viewer.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import { Tools, Observable, WebRequest } from '@babylonjs/core/Misc';
|
|
|
26
26
|
import { SceneOptimizerOptions, ShadowsOptimization, RenderTargetsOptimization, SceneOptimizer } from '@babylonjs/core/Misc/sceneOptimizer';
|
|
27
27
|
import { getLogger, DivaError } from '@crystaldesign/diva-core';
|
|
28
28
|
import { TransformNode } from '@babylonjs/core/Meshes/transformNode';
|
|
29
|
-
import { Ellipse, Rectangle, Button,
|
|
29
|
+
import { Ellipse, Rectangle, Button, AdvancedDynamicTexture, TextBlock, Image } from '@babylonjs/gui';
|
|
30
30
|
import { Matrix as Matrix$1, Vector3 as Vector3$1 } from '@babylonjs/core/Maths/math';
|
|
31
31
|
import { Engine } from '@babylonjs/core/Engines/engine';
|
|
32
32
|
import { Scene } from '@babylonjs/core/scene';
|
|
@@ -1644,6 +1644,9 @@ function SelHandler (_ref) {
|
|
|
1644
1644
|
} else if (((_sceneStore$focusedEl = sceneStore.focusedElement) === null || _sceneStore$focusedEl === void 0 || (_sceneStore$focusedEl = _sceneStore$focusedEl.name) === null || _sceneStore$focusedEl === void 0 || (_sceneStore$focusedEl2 = _sceneStore$focusedEl.slice) === null || _sceneStore$focusedEl2 === void 0 ? void 0 : _sceneStore$focusedEl2.call(_sceneStore$focusedEl, -1)) != elemName && (doubleClick || sceneStore.selectedElement == elemName)) {
|
|
1645
1645
|
sceneStore.focusElement(elem);
|
|
1646
1646
|
}
|
|
1647
|
+
|
|
1648
|
+
// is already selected
|
|
1649
|
+
if (sceneStore.selectedElement == elemName) return;
|
|
1647
1650
|
sceneStore.selectedElement = elemName;
|
|
1648
1651
|
uiStore.selectElem(elemName);
|
|
1649
1652
|
onElSelected === null || onElSelected === void 0 || onElSelected(elem.parent.name, Number(elemName));
|
|
@@ -1683,6 +1686,7 @@ var UIStore = /*#__PURE__*/function () {
|
|
|
1683
1686
|
});
|
|
1684
1687
|
_defineProperty(this, "_gridGui", void 0);
|
|
1685
1688
|
_defineProperty(this, "_isStaticBg", void 0);
|
|
1689
|
+
_defineProperty(this, "_elementsInfo", void 0);
|
|
1686
1690
|
_defineProperty(this, "updateOverlayImage", function (overlayImage) {
|
|
1687
1691
|
var _this$_overlayImage;
|
|
1688
1692
|
if (!overlayImage || !_this._scene || ((_this$_overlayImage = _this._overlayImage) === null || _this$_overlayImage === void 0 ? void 0 : _this$_overlayImage.source) == overlayImage.base64) return;
|
|
@@ -1796,19 +1800,32 @@ var UIStore = /*#__PURE__*/function () {
|
|
|
1796
1800
|
(_this$_gridGui = this._gridGui) === null || _this$_gridGui === void 0 || _this$_gridGui.gui.dispose();
|
|
1797
1801
|
(_this$_gridGui2 = this._gridGui) === null || _this$_gridGui2 === void 0 || _this$_gridGui2.node.dispose();
|
|
1798
1802
|
}
|
|
1803
|
+
}, {
|
|
1804
|
+
key: "resize",
|
|
1805
|
+
value: function resize() {
|
|
1806
|
+
this._gui = AdvancedDynamicTexture.CreateFullscreenUI('UI');
|
|
1807
|
+
this._gui.renderScale = 1;
|
|
1808
|
+
if (this._overlayImage) this._overlayImage.isVisible = false;
|
|
1809
|
+
if (this._latestViewpoint) this._latestViewpoint.isOutdated = true;
|
|
1810
|
+
}
|
|
1811
|
+
}, {
|
|
1812
|
+
key: "addElementsInfo",
|
|
1813
|
+
value: function addElementsInfo(elementsInfo) {
|
|
1814
|
+
this._elementsInfo = elementsInfo;
|
|
1815
|
+
}
|
|
1799
1816
|
}, {
|
|
1800
1817
|
key: "initGui",
|
|
1801
|
-
value: function initGui(onElSelected, elements
|
|
1818
|
+
value: function initGui(onElSelected, elements) {
|
|
1802
1819
|
var _this4 = this;
|
|
1803
1820
|
if (!this._selectionHandler) this.initSelectionHandler(onElSelected);
|
|
1804
1821
|
if (!this._scene) return;
|
|
1805
|
-
if (!
|
|
1806
|
-
if (
|
|
1822
|
+
if (!this._elementsInfo) return;
|
|
1823
|
+
if (this._elementsInfo.filter(function (e) {
|
|
1807
1824
|
return !!e.posNr;
|
|
1808
1825
|
}).length > elements.length) return; // elementinfo update before unity -- return and wait for after buildscene
|
|
1809
1826
|
this.clearGui();
|
|
1810
1827
|
var _loop = function _loop() {
|
|
1811
|
-
var elementInfo =
|
|
1828
|
+
var elementInfo = _this4._elementsInfo[idx];
|
|
1812
1829
|
var emnt = elements.find(function (el) {
|
|
1813
1830
|
return Number(el.bbn.name.slice(el.bbn.name.lastIndexOf('E') + 1, el.bbn.name.length)) == elementInfo.elementId;
|
|
1814
1831
|
});
|
|
@@ -1828,7 +1845,7 @@ var UIStore = /*#__PURE__*/function () {
|
|
|
1828
1845
|
},
|
|
1829
1846
|
guiElemRightBack,
|
|
1830
1847
|
_ret;
|
|
1831
|
-
for (var idx =
|
|
1848
|
+
for (var idx = this._elementsInfo.length - 1; idx >= 0; idx--) {
|
|
1832
1849
|
_ret = _loop();
|
|
1833
1850
|
if (_ret === 0) continue;
|
|
1834
1851
|
}
|
|
@@ -1951,19 +1968,23 @@ var UIStore = /*#__PURE__*/function () {
|
|
|
1951
1968
|
setId = set === null || set === void 0 ? void 0 : set.replace('planning_', '');
|
|
1952
1969
|
}
|
|
1953
1970
|
clearTimeout(this._timeoutId);
|
|
1954
|
-
this.
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1971
|
+
if (!this._latestViewpoint || this._latestViewpoint.isOutdated || Math.abs(this._latestViewpoint.pos.x - viewpoint.pos.x) > 0.05 || Math.abs(this._latestViewpoint.pos.y - viewpoint.pos.y) > 0.05 || Math.abs(this._latestViewpoint.pos.z - viewpoint.pos.z) > 0.05 || Math.abs(this._latestViewpoint.rot.x - viewpoint.rot.x) > 0.05 || Math.abs(this._latestViewpoint.rot.y - viewpoint.rot.y) > 0.05 || Math.abs(this._latestViewpoint.rot.z - viewpoint.rot.z) > 0.05) {
|
|
1972
|
+
this._timeoutId = setTimeout(function () {
|
|
1973
|
+
var _this7$_requestNewOve;
|
|
1974
|
+
_this7._utilStore.addOutstandingImage();
|
|
1975
|
+
_this7._latestViewpoint = viewpoint;
|
|
1976
|
+
(_this7$_requestNewOve = _this7._requestNewOverlayImage) === null || _this7$_requestNewOve === void 0 || _this7$_requestNewOve.call(_this7, viewpoint, {
|
|
1977
|
+
adjustZoomInUnity: false,
|
|
1978
|
+
onlyAdjustZoomBBChanged: false,
|
|
1979
|
+
rotationCenter: viewpoint.targetPos,
|
|
1980
|
+
elementId: elementId,
|
|
1981
|
+
setId: setId
|
|
1982
|
+
});
|
|
1983
|
+
_this7._utilStore.updateCam = true;
|
|
1984
|
+
}, 200);
|
|
1985
|
+
} else {
|
|
1986
|
+
this._overlayImage.isVisible = true;
|
|
1987
|
+
}
|
|
1967
1988
|
}
|
|
1968
1989
|
}]);
|
|
1969
1990
|
}();
|
|
@@ -3234,6 +3255,7 @@ var parser = /*#__PURE__*/function () {
|
|
|
3234
3255
|
|
|
3235
3256
|
var LOG = getLogger('ARViewer', 'RealTimeRenderData');
|
|
3236
3257
|
function useRealTimeRenderData (_ref) {
|
|
3258
|
+
var _sceneStore3;
|
|
3237
3259
|
var jwt = _ref.jwt,
|
|
3238
3260
|
actions = _ref.actions,
|
|
3239
3261
|
apiConfig = _ref.apiConfig,
|
|
@@ -3280,7 +3302,6 @@ function useRealTimeRenderData (_ref) {
|
|
|
3280
3302
|
}
|
|
3281
3303
|
function _onSceneReady() {
|
|
3282
3304
|
_onSceneReady = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
3283
|
-
var activeElement, _activeElement;
|
|
3284
3305
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
3285
3306
|
while (1) switch (_context2.prev = _context2.next) {
|
|
3286
3307
|
case 0:
|
|
@@ -3293,60 +3314,46 @@ function useRealTimeRenderData (_ref) {
|
|
|
3293
3314
|
sceneStore.isInitializing = true;
|
|
3294
3315
|
if (!overlayImage) actions.toggleLoading('buildScene', false, true);
|
|
3295
3316
|
if (sceneStore.hasRendered) {
|
|
3296
|
-
_context2.next =
|
|
3317
|
+
_context2.next = 9;
|
|
3297
3318
|
break;
|
|
3298
3319
|
}
|
|
3299
|
-
viewHandler === null || viewHandler === void 0 ? void 0 : viewHandler.divaWebPlanner.getEnableUnityRtvKombi();
|
|
3300
3320
|
if (inBackground) sceneStore.scene.getEngine().setHardwareScalingLevel(5);
|
|
3301
3321
|
sceneStore.init(apiConfig.diva3darchive + '/', gameCanvas.current, viewpoint, resolution);
|
|
3302
|
-
_context2.next =
|
|
3322
|
+
_context2.next = 14;
|
|
3303
3323
|
break;
|
|
3304
|
-
case
|
|
3324
|
+
case 9:
|
|
3305
3325
|
sceneStore.hqRenderScript = JSON.parse(renderjob);
|
|
3306
3326
|
if (checkCachedData()) {
|
|
3307
|
-
_context2.next =
|
|
3327
|
+
_context2.next = 14;
|
|
3308
3328
|
break;
|
|
3309
3329
|
}
|
|
3310
|
-
if (elementsInfo) {
|
|
3311
|
-
activeElement = elementsInfo.find(function (e) {
|
|
3312
|
-
return e.active;
|
|
3313
|
-
});
|
|
3314
|
-
if (activeElement) sceneStore.selectedElement = activeElement.elementId.toString();
|
|
3315
|
-
uiStore.initGui(callbacks.onElementSelected, sceneStore.elements, elementsInfo);
|
|
3316
|
-
}
|
|
3317
3330
|
if (!overlayImage) actions.toggleLoading('buildScene', false, false);
|
|
3318
3331
|
sceneStore.isInitializing = false;
|
|
3319
3332
|
return _context2.abrupt("return");
|
|
3320
|
-
case
|
|
3333
|
+
case 14:
|
|
3321
3334
|
LOG.startTransaction({
|
|
3322
3335
|
event: 'buildScene',
|
|
3323
3336
|
message: 'Start Building Realtime Scene',
|
|
3324
3337
|
eventId: 'BUILD_SCENE'
|
|
3325
3338
|
});
|
|
3326
|
-
_context2.prev =
|
|
3327
|
-
_context2.next =
|
|
3339
|
+
_context2.prev = 15;
|
|
3340
|
+
_context2.next = 18;
|
|
3328
3341
|
return parser();
|
|
3329
|
-
case
|
|
3330
|
-
|
|
3331
|
-
_activeElement = elementsInfo.find(function (e) {
|
|
3332
|
-
return e.active;
|
|
3333
|
-
});
|
|
3334
|
-
if (_activeElement) sceneStore.selectedElement = _activeElement.elementId.toString();
|
|
3335
|
-
uiStore.initGui(callbacks.onElementSelected, sceneStore.elements, elementsInfo);
|
|
3336
|
-
}
|
|
3342
|
+
case 18:
|
|
3343
|
+
uiStore.initGui(callbacks.onElementSelected, sceneStore.elements);
|
|
3337
3344
|
if (freePlacesOnGrids || plannedPlacesOnGrids) gridStore.getGrids(freePlacesOnGrids, plannedPlacesOnGrids);
|
|
3338
|
-
_context2.next =
|
|
3345
|
+
_context2.next = 27;
|
|
3339
3346
|
break;
|
|
3340
|
-
case
|
|
3341
|
-
_context2.prev =
|
|
3342
|
-
_context2.t0 = _context2["catch"](
|
|
3347
|
+
case 22:
|
|
3348
|
+
_context2.prev = 22;
|
|
3349
|
+
_context2.t0 = _context2["catch"](15);
|
|
3343
3350
|
LOG.errorTransaction('BUILD_SCENE', 'RTS_0001', _context2.t0.message);
|
|
3344
3351
|
LOG.error(new DivaError('Error building scene', {
|
|
3345
3352
|
cause: _context2.t0,
|
|
3346
3353
|
code: 'RTS_0001'
|
|
3347
3354
|
}));
|
|
3348
3355
|
sceneStore.isInitializing = false;
|
|
3349
|
-
case
|
|
3356
|
+
case 27:
|
|
3350
3357
|
if (callbacks.setGlb) {
|
|
3351
3358
|
sceneStore.exportScene().then(function (res) {
|
|
3352
3359
|
var _callbacks$setGlb;
|
|
@@ -3361,11 +3368,11 @@ function useRealTimeRenderData (_ref) {
|
|
|
3361
3368
|
}
|
|
3362
3369
|
sceneStore.scene.onAfterRenderObservable.add(onFirstFrame);
|
|
3363
3370
|
LOG.successTransaction('BUILD_SCENE');
|
|
3364
|
-
case
|
|
3371
|
+
case 31:
|
|
3365
3372
|
case "end":
|
|
3366
3373
|
return _context2.stop();
|
|
3367
3374
|
}
|
|
3368
|
-
}, _callee2, null, [[
|
|
3375
|
+
}, _callee2, null, [[15, 22]]);
|
|
3369
3376
|
}));
|
|
3370
3377
|
return _onSceneReady.apply(this, arguments);
|
|
3371
3378
|
}
|
|
@@ -3440,7 +3447,12 @@ function useRealTimeRenderData (_ref) {
|
|
|
3440
3447
|
resize = function resize() {
|
|
3441
3448
|
if (inBackground || !scene || !scene.getEngine()) return;
|
|
3442
3449
|
if (sceneStore.hasPlanned) sceneStore.doRenderControlLoop = true;
|
|
3443
|
-
|
|
3450
|
+
scene.getEngine().resize();
|
|
3451
|
+
if (uiStore) {
|
|
3452
|
+
uiStore.onMove();
|
|
3453
|
+
uiStore.resize();
|
|
3454
|
+
uiStore.initGui(callbacks.onElementSelected, sceneStore.elements);
|
|
3455
|
+
}
|
|
3444
3456
|
};
|
|
3445
3457
|
if (window) {
|
|
3446
3458
|
window.addEventListener('resize', resize);
|
|
@@ -3466,11 +3478,24 @@ function useRealTimeRenderData (_ref) {
|
|
|
3466
3478
|
asyncUseEffect();
|
|
3467
3479
|
}, []);
|
|
3468
3480
|
useEffect(function () {
|
|
3469
|
-
if (!utilStore.updateWithUnityData) return;
|
|
3470
3481
|
if (overlayImage && uiStore) uiStore.updateOverlayImage(overlayImage);
|
|
3471
3482
|
// update cam pos for start viewpoints (hqr) could be the same, since it doesn't change when rotating
|
|
3472
|
-
if (utilStore && viewpoint) updateCam(viewpoint, sceneStore.scene);
|
|
3473
3483
|
}, [overlayImage]);
|
|
3484
|
+
useEffect(function () {
|
|
3485
|
+
if (utilStore && viewpoint) {
|
|
3486
|
+
updateCam(viewpoint, sceneStore.scene);
|
|
3487
|
+
}
|
|
3488
|
+
}, [viewpoint]);
|
|
3489
|
+
useEffect(function () {
|
|
3490
|
+
if (sceneStore && elementsInfo) {
|
|
3491
|
+
var activeElement = elementsInfo.find(function (e) {
|
|
3492
|
+
return e.active;
|
|
3493
|
+
});
|
|
3494
|
+
if (activeElement) sceneStore.selectedElement = activeElement.elementId.toString();
|
|
3495
|
+
uiStore.addElementsInfo(elementsInfo);
|
|
3496
|
+
uiStore.initGui(callbacks.onElementSelected, sceneStore.elements);
|
|
3497
|
+
}
|
|
3498
|
+
}, [elementsInfo, (_sceneStore3 = sceneStore) === null || _sceneStore3 === void 0 ? void 0 : _sceneStore3.elements]);
|
|
3474
3499
|
useEffect(function () {
|
|
3475
3500
|
if (inBackground) {
|
|
3476
3501
|
sceneStore.scene.getEngine().stopRenderLoop();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SelectionHandler/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAOnE,UAAU,KAAK;IACb,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,YAAY,EAAE,EAAE,KAAK,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/SelectionHandler/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAOnE,UAAU,KAAK;IACb,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,YAAY,EAAE,EAAE,KAAK,GAAG,gBAAgB,CAiFlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/parser/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE;QACL,KAAK,EAAE,QAAQ,EAAE,CAAC;KACnB,CAAC;IACF,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;I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;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -20,6 +20,7 @@ export declare class UIStore {
|
|
|
20
20
|
private _colors;
|
|
21
21
|
private _gridGui?;
|
|
22
22
|
private _isStaticBg?;
|
|
23
|
+
private _elementsInfo?;
|
|
23
24
|
constructor(scene: Scene, enableSSAO: (enable: boolean) => void, utilStore: UtilStore, uiConfig?: UIConfig, requestNewOverlayImage?: (viewpoint: ViewpointCamInfo) => void, overlayImage?: {
|
|
24
25
|
base64: string;
|
|
25
26
|
isStaticBg: boolean;
|
|
@@ -29,7 +30,9 @@ export declare class UIStore {
|
|
|
29
30
|
private initSelectionHandler;
|
|
30
31
|
createGridGui(mesh: Mesh, onClickDel?: any): void;
|
|
31
32
|
removeGridGui(): void;
|
|
32
|
-
|
|
33
|
+
resize(): void;
|
|
34
|
+
addElementsInfo(elementsInfo: ElementsInfo[]): void;
|
|
35
|
+
initGui(onElSelected: any, elements: Element[]): void;
|
|
33
36
|
selectElem(name: string): void;
|
|
34
37
|
createGUIButton(node: TransformNode, posNr: string, isSelected: boolean, isSelectable: boolean, setId: string, elementId: number, topRightNode?: TransformNode): void;
|
|
35
38
|
clearGui(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UIStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/UIStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAIrE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,qBAAa,OAAO;IAClB,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,IAAI,CAAyB;IACrC,OAAO,CAAC,aAAa,CAAoB;IAEzC,OAAO,CAAC,uBAAuB,CAAC,CAStB;IACV,OAAO,CAAC,UAAU,CAAC,CAAiB;IACpC,OAAO,CAAC,gBAAgB,CAAC,CAAmB;IAC5C,OAAO,CAAC,YAAY,CAAgD;IACpE,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,OAAO,CAAC,OAAO,CAA2H;IAC1I,OAAO,CAAC,QAAQ,CAAC,CAAoD;IACrE,OAAO,CAAC,WAAW,CAAC,CAAU;
|
|
1
|
+
{"version":3,"file":"UIStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/UIStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAIrE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAA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,QAAQ,EAAE,OAAO,EAAE;IAiC9C,UAAU,CAAC,IAAI,EAAE,MAAM;IAiBvB,eAAe,CACpB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,OAAO,EACnB,YAAY,EAAE,OAAO,EACrB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,aAAa;IA8CvB,QAAQ;IAMR,MAAM;IAON,kBAAkB,iBAAkB;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,UAQ5F;IAEK,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAAE,GAAG,EAAE,oBAAoB,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;CAuC1I"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRealTimeRenderData.d.ts","sourceRoot":"","sources":["../../../../src/useRealTimeRenderData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAU1B,OAAO,8BAA8B,CAAC;AAOtC,MAAM,CAAC,OAAO,WAAW,EACvB,GAAG,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,kBAAkB,GACnB,EAAE,KAAK;;
|
|
1
|
+
{"version":3,"file":"useRealTimeRenderData.d.ts","sourceRoot":"","sources":["../../../../src/useRealTimeRenderData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAU1B,OAAO,8BAA8B,CAAC;AAOtC,MAAM,CAAC,OAAO,WAAW,EACvB,GAAG,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,kBAAkB,GACnB,EAAE,KAAK;;EAoMP"}
|