@crystaldesign/real-time-viewer-next 26.14.0-beta.21 → 26.14.0-beta.22
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/{DeckCutoutSubsystem-6aca7b92.js → DeckCutoutSubsystem-eb47a2b1.js} +1 -1
- package/build/esm/{GpuPassTiming-47d7d14b.js → GpuPassTiming-ffef4ca2.js} +1 -1
- package/build/esm/{RoomShell-e9d62ae3.js → RoomShell-44b80d5f.js} +1 -1
- package/build/esm/{SunLensflare-8e6b2ccb.js → SunLensflare-195e78f0.js} +1 -1
- package/build/esm/{WaterSurface-aa2471d6.js → WaterSurface-1678292e.js} +1 -1
- package/build/esm/{chipPlacement-f6e598a2.js → chipPlacement-aaa85bc3.js} +1 -1
- package/build/esm/{coachChunk-f22b1ed4.js → coachChunk-5f8a8ec6.js} +2 -2
- package/build/esm/{doorSwapChunk-4ba535c4.js → doorSwapChunk-6af4d939.js} +2 -2
- package/build/esm/{index-451a8bb2.js → index-4657421e.js} +504 -271
- package/build/esm/index.js +1 -1
- package/build/types/real-time-viewer-next/src/capture/applyShot.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/core/dimension-lines/DimensionLine2D.d.ts +6 -0
- package/build/types/real-time-viewer-next/src/core/dimension-lines/DimensionLine2D.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/core/dimension-lines/DimensionLines2D.d.ts +2 -0
- package/build/types/real-time-viewer-next/src/core/dimension-lines/DimensionLines2D.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/core/dimension-lines/dimensionLineBuilders2D.d.ts +7 -0
- package/build/types/real-time-viewer-next/src/core/dimension-lines/dimensionLineBuilders2D.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/core/dimension-lines/useLabelScale.d.ts +5 -0
- package/build/types/real-time-viewer-next/src/core/dimension-lines/useLabelScale.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/plannerScene2D/buildDockingGroups.d.ts +3 -1
- package/build/types/real-time-viewer-next/src/plannerScene2D/buildDockingGroups.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/plannerScene2D/buildScene2D.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/plannerScene2D/dimensionConfigs.d.ts +5 -0
- package/build/types/real-time-viewer-next/src/plannerScene2D/dimensionConfigs.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/types/scene2d.d.ts +10 -0
- package/build/types/real-time-viewer-next/src/types/scene2d.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/utils/cameraFraming.d.ts +27 -0
- package/build/types/real-time-viewer-next/src/utils/cameraFraming.d.ts.map +1 -1
- package/build/umd/real-time-viewer-next.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +2 -2
|
@@ -428,8 +428,8 @@ function getHostCallbacks() {
|
|
|
428
428
|
function _createForOfIteratorHelper$1a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
429
429
|
function _unsupportedIterableToArray$1a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1a(r, a) : void 0; } }
|
|
430
430
|
function _arrayLikeToArray$1a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
431
|
-
function ownKeys$
|
|
432
|
-
function _objectSpread$
|
|
431
|
+
function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
432
|
+
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
433
433
|
var ACCGRID_LOG$1 = getLogger('RealTimeViewer', 'AccGrid');
|
|
434
434
|
|
|
435
435
|
/**
|
|
@@ -452,7 +452,7 @@ function replacePlaceholderBoxes(allGrids) {
|
|
|
452
452
|
return box.x <= PLACEHOLDER_BOX_CM && box.y <= PLACEHOLDER_BOX_CM && box.z <= PLACEHOLDER_BOX_CM;
|
|
453
453
|
};
|
|
454
454
|
return allGrids.map(function (element) {
|
|
455
|
-
return _objectSpread$
|
|
455
|
+
return _objectSpread$H(_objectSpread$H({}, element), {}, {
|
|
456
456
|
accessories: element.accessories.map(function (entry) {
|
|
457
457
|
var size = entry.gridPositionSize;
|
|
458
458
|
if (!entry.geo || !isPlaceholder(entry.geo.geoBboxSize) || !size || isPlaceholder(size)) return entry;
|
|
@@ -461,8 +461,8 @@ function replacePlaceholderBoxes(allGrids) {
|
|
|
461
461
|
y: Math.max(size.y, PLACEHOLDER_BOX_CM),
|
|
462
462
|
z: Math.max(size.z, PLACEHOLDER_BOX_CM)
|
|
463
463
|
};
|
|
464
|
-
return _objectSpread$
|
|
465
|
-
geo: _objectSpread$
|
|
464
|
+
return _objectSpread$H(_objectSpread$H({}, entry), {}, {
|
|
465
|
+
geo: _objectSpread$H(_objectSpread$H({}, entry.geo), {}, {
|
|
466
466
|
geoBboxSize: geoBboxSize
|
|
467
467
|
})
|
|
468
468
|
});
|
|
@@ -612,7 +612,7 @@ function _fetchGridGeometry() {
|
|
|
612
612
|
_context.prev = 12;
|
|
613
613
|
// The server resolves the catalog from the body's first entry, not the query params.
|
|
614
614
|
bodyFree = freePlaces.map(function (f) {
|
|
615
|
-
return _objectSpread$
|
|
615
|
+
return _objectSpread$H(_objectSpread$H({}, f), {}, {
|
|
616
616
|
catalogCodex: catalogCodex,
|
|
617
617
|
iln: iln
|
|
618
618
|
});
|
|
@@ -620,7 +620,7 @@ function _fetchGridGeometry() {
|
|
|
620
620
|
_context.next = 16;
|
|
621
621
|
return fetch(url, {
|
|
622
622
|
method: 'POST',
|
|
623
|
-
headers: _objectSpread$
|
|
623
|
+
headers: _objectSpread$H({
|
|
624
624
|
'Content-Type': 'application/json'
|
|
625
625
|
}, jwt ? {
|
|
626
626
|
Authorization: "Bearer ".concat(jwt)
|
|
@@ -1241,8 +1241,8 @@ function resolveCell(elementId, gridDef, geo, cellIdx, gridIdx, gridName, parent
|
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
|
-
function ownKeys$
|
|
1245
|
-
function _objectSpread$
|
|
1244
|
+
function ownKeys$G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1245
|
+
function _objectSpread$G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$G(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1246
1246
|
var LOG$y = getLogger('RealTimeViewer', 'RTV-Next');
|
|
1247
1247
|
|
|
1248
1248
|
/**
|
|
@@ -1294,7 +1294,7 @@ var createPlannerOperationSlice = function createPlannerOperationSlice(set, get)
|
|
|
1294
1294
|
var progress = function progress(id, patch) {
|
|
1295
1295
|
var op = get().pendingOperation;
|
|
1296
1296
|
if ((op === null || op === void 0 ? void 0 : op.id) !== id) return;
|
|
1297
|
-
var next = _objectSpread$
|
|
1297
|
+
var next = _objectSpread$G(_objectSpread$G({}, op), patch);
|
|
1298
1298
|
if (next.settled && next.answered) {
|
|
1299
1299
|
get().endOperation();
|
|
1300
1300
|
return;
|
|
@@ -1398,8 +1398,8 @@ var createPlannerOperationSlice = function createPlannerOperationSlice(set, get)
|
|
|
1398
1398
|
function _createForOfIteratorHelper$18(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$18(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
1399
1399
|
function _unsupportedIterableToArray$18(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$18(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$18(r, a) : void 0; } }
|
|
1400
1400
|
function _arrayLikeToArray$18(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1401
|
-
function ownKeys$
|
|
1402
|
-
function _objectSpread$
|
|
1401
|
+
function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1402
|
+
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1403
1403
|
|
|
1404
1404
|
/** Dedicated logger for the ShelfPlanner accessory-grid pipeline. Filter the console for `[ACCGRID]`. */
|
|
1405
1405
|
var ACCGRID_LOG = getLogger('RealTimeViewer', 'AccGrid');
|
|
@@ -1556,7 +1556,7 @@ var createAccessoryGridSlice = function createAccessoryGridSlice(set, get) {
|
|
|
1556
1556
|
planned: previews.map(function (_ref) {
|
|
1557
1557
|
var articleCodex = _ref.articleCodex,
|
|
1558
1558
|
preview = _ref.preview;
|
|
1559
|
-
return _objectSpread$
|
|
1559
|
+
return _objectSpread$F(_objectSpread$F({}, preview), {}, {
|
|
1560
1560
|
elementId: nestedPreviewElementId(articleCodex, preview)
|
|
1561
1561
|
});
|
|
1562
1562
|
}),
|
|
@@ -1699,12 +1699,12 @@ var createAccessoryMoveSlice = function createAccessoryMoveSlice(set, get) {
|
|
|
1699
1699
|
freePlaces = raw.filter(function (f) {
|
|
1700
1700
|
return !movesAlong(f);
|
|
1701
1701
|
}).map(function (f) {
|
|
1702
|
-
return _objectSpread$
|
|
1702
|
+
return _objectSpread$F(_objectSpread$F({}, f), {}, {
|
|
1703
1703
|
grids: Object.fromEntries(Object.entries(f.grids).map(function (_ref2) {
|
|
1704
1704
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
1705
1705
|
n = _ref3[0],
|
|
1706
1706
|
g = _ref3[1];
|
|
1707
|
-
return [n, _objectSpread$
|
|
1707
|
+
return [n, _objectSpread$F(_objectSpread$F({}, g), {}, {
|
|
1708
1708
|
freeCells: _toConsumableArray(g.freeCells)
|
|
1709
1709
|
})];
|
|
1710
1710
|
}))
|
|
@@ -1868,7 +1868,7 @@ var createAccessoryMoveSlice = function createAccessoryMoveSlice(set, get) {
|
|
|
1868
1868
|
var t = mv.target;
|
|
1869
1869
|
if (!target) {
|
|
1870
1870
|
if (t) set({
|
|
1871
|
-
accessoryMove: _objectSpread$
|
|
1871
|
+
accessoryMove: _objectSpread$F(_objectSpread$F({}, mv), {}, {
|
|
1872
1872
|
target: null,
|
|
1873
1873
|
targetWorldPos: null,
|
|
1874
1874
|
followDelta: null
|
|
@@ -1879,7 +1879,7 @@ var createAccessoryMoveSlice = function createAccessoryMoveSlice(set, get) {
|
|
|
1879
1879
|
// articleCodex is part of the target identity — left/right pairs share the same cell.
|
|
1880
1880
|
if (t && t.parentBasketId === target.parentBasketId && t.gridName === target.gridName && t.cellIdx === target.cellIdx && t.articleCodex === target.articleCodex) return;
|
|
1881
1881
|
set({
|
|
1882
|
-
accessoryMove: _objectSpread$
|
|
1882
|
+
accessoryMove: _objectSpread$F(_objectSpread$F({}, mv), {}, {
|
|
1883
1883
|
target: target,
|
|
1884
1884
|
targetWorldPos: worldPos,
|
|
1885
1885
|
followDelta: translationBetween(worldPos, mv.restingWorldPos)
|
|
@@ -1890,7 +1890,7 @@ var createAccessoryMoveSlice = function createAccessoryMoveSlice(set, get) {
|
|
|
1890
1890
|
var mv = get().accessoryMove;
|
|
1891
1891
|
if (!mv) return;
|
|
1892
1892
|
set({
|
|
1893
|
-
accessoryMove: _objectSpread$
|
|
1893
|
+
accessoryMove: _objectSpread$F(_objectSpread$F({}, mv), {}, {
|
|
1894
1894
|
previewOffset: offset
|
|
1895
1895
|
})
|
|
1896
1896
|
});
|
|
@@ -1899,7 +1899,7 @@ var createAccessoryMoveSlice = function createAccessoryMoveSlice(set, get) {
|
|
|
1899
1899
|
var mv = get().accessoryMove;
|
|
1900
1900
|
if (!mv) return;
|
|
1901
1901
|
set({
|
|
1902
|
-
accessoryMove: _objectSpread$
|
|
1902
|
+
accessoryMove: _objectSpread$F(_objectSpread$F({}, mv), {}, {
|
|
1903
1903
|
restingWorldPos: worldPos,
|
|
1904
1904
|
followDelta: translationBetween(mv.targetWorldPos, worldPos)
|
|
1905
1905
|
})
|
|
@@ -1922,7 +1922,7 @@ var createAccessoryMoveSlice = function createAccessoryMoveSlice(set, get) {
|
|
|
1922
1922
|
var isOriginal = !!t && t.parentBasketId === mv.originBasketId && t.gridIdx === mv.ref.gridId && t.cellIdx === mv.ref.cellIdx && (!t.articleCodex || t.articleCodex === mv.ownArticleCodex);
|
|
1923
1923
|
// Variant switch — see {@link CommittedVariant} for why the mesh is held at the drop spot.
|
|
1924
1924
|
var isSwitch = !!t && !isOriginal && !!t.articleCodex && t.articleCodex !== mv.ownArticleCodex && !!mv.targetWorldPos;
|
|
1925
|
-
var committedVariant = isSwitch ? _objectSpread$
|
|
1925
|
+
var committedVariant = isSwitch ? _objectSpread$F({
|
|
1926
1926
|
setId: mv.ref.setId,
|
|
1927
1927
|
elementKey: mv.ref.elementKey,
|
|
1928
1928
|
variantCodex: t.articleCodex,
|
|
@@ -1979,7 +1979,7 @@ function resolveVariantForElement(s, setId, elementKey) {
|
|
|
1979
1979
|
if (mv && isAccessory(mv.ref, setId, elementKey)) {
|
|
1980
1980
|
var _mv$target;
|
|
1981
1981
|
var codex = (_mv$target = mv.target) === null || _mv$target === void 0 ? void 0 : _mv$target.articleCodex;
|
|
1982
|
-
return codex && codex !== mv.ownArticleCodex ? _objectSpread$
|
|
1982
|
+
return codex && codex !== mv.ownArticleCodex ? _objectSpread$F({
|
|
1983
1983
|
codex: codex
|
|
1984
1984
|
}, variantPreviewOf(mv, codex)) : null;
|
|
1985
1985
|
}
|
|
@@ -2050,7 +2050,7 @@ var createAccessoryDropSlice = function createAccessoryDropSlice(set, get) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
if ((cur === null || cur === void 0 ? void 0 : cur.articleCodex) === articleCodex) {
|
|
2052
2052
|
if (cur.pointerId !== pointerId) set({
|
|
2053
|
-
accessoryDrag: _objectSpread$
|
|
2053
|
+
accessoryDrag: _objectSpread$F(_objectSpread$F({}, cur), {}, {
|
|
2054
2054
|
pointerId: pointerId
|
|
2055
2055
|
})
|
|
2056
2056
|
});
|
|
@@ -2074,7 +2074,7 @@ var createAccessoryDropSlice = function createAccessoryDropSlice(set, get) {
|
|
|
2074
2074
|
// Same-cell family pairs differ only by articleCodex (bbox offset) — see setAccessoryMoveTarget.
|
|
2075
2075
|
if (t && cell && t.parentBasketId === cell.parentBasketId && t.gridName === cell.gridName && t.cellIdx === cell.cellIdx && t.articleCodex === cell.articleCodex) return;
|
|
2076
2076
|
set({
|
|
2077
|
-
accessoryDrag: _objectSpread$
|
|
2077
|
+
accessoryDrag: _objectSpread$F(_objectSpread$F({}, cur), {}, {
|
|
2078
2078
|
targetCell: cell
|
|
2079
2079
|
})
|
|
2080
2080
|
});
|
|
@@ -2327,8 +2327,8 @@ var lastRestoreAt = Number.NEGATIVE_INFINITY;
|
|
|
2327
2327
|
function _createForOfIteratorHelper$16(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$16(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2328
2328
|
function _unsupportedIterableToArray$16(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$16(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$16(r, a) : void 0; } }
|
|
2329
2329
|
function _arrayLikeToArray$16(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2330
|
-
function ownKeys$
|
|
2331
|
-
function _objectSpread$
|
|
2330
|
+
function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2331
|
+
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2332
2332
|
/**
|
|
2333
2333
|
* The camera rule table: which pose the camera should take, per configurator step and per moment. Call sites report a
|
|
2334
2334
|
* {@link CameraMoment} and never choose a pose themselves; `useCameraActions` turns the resolved {@link CameraIntent}
|
|
@@ -2447,7 +2447,7 @@ function mergedRow(key, table) {
|
|
|
2447
2447
|
var configured = ownEntry(table, key);
|
|
2448
2448
|
if (!configured) return builtIn;
|
|
2449
2449
|
if (configured.replace || !builtIn) return configured;
|
|
2450
|
-
return _objectSpread$
|
|
2450
|
+
return _objectSpread$E(_objectSpread$E({}, builtIn), configured);
|
|
2451
2451
|
}
|
|
2452
2452
|
|
|
2453
2453
|
/** The merged rows of the active step's keys, most specific first, each with the active option's row. */
|
|
@@ -2773,8 +2773,8 @@ var CAMERA_DEV_ORBIT_LIMITS = {
|
|
|
2773
2773
|
};
|
|
2774
2774
|
|
|
2775
2775
|
var _excluded$7 = ["sweep"];
|
|
2776
|
-
function ownKeys$
|
|
2777
|
-
function _objectSpread$
|
|
2776
|
+
function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2777
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2778
2778
|
var DEG$1 = Math.PI / 180;
|
|
2779
2779
|
|
|
2780
2780
|
/** Tighter of two bounds, honouring which side of the range they clamp. `undefined` keeps the base. */
|
|
@@ -2806,11 +2806,11 @@ function sweepRadians(sweep) {
|
|
|
2806
2806
|
*/
|
|
2807
2807
|
function applyStepLimits(base, patch, sweepWindowRad, enterPose) {
|
|
2808
2808
|
if (!patch && !sweepWindowRad) return base;
|
|
2809
|
-
var merged = _objectSpread$
|
|
2809
|
+
var merged = _objectSpread$D({}, base);
|
|
2810
2810
|
if (patch !== null && patch !== void 0 && patch.replace) {
|
|
2811
2811
|
var _patch$minDistance, _patch$maxDistance, _rad, _rad2, _rad3, _rad4, _patch$collision;
|
|
2812
2812
|
var free = DEFAULT_CAMERA_CONFIG.limits;
|
|
2813
|
-
merged = _objectSpread$
|
|
2813
|
+
merged = _objectSpread$D(_objectSpread$D({}, base), {}, {
|
|
2814
2814
|
minDistance: (_patch$minDistance = patch.minDistance) !== null && _patch$minDistance !== void 0 ? _patch$minDistance : free.minDistance,
|
|
2815
2815
|
maxDistance: (_patch$maxDistance = patch.maxDistance) !== null && _patch$maxDistance !== void 0 ? _patch$maxDistance : free.maxDistance,
|
|
2816
2816
|
minPolarAngle: (_rad = rad(patch.minPolarAngleDeg)) !== null && _rad !== void 0 ? _rad : free.minPolarAngle,
|
|
@@ -2858,7 +2858,7 @@ function applyStepLimits(base, patch, sweepWindowRad, enterPose) {
|
|
|
2858
2858
|
|
|
2859
2859
|
/** The orbit cage of the active step: the preset limits with the step's patch (`applyStepLimits`). */
|
|
2860
2860
|
function stepOrbitLimits(presetLimits, behaviour) {
|
|
2861
|
-
return applyStepLimits(_objectSpread$
|
|
2861
|
+
return applyStepLimits(_objectSpread$D(_objectSpread$D({}, DEFAULT_CAMERA_CONFIG.limits), presetLimits), behaviour === null || behaviour === void 0 ? void 0 : behaviour.limits, behaviour === null || behaviour === void 0 ? void 0 : behaviour.sweepWindowRad, behaviour === null || behaviour === void 0 ? void 0 : behaviour.enterPoseRad);
|
|
2862
2862
|
}
|
|
2863
2863
|
|
|
2864
2864
|
/**
|
|
@@ -2869,11 +2869,11 @@ function applyStepAutoRotate(base, patch) {
|
|
|
2869
2869
|
if (!patch) return base;
|
|
2870
2870
|
patch.sweep;
|
|
2871
2871
|
var rest = _objectWithoutProperties(patch, _excluded$7);
|
|
2872
|
-
return _objectSpread$
|
|
2872
|
+
return _objectSpread$D(_objectSpread$D({}, base), rest);
|
|
2873
2873
|
}
|
|
2874
2874
|
|
|
2875
|
-
function ownKeys$
|
|
2876
|
-
function _objectSpread$
|
|
2875
|
+
function ownKeys$C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2876
|
+
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2877
2877
|
/**
|
|
2878
2878
|
* Config descriptors — one declaration per subsystem from which everything else derives.
|
|
2879
2879
|
*
|
|
@@ -2940,28 +2940,28 @@ function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
2940
2940
|
var field = {
|
|
2941
2941
|
number: function number(def) {
|
|
2942
2942
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2943
|
-
return _objectSpread$
|
|
2943
|
+
return _objectSpread$C({
|
|
2944
2944
|
kind: 'number',
|
|
2945
2945
|
"default": def
|
|
2946
2946
|
}, opts);
|
|
2947
2947
|
},
|
|
2948
2948
|
"boolean": function boolean(def) {
|
|
2949
2949
|
var meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2950
|
-
return _objectSpread$
|
|
2950
|
+
return _objectSpread$C({
|
|
2951
2951
|
kind: 'boolean',
|
|
2952
2952
|
"default": def
|
|
2953
2953
|
}, meta);
|
|
2954
2954
|
},
|
|
2955
2955
|
color: function color(def) {
|
|
2956
2956
|
var meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2957
|
-
return _objectSpread$
|
|
2957
|
+
return _objectSpread$C({
|
|
2958
2958
|
kind: 'color',
|
|
2959
2959
|
"default": def
|
|
2960
2960
|
}, meta);
|
|
2961
2961
|
},
|
|
2962
2962
|
"enum": function _enum(def, options) {
|
|
2963
2963
|
var meta = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
2964
|
-
return _objectSpread$
|
|
2964
|
+
return _objectSpread$C({
|
|
2965
2965
|
kind: 'enum',
|
|
2966
2966
|
"default": def,
|
|
2967
2967
|
options: options
|
|
@@ -2969,42 +2969,42 @@ var field = {
|
|
|
2969
2969
|
},
|
|
2970
2970
|
tuple: function tuple(def) {
|
|
2971
2971
|
var meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2972
|
-
return _objectSpread$
|
|
2972
|
+
return _objectSpread$C({
|
|
2973
2973
|
kind: 'tuple',
|
|
2974
2974
|
"default": def
|
|
2975
2975
|
}, meta);
|
|
2976
2976
|
},
|
|
2977
2977
|
value: function value(def) {
|
|
2978
2978
|
var meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2979
|
-
return _objectSpread$
|
|
2979
|
+
return _objectSpread$C({
|
|
2980
2980
|
kind: 'value',
|
|
2981
2981
|
"default": def
|
|
2982
2982
|
}, meta);
|
|
2983
2983
|
},
|
|
2984
2984
|
asset: function asset(def) {
|
|
2985
2985
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2986
|
-
return _objectSpread$
|
|
2986
|
+
return _objectSpread$C({
|
|
2987
2987
|
kind: 'asset',
|
|
2988
2988
|
"default": def
|
|
2989
2989
|
}, opts);
|
|
2990
2990
|
},
|
|
2991
2991
|
array: function array(item) {
|
|
2992
2992
|
var meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2993
|
-
return _objectSpread$
|
|
2993
|
+
return _objectSpread$C({
|
|
2994
2994
|
kind: 'array',
|
|
2995
2995
|
item: item
|
|
2996
2996
|
}, meta);
|
|
2997
2997
|
},
|
|
2998
2998
|
group: function group(fields) {
|
|
2999
2999
|
var meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
3000
|
-
return _objectSpread$
|
|
3000
|
+
return _objectSpread$C({
|
|
3001
3001
|
kind: 'group',
|
|
3002
3002
|
fields: fields
|
|
3003
3003
|
}, meta);
|
|
3004
3004
|
},
|
|
3005
3005
|
toggle: function toggle(fields, def) {
|
|
3006
3006
|
var meta = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
3007
|
-
return _objectSpread$
|
|
3007
|
+
return _objectSpread$C({
|
|
3008
3008
|
kind: 'toggle',
|
|
3009
3009
|
fields: fields,
|
|
3010
3010
|
"default": def
|
|
@@ -3912,8 +3912,8 @@ var SHADOWS_CONFIG = field.group({
|
|
|
3912
3912
|
})
|
|
3913
3913
|
});
|
|
3914
3914
|
|
|
3915
|
-
function ownKeys$
|
|
3916
|
-
function _objectSpread$
|
|
3915
|
+
function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3916
|
+
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3917
3917
|
|
|
3918
3918
|
// ---------------------------------------------------------------------------
|
|
3919
3919
|
// Enum-valued option maps. `BlendFunction` / `KernelSize` are numeric enums in
|
|
@@ -4018,7 +4018,7 @@ function ssaoFields(labelPrefix, overrides) {
|
|
|
4018
4018
|
var L = function L(label) {
|
|
4019
4019
|
return "".concat(labelPrefix).concat(label);
|
|
4020
4020
|
};
|
|
4021
|
-
var d = _objectSpread$
|
|
4021
|
+
var d = _objectSpread$B({
|
|
4022
4022
|
intensity: 3.3,
|
|
4023
4023
|
radius: 3.5,
|
|
4024
4024
|
rings: 4,
|
|
@@ -5579,8 +5579,8 @@ var SCENE_CONFIG = field.group({
|
|
|
5579
5579
|
|
|
5580
5580
|
/** Which part of an article an axis positions: an edge, or its middle. */
|
|
5581
5581
|
|
|
5582
|
-
function ownKeys$
|
|
5583
|
-
function _objectSpread$
|
|
5582
|
+
function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5583
|
+
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5584
5584
|
|
|
5585
5585
|
/**
|
|
5586
5586
|
* The whole environment as one descriptor: each subsystem contributes the tree it declares next to
|
|
@@ -5590,7 +5590,7 @@ function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
5590
5590
|
* The `dimensionLine*` fields are spread in rather than nested — they sit at the top level of the
|
|
5591
5591
|
* config, not under a `dimensionLines` group.
|
|
5592
5592
|
*/
|
|
5593
|
-
var ENVIRONMENT_CONFIG = field.group(_objectSpread$
|
|
5593
|
+
var ENVIRONMENT_CONFIG = field.group(_objectSpread$A(_objectSpread$A({
|
|
5594
5594
|
dome: DOME_CONFIG,
|
|
5595
5595
|
lighting: LIGHTING_CONFIG,
|
|
5596
5596
|
water: WATER_CONFIG,
|
|
@@ -5835,8 +5835,8 @@ var OVERRIDE_PROFILE_TIERS = PROFILE_TIERS.flatMap(function (_ref) {
|
|
|
5835
5835
|
function _createForOfIteratorHelper$15(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$15(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
5836
5836
|
function _unsupportedIterableToArray$15(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$15(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$15(r, a) : void 0; } }
|
|
5837
5837
|
function _arrayLikeToArray$15(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5838
|
-
function ownKeys$
|
|
5839
|
-
function _objectSpread$
|
|
5838
|
+
function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5839
|
+
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5840
5840
|
function isPlainMergeableObject(v) {
|
|
5841
5841
|
return v !== null && v !== undefined && v !== false && _typeof(v) === 'object' && !Array.isArray(v);
|
|
5842
5842
|
}
|
|
@@ -5845,7 +5845,7 @@ function isPlainMergeableObject(v) {
|
|
|
5845
5845
|
* Applies a sparse override on top of a config. The result never aliases the patch.
|
|
5846
5846
|
*/
|
|
5847
5847
|
function deepMergePartial(target, patch) {
|
|
5848
|
-
var result = _objectSpread$
|
|
5848
|
+
var result = _objectSpread$z({}, target);
|
|
5849
5849
|
for (var _i = 0, _Object$keys = Object.keys(patch); _i < _Object$keys.length; _i++) {
|
|
5850
5850
|
var key = _Object$keys[_i];
|
|
5851
5851
|
var patchVal = patch[key];
|
|
@@ -6308,8 +6308,8 @@ var DEFAULT_PROFILES = {
|
|
|
6308
6308
|
};
|
|
6309
6309
|
|
|
6310
6310
|
var _excluded$6 = ["sun"];
|
|
6311
|
-
function ownKeys$
|
|
6312
|
-
function _objectSpread$
|
|
6311
|
+
function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6312
|
+
function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6313
6313
|
/**
|
|
6314
6314
|
* The `day` light preset a room scene layers over the catalog's environment: softer studio lights. The presets leave
|
|
6315
6315
|
* post-processing to the tier config: a tone curve over the white room's FXAA crushes dark pixels to black.
|
|
@@ -6362,7 +6362,7 @@ function roomEnvironment(preset, base) {
|
|
|
6362
6362
|
var _patch$lighting2 = patch.lighting;
|
|
6363
6363
|
_patch$lighting2.sun;
|
|
6364
6364
|
var lighting = _objectWithoutProperties(_patch$lighting2, _excluded$6);
|
|
6365
|
-
return _objectSpread$
|
|
6365
|
+
return _objectSpread$y(_objectSpread$y({}, patch), {}, {
|
|
6366
6366
|
lighting: lighting
|
|
6367
6367
|
});
|
|
6368
6368
|
}
|
|
@@ -6473,8 +6473,8 @@ var R3FAssetBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
6473
6473
|
}]);
|
|
6474
6474
|
}(React.Component);
|
|
6475
6475
|
|
|
6476
|
-
function ownKeys$
|
|
6477
|
-
function _objectSpread$
|
|
6476
|
+
function ownKeys$x(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6477
|
+
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$x(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$x(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6478
6478
|
function memoChunk(load) {
|
|
6479
6479
|
var chunk;
|
|
6480
6480
|
return function () {
|
|
@@ -6504,13 +6504,13 @@ function LazyBoundary(_ref) {
|
|
|
6504
6504
|
onError: onError,
|
|
6505
6505
|
children: /*#__PURE__*/jsx(Suspense, {
|
|
6506
6506
|
fallback: null,
|
|
6507
|
-
children: /*#__PURE__*/jsx(Part, _objectSpread$
|
|
6507
|
+
children: /*#__PURE__*/jsx(Part, _objectSpread$x({}, props !== null && props !== void 0 ? props : {}))
|
|
6508
6508
|
})
|
|
6509
6509
|
});
|
|
6510
6510
|
}
|
|
6511
6511
|
|
|
6512
6512
|
var loadChunk$5 = memoChunk(function () {
|
|
6513
|
-
return import('./WaterSurface-
|
|
6513
|
+
return import('./WaterSurface-1678292e.js');
|
|
6514
6514
|
});
|
|
6515
6515
|
|
|
6516
6516
|
/**
|
|
@@ -6540,7 +6540,7 @@ function WaterSurfaceLazy() {
|
|
|
6540
6540
|
}
|
|
6541
6541
|
|
|
6542
6542
|
var loadChunk$4 = memoChunk(function () {
|
|
6543
|
-
return import('./DeckCutoutSubsystem-
|
|
6543
|
+
return import('./DeckCutoutSubsystem-eb47a2b1.js');
|
|
6544
6544
|
});
|
|
6545
6545
|
|
|
6546
6546
|
/**
|
|
@@ -6570,7 +6570,7 @@ function DeckCutoutLazy() {
|
|
|
6570
6570
|
}
|
|
6571
6571
|
|
|
6572
6572
|
var loadChunk$3 = memoChunk(function () {
|
|
6573
|
-
return import('./SunLensflare-
|
|
6573
|
+
return import('./SunLensflare-195e78f0.js');
|
|
6574
6574
|
});
|
|
6575
6575
|
|
|
6576
6576
|
/**
|
|
@@ -6601,7 +6601,7 @@ function SunLensflareLazy(props) {
|
|
|
6601
6601
|
}
|
|
6602
6602
|
|
|
6603
6603
|
var loadChunk$2 = memoChunk(function () {
|
|
6604
|
-
return import('./RoomShell-
|
|
6604
|
+
return import('./RoomShell-44b80d5f.js');
|
|
6605
6605
|
});
|
|
6606
6606
|
|
|
6607
6607
|
/**
|
|
@@ -6669,8 +6669,8 @@ function preloadLazySubsystems(env, room) {
|
|
|
6669
6669
|
if (sun !== false && sun.enabled && sun.lensflare !== false && sun.lensflare.enabled) preloadSunLensflare();
|
|
6670
6670
|
}
|
|
6671
6671
|
|
|
6672
|
-
function ownKeys$
|
|
6673
|
-
function _objectSpread$
|
|
6672
|
+
function ownKeys$w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6673
|
+
function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6674
6674
|
function _createForOfIteratorHelper$14(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$14(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
6675
6675
|
function _unsupportedIterableToArray$14(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$14(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$14(r, a) : void 0; } }
|
|
6676
6676
|
function _arrayLikeToArray$14(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -6879,7 +6879,7 @@ function readStepTable(table) {
|
|
|
6879
6879
|
warnOnce("camera.steps.".concat(key, " dropped: ").concat(problem !== null && problem !== void 0 ? problem : '`options` is not an object'));
|
|
6880
6880
|
continue;
|
|
6881
6881
|
}
|
|
6882
|
-
read[key] = options === undefined ? row : _objectSpread$
|
|
6882
|
+
read[key] = options === undefined ? row : _objectSpread$w(_objectSpread$w({}, row), {}, {
|
|
6883
6883
|
options: options
|
|
6884
6884
|
});
|
|
6885
6885
|
}
|
|
@@ -7380,8 +7380,8 @@ var createSceneLoadSlice = function createSceneLoadSlice(set, get) {
|
|
|
7380
7380
|
};
|
|
7381
7381
|
};
|
|
7382
7382
|
|
|
7383
|
-
function ownKeys$
|
|
7384
|
-
function _objectSpread$
|
|
7383
|
+
function ownKeys$v(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7384
|
+
function _objectSpread$v(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$v(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$v(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7385
7385
|
/**
|
|
7386
7386
|
* Pick the active playable tier. Explicit mode wins outright (runtime adjustment
|
|
7387
7387
|
* ignored). `detect` pins the detected tier; `auto` uses it (or `high` if not
|
|
@@ -7445,21 +7445,21 @@ function orderFiniteAzimuthInLimits(l) {
|
|
|
7445
7445
|
if (typeof a !== 'number' || typeof b !== 'number') return l;
|
|
7446
7446
|
if (!Number.isFinite(a) || !Number.isFinite(b)) return l;
|
|
7447
7447
|
if (a <= b) return l;
|
|
7448
|
-
return _objectSpread$
|
|
7448
|
+
return _objectSpread$v(_objectSpread$v({}, l), {}, {
|
|
7449
7449
|
minAzimuthAngle: b,
|
|
7450
7450
|
maxAzimuthAngle: a
|
|
7451
7451
|
});
|
|
7452
7452
|
}
|
|
7453
7453
|
function mergeCameraLimits(prevLimits, patch) {
|
|
7454
|
-
var merged = omitUndefinedLimits(_objectSpread$
|
|
7454
|
+
var merged = omitUndefinedLimits(_objectSpread$v(_objectSpread$v({}, prevLimits !== null && prevLimits !== void 0 ? prevLimits : {}), patch));
|
|
7455
7455
|
if (Object.keys(merged).length === 0) return prevLimits;
|
|
7456
7456
|
return orderFiniteAzimuthInLimits(merged);
|
|
7457
7457
|
}
|
|
7458
7458
|
function mergeCameraConfig(current, partial) {
|
|
7459
|
-
return _objectSpread$
|
|
7459
|
+
return _objectSpread$v(_objectSpread$v(_objectSpread$v({}, current), partial), {}, {
|
|
7460
7460
|
limits: partial.limits ? mergeCameraLimits(current.limits, partial.limits) : current.limits,
|
|
7461
|
-
controls: partial.controls ? _objectSpread$
|
|
7462
|
-
autoRotate: partial.autoRotate ? _objectSpread$
|
|
7461
|
+
controls: partial.controls ? _objectSpread$v(_objectSpread$v({}, current.controls), partial.controls) : current.controls,
|
|
7462
|
+
autoRotate: partial.autoRotate ? _objectSpread$v(_objectSpread$v({}, current.autoRotate), partial.autoRotate) : current.autoRotate
|
|
7463
7463
|
}, partial.steps !== undefined ? {
|
|
7464
7464
|
steps: readStepTable(partial.steps)
|
|
7465
7465
|
} : {});
|
|
@@ -7475,8 +7475,8 @@ function releaseSettledBootGates(s) {
|
|
|
7475
7475
|
if (s.detectedTier !== null || s.profileMode !== 'auto' && s.profileMode !== 'detect') s.endSceneLoad(DEVICE_TIER_LOAD_ID);
|
|
7476
7476
|
}
|
|
7477
7477
|
|
|
7478
|
-
function ownKeys$
|
|
7479
|
-
function _objectSpread$
|
|
7478
|
+
function ownKeys$u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7479
|
+
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7480
7480
|
var LOG$t = getLogger('RealTimeViewer', 'RTV-Next');
|
|
7481
7481
|
/**
|
|
7482
7482
|
* Whether the camera still stands where a click centred it after `action`: a hold within the step and a refit (it
|
|
@@ -7567,7 +7567,7 @@ var createCameraSlice = function createCameraSlice(set, get) {
|
|
|
7567
7567
|
LOG$t.debug("[CAM] step behaviours: limits ".concat(behaviour.limits ? "".concat(JSON.stringify(behaviour.limits), " (").concat(behaviour.limitsSource, ")") : 'none', " | ") + "autoRotate ".concat(behaviour.autoRotate ? "".concat(JSON.stringify(behaviour.autoRotate), " (").concat(behaviour.autoRotateSource, ")") : 'none', " | ") + "water ".concat(behaviour.water === undefined ? 'preset' : "".concat(behaviour.water, " (").concat(behaviour.waterSource, ")")));
|
|
7568
7568
|
// An enter-relative window stays unanchored until `anchorStepEntry`.
|
|
7569
7569
|
set({
|
|
7570
|
-
stepBehaviour: _objectSpread$
|
|
7570
|
+
stepBehaviour: _objectSpread$u(_objectSpread$u({}, behaviour), {}, {
|
|
7571
7571
|
sweepWindowRad: sweepWindowRad
|
|
7572
7572
|
})
|
|
7573
7573
|
});
|
|
@@ -7585,7 +7585,7 @@ var createCameraSlice = function createCameraSlice(set, get) {
|
|
|
7585
7585
|
var sweepWindowRad = (sweep === null || sweep === void 0 ? void 0 : sweep.relativeTo) === 'enterAzimuth' ? sweepRadians(sweep, azimuthRad) : current.sweepWindowRad;
|
|
7586
7586
|
LOG$t.debug("[CAM] step entry anchored at azimuth ".concat((azimuthRad * 180 / Math.PI).toFixed(1), "\xB0 polar ").concat((polarRad * 180 / Math.PI).toFixed(1), "\xB0"));
|
|
7587
7587
|
set({
|
|
7588
|
-
stepBehaviour: _objectSpread$
|
|
7588
|
+
stepBehaviour: _objectSpread$u(_objectSpread$u({}, current), {}, {
|
|
7589
7589
|
sweepWindowRad: sweepWindowRad,
|
|
7590
7590
|
enterPoseRad: {
|
|
7591
7591
|
azimuth: azimuthRad,
|
|
@@ -8328,8 +8328,8 @@ function _exportSceneUsdz() {
|
|
|
8328
8328
|
return _exportSceneUsdz.apply(this, arguments);
|
|
8329
8329
|
}
|
|
8330
8330
|
|
|
8331
|
-
function ownKeys$
|
|
8332
|
-
function _objectSpread$
|
|
8331
|
+
function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8332
|
+
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8333
8333
|
function _createForOfIteratorHelper$$(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$$(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
8334
8334
|
function _unsupportedIterableToArray$$(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$$(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$$(r, a) : void 0; } }
|
|
8335
8335
|
function _arrayLikeToArray$$(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -8514,7 +8514,7 @@ var createCaptureSlice = function createCaptureSlice(set, get, api) {
|
|
|
8514
8514
|
if (o.viewMode !== undefined) patch.viewMode = o.viewMode;
|
|
8515
8515
|
if (o.showDimensionLines !== undefined) patch.showDimensionLines = o.showDimensionLines;
|
|
8516
8516
|
if (o.captureGridOverride !== undefined) patch.captureGridOverride = o.captureGridOverride;
|
|
8517
|
-
if (o.hideUiIcons !== undefined) patch.uiConfig = _objectSpread$
|
|
8517
|
+
if (o.hideUiIcons !== undefined) patch.uiConfig = _objectSpread$t(_objectSpread$t({}, s.uiConfig), {}, {
|
|
8518
8518
|
hideUiIcons: o.hideUiIcons
|
|
8519
8519
|
});
|
|
8520
8520
|
if (o.selectedElementName !== undefined) patch.selectedElementName = o.selectedElementName;
|
|
@@ -8536,7 +8536,7 @@ var createCaptureSlice = function createCaptureSlice(set, get, api) {
|
|
|
8536
8536
|
captureGridOverride: null,
|
|
8537
8537
|
captureSetId: null,
|
|
8538
8538
|
_skipViewModeTransition: s.viewMode !== snap.viewMode,
|
|
8539
|
-
uiConfig: _objectSpread$
|
|
8539
|
+
uiConfig: _objectSpread$t(_objectSpread$t({}, s.uiConfig), {}, {
|
|
8540
8540
|
hideUiIcons: snap.hideUiIcons
|
|
8541
8541
|
})
|
|
8542
8542
|
};
|
|
@@ -8596,8 +8596,8 @@ function markCoachHintSeen(hintId) {
|
|
|
8596
8596
|
}
|
|
8597
8597
|
}
|
|
8598
8598
|
|
|
8599
|
-
function ownKeys$
|
|
8600
|
-
function _objectSpread$
|
|
8599
|
+
function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8600
|
+
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8601
8601
|
/** Quiet time (ms) after one hint ended before the next may show. */
|
|
8602
8602
|
var COACH_HINT_GAP_MS = 4000;
|
|
8603
8603
|
|
|
@@ -8649,14 +8649,14 @@ var createCoachSlice = function createCoachSlice(set, get) {
|
|
|
8649
8649
|
var targets = get().coachTargets;
|
|
8650
8650
|
if (targets[name] === element) return;
|
|
8651
8651
|
set({
|
|
8652
|
-
coachTargets: _objectSpread$
|
|
8652
|
+
coachTargets: _objectSpread$s(_objectSpread$s({}, targets), {}, _defineProperty({}, name, element))
|
|
8653
8653
|
});
|
|
8654
8654
|
}
|
|
8655
8655
|
};
|
|
8656
8656
|
};
|
|
8657
8657
|
|
|
8658
|
-
function ownKeys$
|
|
8659
|
-
function _objectSpread$
|
|
8658
|
+
function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8659
|
+
function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8660
8660
|
var STORE_LOG$2 = getLogger('RealTimeViewer', 'Store');
|
|
8661
8661
|
|
|
8662
8662
|
/**
|
|
@@ -8675,10 +8675,10 @@ var createConfigSlice = function createConfigSlice(set, get) {
|
|
|
8675
8675
|
archiveBaseUrl: '',
|
|
8676
8676
|
constructorServiceUrl: ''
|
|
8677
8677
|
},
|
|
8678
|
-
capabilities: _objectSpread$
|
|
8678
|
+
capabilities: _objectSpread$r({}, DEFAULT_CAPABILITIES),
|
|
8679
8679
|
setConfig: function setConfig(hostConfig) {
|
|
8680
8680
|
// URLs append `/<path>` to the base; a host's trailing slash would double it (`…/diva3darchiv//…`).
|
|
8681
|
-
var config = _objectSpread$
|
|
8681
|
+
var config = _objectSpread$r(_objectSpread$r({}, hostConfig), {}, {
|
|
8682
8682
|
archiveBaseUrl: hostConfig.archiveBaseUrl.replace(/\/$/, '')
|
|
8683
8683
|
});
|
|
8684
8684
|
// A host that builds `config` inline hands a new object every render; with the same values nothing changes, so the
|
|
@@ -8712,7 +8712,7 @@ var createConfigSlice = function createConfigSlice(set, get) {
|
|
|
8712
8712
|
|
|
8713
8713
|
// Only the keys the host actually supplied are folded in; omitting the field entirely keeps
|
|
8714
8714
|
// whatever is already resolved.
|
|
8715
|
-
var nextCapabilities = config.capabilities ? _objectSpread$
|
|
8715
|
+
var nextCapabilities = config.capabilities ? _objectSpread$r(_objectSpread$r(_objectSpread$r({}, DEFAULT_CAPABILITIES), s.capabilities), config.capabilities) : s.capabilities;
|
|
8716
8716
|
|
|
8717
8717
|
// Only merge the uiConfig KEYS the host actually changed since its last push. The host
|
|
8718
8718
|
// rebuilds `config` (and `config.uiConfig`) on every render, so an unguarded merge would
|
|
@@ -8729,7 +8729,7 @@ var createConfigSlice = function createConfigSlice(set, get) {
|
|
|
8729
8729
|
}
|
|
8730
8730
|
if (Object.keys(changed).length > 0) uiConfigPatch = changed;
|
|
8731
8731
|
}
|
|
8732
|
-
return _objectSpread$
|
|
8732
|
+
return _objectSpread$r(_objectSpread$r(_objectSpread$r(_objectSpread$r({
|
|
8733
8733
|
config: config,
|
|
8734
8734
|
capabilities: nextCapabilities
|
|
8735
8735
|
}, nextCapabilities.supports3d ? {} : {
|
|
@@ -8737,7 +8737,7 @@ var createConfigSlice = function createConfigSlice(set, get) {
|
|
|
8737
8737
|
}), cameraChanged ? {
|
|
8738
8738
|
cameraConfig: mergeCameraConfig(s.cameraConfig, config.camera)
|
|
8739
8739
|
} : {}), uiConfigPatch ? {
|
|
8740
|
-
uiConfig: _objectSpread$
|
|
8740
|
+
uiConfig: _objectSpread$r(_objectSpread$r({}, s.uiConfig), uiConfigPatch)
|
|
8741
8741
|
} : {}), {}, {
|
|
8742
8742
|
profiles: nextProfiles,
|
|
8743
8743
|
profileMode: nextMode,
|
|
@@ -8993,8 +8993,8 @@ function followerKeysOf(scene2d, unitKeys) {
|
|
|
8993
8993
|
return followers;
|
|
8994
8994
|
}
|
|
8995
8995
|
|
|
8996
|
-
function ownKeys$
|
|
8997
|
-
function _objectSpread$
|
|
8996
|
+
function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8997
|
+
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8998
8998
|
function _createForOfIteratorHelper$Z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
8999
8999
|
function _unsupportedIterableToArray$Z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Z(r, a) : void 0; } }
|
|
9000
9000
|
function _arrayLikeToArray$Z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -9363,7 +9363,7 @@ var createInteractionSlice = function createInteractionSlice(set, get) {
|
|
|
9363
9363
|
});
|
|
9364
9364
|
}, HELD_DRAG_TIMEOUT_MS);
|
|
9365
9365
|
set({
|
|
9366
|
-
heldDrag: moved ? _objectSpread$
|
|
9366
|
+
heldDrag: moved ? _objectSpread$q(_objectSpread$q({}, pose), {}, {
|
|
9367
9367
|
scene2d: scene2d
|
|
9368
9368
|
}) : null,
|
|
9369
9369
|
isDragging: false,
|
|
@@ -9596,8 +9596,8 @@ function prefersReducedMotion() {
|
|
|
9596
9596
|
return typeof window !== 'undefined' && !!((_window$matchMedia = (_window = window).matchMedia) !== null && _window$matchMedia !== void 0 && _window$matchMedia.call(_window, '(prefers-reduced-motion: reduce)').matches);
|
|
9597
9597
|
}
|
|
9598
9598
|
|
|
9599
|
-
function ownKeys$
|
|
9600
|
-
function _objectSpread$
|
|
9599
|
+
function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9600
|
+
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9601
9601
|
var LOG$q = getLogger('RealTimeViewer', 'detectDeviceTier');
|
|
9602
9602
|
var CACHE_KEY = 'rtv-detected-tier';
|
|
9603
9603
|
// Bumped whenever `classifyTier` changes, so a cache entry written by an older
|
|
@@ -9662,7 +9662,7 @@ function carriedRuntimeMemory() {
|
|
|
9662
9662
|
function writeCache(detected) {
|
|
9663
9663
|
try {
|
|
9664
9664
|
// Only ever reached when `readCache` found nothing usable: no entry, or one an older classifier wrote.
|
|
9665
|
-
var entry = _objectSpread$
|
|
9665
|
+
var entry = _objectSpread$p({
|
|
9666
9666
|
v: CACHE_VERSION,
|
|
9667
9667
|
detected: detected,
|
|
9668
9668
|
ts: Date.now()
|
|
@@ -9713,7 +9713,7 @@ function writeRuntimeTier(tier, direction) {
|
|
|
9713
9713
|
var runtimeReclimbed = reclimbedBefore || direction === 'up';
|
|
9714
9714
|
var runtimeLocked = live && entry.runtimeLocked === true || direction === 'down' && reclimbedBefore;
|
|
9715
9715
|
try {
|
|
9716
|
-
localStorage.setItem(CACHE_KEY, JSON.stringify(_objectSpread$
|
|
9716
|
+
localStorage.setItem(CACHE_KEY, JSON.stringify(_objectSpread$p(_objectSpread$p({}, entry), {}, {
|
|
9717
9717
|
runtimeTier: tier,
|
|
9718
9718
|
runtimeTierTs: Date.now(),
|
|
9719
9719
|
runtimeReclimbed: runtimeReclimbed,
|
|
@@ -9842,7 +9842,7 @@ function _detectDeviceTier() {
|
|
|
9842
9842
|
case 5:
|
|
9843
9843
|
return _context.abrupt("return", {
|
|
9844
9844
|
tier: urlOverride,
|
|
9845
|
-
signals: _objectSpread$
|
|
9845
|
+
signals: _objectSpread$p(_objectSpread$p({
|
|
9846
9846
|
gpu: {
|
|
9847
9847
|
tier: 3,
|
|
9848
9848
|
device: null
|
|
@@ -9868,7 +9868,7 @@ function _detectDeviceTier() {
|
|
|
9868
9868
|
}
|
|
9869
9869
|
return _context.abrupt("return", {
|
|
9870
9870
|
tier: cached.tier,
|
|
9871
|
-
signals: _objectSpread$
|
|
9871
|
+
signals: _objectSpread$p(_objectSpread$p({}, cached.signals), {}, {
|
|
9872
9872
|
source: 'cache'
|
|
9873
9873
|
})
|
|
9874
9874
|
});
|
|
@@ -9890,7 +9890,7 @@ function _detectDeviceTier() {
|
|
|
9890
9890
|
_navSignals = readNavigatorSignals();
|
|
9891
9891
|
return _context.abrupt("return", {
|
|
9892
9892
|
tier: _navSignals.isMobile ? 'mobileHigh' : 'high',
|
|
9893
|
-
signals: _objectSpread$
|
|
9893
|
+
signals: _objectSpread$p(_objectSpread$p({
|
|
9894
9894
|
// 0 = unknown: nothing was measured.
|
|
9895
9895
|
gpu: {
|
|
9896
9896
|
tier: 0,
|
|
@@ -9912,8 +9912,8 @@ function _detectDeviceTier() {
|
|
|
9912
9912
|
} else {
|
|
9913
9913
|
detected = {
|
|
9914
9914
|
tier: classified.tier,
|
|
9915
|
-
signals: _objectSpread$
|
|
9916
|
-
gpu: _objectSpread$
|
|
9915
|
+
signals: _objectSpread$p(_objectSpread$p({
|
|
9916
|
+
gpu: _objectSpread$p({
|
|
9917
9917
|
tier: gpu.tier,
|
|
9918
9918
|
device: classified.device
|
|
9919
9919
|
}, typeof gpu.fps === 'number' ? {
|
|
@@ -9940,8 +9940,8 @@ function _detectDeviceTier() {
|
|
|
9940
9940
|
return _detectDeviceTier.apply(this, arguments);
|
|
9941
9941
|
}
|
|
9942
9942
|
|
|
9943
|
-
function ownKeys$
|
|
9944
|
-
function _objectSpread$
|
|
9943
|
+
function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9944
|
+
function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9945
9945
|
function _createForOfIteratorHelper$Y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
9946
9946
|
function _unsupportedIterableToArray$Y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Y(r, a) : void 0; } }
|
|
9947
9947
|
function _arrayLikeToArray$Y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -10181,7 +10181,7 @@ var createPerformanceProfileSlice = function createPerformanceProfileSlice(set,
|
|
|
10181
10181
|
var cloned = structuredClone(existing);
|
|
10182
10182
|
var changed = clearProfileValueByPath(cloned, path);
|
|
10183
10183
|
if (!changed) return {};
|
|
10184
|
-
var nextProfiles = _objectSpread$
|
|
10184
|
+
var nextProfiles = _objectSpread$o(_objectSpread$o({}, s.profiles), {}, _defineProperty({}, tier, Object.keys(cloned).length > 0 ? cloned : undefined));
|
|
10185
10185
|
return {
|
|
10186
10186
|
profiles: nextProfiles,
|
|
10187
10187
|
resolvedEnvironment: reprojectEnvironment(s, {
|
|
@@ -10357,8 +10357,8 @@ function selectionScopeNames(rootName, getDescendants) {
|
|
|
10357
10357
|
function _createForOfIteratorHelper$W(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$W(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
10358
10358
|
function _unsupportedIterableToArray$W(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$W(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$W(r, a) : void 0; } }
|
|
10359
10359
|
function _arrayLikeToArray$W(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10360
|
-
function ownKeys$
|
|
10361
|
-
function _objectSpread$
|
|
10360
|
+
function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10361
|
+
function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10362
10362
|
var createPlannerUiSlice = function createPlannerUiSlice(set, get) {
|
|
10363
10363
|
return {
|
|
10364
10364
|
isPlannerMode: false,
|
|
@@ -10413,7 +10413,7 @@ var createPlannerUiSlice = function createPlannerUiSlice(set, get) {
|
|
|
10413
10413
|
setUiConfig: function setUiConfig(partial) {
|
|
10414
10414
|
return set(function (s) {
|
|
10415
10415
|
return {
|
|
10416
|
-
uiConfig: _objectSpread$
|
|
10416
|
+
uiConfig: _objectSpread$n(_objectSpread$n({}, s.uiConfig), partial)
|
|
10417
10417
|
};
|
|
10418
10418
|
});
|
|
10419
10419
|
},
|
|
@@ -10634,8 +10634,8 @@ var createDoorSwapSlice = function createDoorSwapSlice(set, get) {
|
|
|
10634
10634
|
};
|
|
10635
10635
|
};
|
|
10636
10636
|
|
|
10637
|
-
function ownKeys$
|
|
10638
|
-
function _objectSpread$
|
|
10637
|
+
function ownKeys$m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10638
|
+
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10639
10639
|
function _createForOfIteratorHelper$V(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$V(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
10640
10640
|
function _unsupportedIterableToArray$V(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$V(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$V(r, a) : void 0; } }
|
|
10641
10641
|
function _arrayLikeToArray$V(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -10848,7 +10848,7 @@ var createSceneSlice = function createSceneSlice(set, get) {
|
|
|
10848
10848
|
} finally {
|
|
10849
10849
|
_iterator5.f();
|
|
10850
10850
|
}
|
|
10851
|
-
set(_objectSpread$
|
|
10851
|
+
set(_objectSpread$m({
|
|
10852
10852
|
scene: scene,
|
|
10853
10853
|
elements: elements,
|
|
10854
10854
|
sceneMetrics: sceneMetrics,
|
|
@@ -10938,8 +10938,8 @@ function isMainPress(e) {
|
|
|
10938
10938
|
return e.isPrimary && e.button === 0;
|
|
10939
10939
|
}
|
|
10940
10940
|
|
|
10941
|
-
function ownKeys$
|
|
10942
|
-
function _objectSpread$
|
|
10941
|
+
function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10942
|
+
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10943
10943
|
var LOG$o = getLogger('RealTimeViewer', 'RTV-Next');
|
|
10944
10944
|
|
|
10945
10945
|
/**
|
|
@@ -11164,14 +11164,14 @@ var createSelectionSlice = function createSelectionSlice(set, get) {
|
|
|
11164
11164
|
var _getHostCallbacks$onA, _getHostCallbacks;
|
|
11165
11165
|
// Accessories route through the dedicated callback (not onElementSelected — the host keys
|
|
11166
11166
|
// them by parent/grid/cell, not a flat elementId).
|
|
11167
|
-
LOG$o.debug('selectElement (accessory):', _objectSpread$
|
|
11167
|
+
LOG$o.debug('selectElement (accessory):', _objectSpread$l(_objectSpread$l({
|
|
11168
11168
|
name: name,
|
|
11169
11169
|
parentSetName: parentSetName,
|
|
11170
11170
|
elementKey: elementKey
|
|
11171
11171
|
}, accPath), {}, {
|
|
11172
11172
|
click: click
|
|
11173
11173
|
}));
|
|
11174
|
-
(_getHostCallbacks$onA = (_getHostCallbacks = getHostCallbacks()).onAccessorySelect) === null || _getHostCallbacks$onA === void 0 || _getHostCallbacks$onA.call(_getHostCallbacks, _objectSpread$
|
|
11174
|
+
(_getHostCallbacks$onA = (_getHostCallbacks = getHostCallbacks()).onAccessorySelect) === null || _getHostCallbacks$onA === void 0 || _getHostCallbacks$onA.call(_getHostCallbacks, _objectSpread$l({
|
|
11175
11175
|
setId: parentSetName,
|
|
11176
11176
|
elementKey: elementKey
|
|
11177
11177
|
}, accPath));
|
|
@@ -11398,10 +11398,10 @@ var createViewModeSlice = function createViewModeSlice(set, get) {
|
|
|
11398
11398
|
};
|
|
11399
11399
|
};
|
|
11400
11400
|
|
|
11401
|
-
function ownKeys$
|
|
11402
|
-
function _objectSpread$
|
|
11401
|
+
function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11402
|
+
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11403
11403
|
var useRTVStore$1 = create()(subscribeWithSelector(function () {
|
|
11404
|
-
return _objectSpread$
|
|
11404
|
+
return _objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k(_objectSpread$k({}, createSceneSlice.apply(void 0, arguments)), createSelectionSlice.apply(void 0, arguments)), createInteractionSlice.apply(void 0, arguments)), createBlockedDragSlice.apply(void 0, arguments)), createPlannerOperationSlice.apply(void 0, arguments)), createViewModeSlice.apply(void 0, arguments)), createCameraSlice.apply(void 0, arguments)), createEnvironmentSlice.apply(void 0, arguments)), createAnalyzerGateSlice.apply(void 0, arguments)), createAssetErrorsSlice.apply(void 0, arguments)), createCaptureSlice.apply(void 0, arguments)), createPlannerUiSlice.apply(void 0, arguments)), createGLGenerationSlice.apply(void 0, arguments)), createVersionsSlice.apply(void 0, arguments)), createSceneLoadSlice.apply(void 0, arguments)), createDeckCutoutSlice.apply(void 0, arguments)), createDoorSwapSlice.apply(void 0, arguments)), createCoachSlice.apply(void 0, arguments)), createPerformanceProfileSlice.apply(void 0, arguments)), createAccessoryGridSlice.apply(void 0, arguments)), createAccessoryMoveSlice.apply(void 0, arguments)), createAccessoryDropSlice.apply(void 0, arguments)), createConfigSlice.apply(void 0, arguments));
|
|
11405
11405
|
}));
|
|
11406
11406
|
|
|
11407
11407
|
/** An average colour, each channel 0–1 as stored in the image. */
|
|
@@ -12379,8 +12379,8 @@ function applyRoomAo(material, surface) {
|
|
|
12379
12379
|
function _createForOfIteratorHelper$R(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$R(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12380
12380
|
function _unsupportedIterableToArray$R(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$R(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$R(r, a) : void 0; } }
|
|
12381
12381
|
function _arrayLikeToArray$R(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12382
|
-
function ownKeys$
|
|
12383
|
-
function _objectSpread$
|
|
12382
|
+
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12383
|
+
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12384
12384
|
var LOG$l = getLogger('RealTimeViewer', 'MaterialManager');
|
|
12385
12385
|
|
|
12386
12386
|
/** What the constructor service found in the 3D archive (`archiveLookup`); a service without it sends none. */
|
|
@@ -12510,10 +12510,10 @@ function withArchiveLookup(data, lookup, matAsset, reports) {
|
|
|
12510
12510
|
url: urls[0]
|
|
12511
12511
|
};
|
|
12512
12512
|
});
|
|
12513
|
-
var served = lookup.unavailableUrls.length > 0 ? _objectSpread$
|
|
12513
|
+
var served = lookup.unavailableUrls.length > 0 ? _objectSpread$j(_objectSpread$j({}, data), {}, {
|
|
12514
12514
|
unservedAssets: true
|
|
12515
12515
|
}) : data;
|
|
12516
|
-
var withMaps = missingMaps.length > 0 ? _objectSpread$
|
|
12516
|
+
var withMaps = missingMaps.length > 0 ? _objectSpread$j(_objectSpread$j({}, served), {}, {
|
|
12517
12517
|
missingMaps: missingMaps
|
|
12518
12518
|
}) : served;
|
|
12519
12519
|
var tiled = !!(matAsset.tileU && matAsset.tileV);
|
|
@@ -12524,11 +12524,11 @@ function withArchiveLookup(data, lookup, matAsset, reports) {
|
|
|
12524
12524
|
if (!lookup.missing) return missingMaps.some(function (_ref2) {
|
|
12525
12525
|
var slot = _ref2.slot;
|
|
12526
12526
|
return slot === 'map';
|
|
12527
|
-
}) ? _objectSpread$
|
|
12527
|
+
}) ? _objectSpread$j(_objectSpread$j({}, withMaps), baseTiling) : withMaps;
|
|
12528
12528
|
reportAndKeep(reports, function () {
|
|
12529
12529
|
return reportMissingMaterial(matAsset.name, archiveOf(matAsset));
|
|
12530
12530
|
});
|
|
12531
|
-
return _objectSpread$
|
|
12531
|
+
return _objectSpread$j(_objectSpread$j({}, withMaps), {}, {
|
|
12532
12532
|
missingInArchive: true
|
|
12533
12533
|
}, baseTiling);
|
|
12534
12534
|
}
|
|
@@ -12865,8 +12865,8 @@ function adoptPristineFadeState(mat) {
|
|
|
12865
12865
|
function _createForOfIteratorHelper$Q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12866
12866
|
function _unsupportedIterableToArray$Q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Q(r, a) : void 0; } }
|
|
12867
12867
|
function _arrayLikeToArray$Q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12868
|
-
function ownKeys$
|
|
12869
|
-
function _objectSpread$
|
|
12868
|
+
function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12869
|
+
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12870
12870
|
var LOG$k = getLogger('RealTimeViewer', 'CausticReceiver');
|
|
12871
12871
|
|
|
12872
12872
|
/**
|
|
@@ -13020,7 +13020,7 @@ function patchMaterialAsCausticReceiver(source, uniforms) {
|
|
|
13020
13020
|
// refresh can find them without walking Three's compiled-shader uniform
|
|
13021
13021
|
// map. `onBeforeCompile` assigns these same objects into `shader.uniforms`,
|
|
13022
13022
|
// so writing through either reference reaches the compiled program.
|
|
13023
|
-
patched.userData = _objectSpread$
|
|
13023
|
+
patched.userData = _objectSpread$i(_objectSpread$i({}, (_userData = patched.userData) !== null && _userData !== void 0 ? _userData : {}), {}, {
|
|
13024
13024
|
causticReceiverUniforms: receiverUniforms
|
|
13025
13025
|
});
|
|
13026
13026
|
patched[CAUSTIC_RECEIVER_FLAG] = true;
|
|
@@ -14967,8 +14967,8 @@ var FRAME_ORDER = {
|
|
|
14967
14967
|
SCREENSHOT_READBACK: 4
|
|
14968
14968
|
};
|
|
14969
14969
|
|
|
14970
|
-
function ownKeys$
|
|
14971
|
-
function _objectSpread$
|
|
14970
|
+
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14971
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14972
14972
|
function _createForOfIteratorHelper$J(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$J(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
14973
14973
|
function _unsupportedIterableToArray$J(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$J(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$J(r, a) : void 0; } }
|
|
14974
14974
|
function _arrayLikeToArray$J(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -15202,7 +15202,7 @@ function lendMirrorOverlays(from, to) {
|
|
|
15202
15202
|
var overlay = _step9.value;
|
|
15203
15203
|
to.add(overlay);
|
|
15204
15204
|
var entry = mirrorOverlays.get(overlay);
|
|
15205
|
-
if (entry) mirrorOverlays.set(overlay, _objectSpread$
|
|
15205
|
+
if (entry) mirrorOverlays.set(overlay, _objectSpread$h(_objectSpread$h({}, entry), {}, {
|
|
15206
15206
|
glass: to
|
|
15207
15207
|
}));
|
|
15208
15208
|
}
|
|
@@ -15223,7 +15223,7 @@ function lendMirrorOverlays(from, to) {
|
|
|
15223
15223
|
continue;
|
|
15224
15224
|
}
|
|
15225
15225
|
from.add(overlay);
|
|
15226
|
-
mirrorOverlays.set(overlay, _objectSpread$
|
|
15226
|
+
mirrorOverlays.set(overlay, _objectSpread$h(_objectSpread$h({}, entry), {}, {
|
|
15227
15227
|
glass: from
|
|
15228
15228
|
}));
|
|
15229
15229
|
}
|
|
@@ -15281,7 +15281,7 @@ function notePlaneRender(planeKey, render) {
|
|
|
15281
15281
|
} finally {
|
|
15282
15282
|
_iterator11.f();
|
|
15283
15283
|
}
|
|
15284
|
-
planeRenders.set(planeKey, _objectSpread$
|
|
15284
|
+
planeRenders.set(planeKey, _objectSpread$h(_objectSpread$h({}, render), {}, {
|
|
15285
15285
|
textureMatrix: render.textureMatrix.clone(),
|
|
15286
15286
|
matrixWorld: render.matrixWorld.clone()
|
|
15287
15287
|
}));
|
|
@@ -16030,8 +16030,8 @@ function MaterialCrossfadeClock() {
|
|
|
16030
16030
|
function _createForOfIteratorHelper$H(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$H(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
16031
16031
|
function _unsupportedIterableToArray$H(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$H(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$H(r, a) : void 0; } }
|
|
16032
16032
|
function _arrayLikeToArray$H(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16033
|
-
function ownKeys$
|
|
16034
|
-
function _objectSpread$
|
|
16033
|
+
function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16034
|
+
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16035
16035
|
var LOG$i = getLogger('RealTimeViewer', 'GeoInstance');
|
|
16036
16036
|
/** Latest load failure per geo URL: the suspense cache keeps only the null result, mounts report this. */
|
|
16037
16037
|
var geoLoadFailures = new Map();
|
|
@@ -16097,7 +16097,7 @@ function GeoLoader(props) {
|
|
|
16097
16097
|
});
|
|
16098
16098
|
useEffect(function () {
|
|
16099
16099
|
if (!failure) return;
|
|
16100
|
-
var error = _objectSpread$
|
|
16100
|
+
var error = _objectSpread$g({
|
|
16101
16101
|
kind: 'geo',
|
|
16102
16102
|
source: url,
|
|
16103
16103
|
message: failure.message
|
|
@@ -16106,7 +16106,7 @@ function GeoLoader(props) {
|
|
|
16106
16106
|
});
|
|
16107
16107
|
// Optional content: its fallback stands in.
|
|
16108
16108
|
if (optional) {
|
|
16109
|
-
useRTVStore$1.getState().reportAssetError(_objectSpread$
|
|
16109
|
+
useRTVStore$1.getState().reportAssetError(_objectSpread$g(_objectSpread$g({}, error), {}, {
|
|
16110
16110
|
severity: 'warning'
|
|
16111
16111
|
}));
|
|
16112
16112
|
return;
|
|
@@ -16125,7 +16125,7 @@ function GeoLoader(props) {
|
|
|
16125
16125
|
if (!gltf) return optional ? /*#__PURE__*/jsx(Fragment, {
|
|
16126
16126
|
children: fallback
|
|
16127
16127
|
}) : null;
|
|
16128
|
-
return /*#__PURE__*/jsx(GeoScene, _objectSpread$
|
|
16128
|
+
return /*#__PURE__*/jsx(GeoScene, _objectSpread$g(_objectSpread$g({}, props), {}, {
|
|
16129
16129
|
gltf: gltf
|
|
16130
16130
|
}));
|
|
16131
16131
|
}
|
|
@@ -16290,8 +16290,8 @@ function GeoScene(_ref2) {
|
|
|
16290
16290
|
|
|
16291
16291
|
var _excluded$5 = ["folder", "geo3DName", "idPrefix", "position", "rotation", "proxy", "label"],
|
|
16292
16292
|
_excluded2$2 = ["variantCodex", "preview"];
|
|
16293
|
-
function ownKeys$
|
|
16294
|
-
function _objectSpread$
|
|
16293
|
+
function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16294
|
+
function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16295
16295
|
function _callSuper$2(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
16296
16296
|
function _isNativeReflectConstruct$2() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16297
16297
|
function _createForOfIteratorHelper$G(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$G(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -16458,7 +16458,7 @@ function GlbWithProxy(_ref2) {
|
|
|
16458
16458
|
},
|
|
16459
16459
|
children: /*#__PURE__*/jsx(Suspense, {
|
|
16460
16460
|
fallback: proxy,
|
|
16461
|
-
children: /*#__PURE__*/jsx(GeoInstance, _objectSpread$
|
|
16461
|
+
children: /*#__PURE__*/jsx(GeoInstance, _objectSpread$f(_objectSpread$f({
|
|
16462
16462
|
geoRef: ref,
|
|
16463
16463
|
geoAssets: [asset]
|
|
16464
16464
|
}, geoProps), {}, {
|
|
@@ -16593,7 +16593,7 @@ function NestedPreview(_ref4) {
|
|
|
16593
16593
|
}, [summary, invalidate]);
|
|
16594
16594
|
return /*#__PURE__*/jsx(Fragment, {
|
|
16595
16595
|
children: pieces.map(function (piece) {
|
|
16596
|
-
return /*#__PURE__*/jsx(NestedPreviewMesh, _objectSpread$
|
|
16596
|
+
return /*#__PURE__*/jsx(NestedPreviewMesh, _objectSpread$f({
|
|
16597
16597
|
piece: piece
|
|
16598
16598
|
}, rest), "".concat(piece.cell.gridName, ".").concat(piece.cell.cellIdx, ":").concat(piece.articleCodex));
|
|
16599
16599
|
})
|
|
@@ -17205,8 +17205,8 @@ var toolbarRow = "toolbar-row-IPYtC";
|
|
|
17205
17205
|
var css_248z$5 = "/* One-shot fade-in for the billboards. They mount the moment a 2D↔3D fly\n settles (gated on `!viewModeTransitioning`), so this plays exactly when the\n buttons reappear after the transition — no JS timing needed. */\n@keyframes rtvOverlayFadeIn--cHFl {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n.pos-nr-badge-Snzgu {\n pointer-events: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n box-sizing: border-box;\n width: 22px;\n height: 22px;\n min-width: 22px;\n min-height: 22px;\n padding: 0;\n aspect-ratio: 1 / 1;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 11px;\n font-weight: 600;\n font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;\n line-height: 1;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);\n cursor: pointer;\n border: none;\n transition: background 0.15s, transform 0.15s;\n}\n\n.pos-nr-badge-standard-xNUE4 {\n background: #dfdfdf;\n color: #111;\n}\n\n.pos-nr-badge-gold-3Cn3W {\n border-radius: 2px;\n background: #dfdfdf;\n color: #111;\n}\n\n.pos-nr-badge-selected-3YPyP {\n background: #db3433;\n background: var(--diva-theme-palette-primary-main, #db3433);\n color: #fff;\n}\n\n.pos-nr-badge-unselectable-qXZTj {\n background: transparent;\n color: rgb(175, 172, 172);\n cursor: default;\n box-shadow: none;\n}\n\n.pos-nr-badge-hidden-3d4fU {\n display: none;\n}\n\n.pos-nr-badge-hover-GMJaj:hover:not(.pos-nr-badge-selected-3YPyP):not(.pos-nr-badge-unselectable-qXZTj) {\n background: #e8e8e8;\n background: var(--diva-theme-palette-primary-light, #e8e8e8);\n transform: scale(1.05);\n}\n\n/* Billboard wrapper for the trash and directional copy buttons. */\n.overlay-wrap-87mtA {\n pointer-events: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n animation: rtvOverlayFadeIn--cHFl 0.35s ease-out;\n}\n\n/* Chrome-less arrow button for the directional copy buttons — matches the old\n RTV's bare 20x40 arrow glyph (no circle, no border, no shadow). */\n.copy-arrow-btn-XjFZc {\n box-sizing: content-box;\n width: 20px;\n height: 40px;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.15s;\n}\n\n/* Hover devices only: on iOS a :hover effect makes the first tap a hover, and only a second one clicks. */\n@media (hover: hover) {\n .copy-arrow-btn-XjFZc:hover {\n transform: scale(1.1);\n }\n}\n\n/* A finger needs more than the 20x40 glyph: a larger, invisible hit area around the same visual. */\n@media (pointer: coarse) {\n .copy-arrow-btn-XjFZc {\n padding: 12px;\n margin: -12px;\n touch-action: manipulation;\n }\n}\n\n.button-rmNZf {\n box-sizing: border-box;\n width: 22px;\n height: 22px;\n border-radius: 50%;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: rgba(255, 255, 255, 0.94);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #333;\n color: var(--diva-theme-palette-primary-dark, #333);\n transition: background 0.15s, border-color 0.15s, transform 0.15s;\n padding: 0;\n}\n\n.button-rmNZf:hover {\n background: #fff;\n border-color: rgba(0, 0, 0, 0.12);\n border-color: var(--diva-theme-palette-primary-main, rgba(0, 0, 0, 0.12));\n transform: scale(1.08);\n}\n\n.button-rmNZf:active {\n transform: scale(0.96);\n}\n\n/* The host is still answering a move, add or delete: the button waits for it. */\n.button-rmNZf:disabled,\n.copy-arrow-btn-XjFZc:disabled {\n opacity: 0.4;\n cursor: progress;\n transform: none;\n}\n\n/* Phones draw the chrome smaller than a fingertip: an invisible ring keeps the hit target. */\n@media (pointer: coarse) {\n .button-rmNZf,\n .pos-nr-badge-Snzgu {\n position: relative;\n }\n .button-rmNZf::after,\n .pos-nr-badge-Snzgu::after {\n content: '';\n position: absolute;\n top: -8px;\n right: -8px;\n bottom: -8px;\n left: -8px;\n }\n}\n\n.article-tooltip-uiY9n {\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n white-space: nowrap;\n font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;\n font-size: 10px;\n font-weight: 500;\n line-height: 1.2;\n padding: 2px 5px;\n border-radius: 3px;\n background: rgba(30, 30, 30, 0.85);\n color: #f0f0f0;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);\n margin-top: 3px;\n}\n\n.primary-group-N4ocr {\n display: flex;\n align-items: center;\n gap: 3px;\n pointer-events: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n animation: rtvOverlayFadeIn--cHFl 0.35s ease-out;\n}\n\n.group-down-144Ep { flex-direction: column; }\n.group-up-i-uhH { flex-direction: column-reverse; }\n.group-right-dt8dl { flex-direction: row; }\n.group-left-ZGK9o { flex-direction: row-reverse; }\n\n.toolbar-row-IPYtC {\n display: flex;\n gap: 2px;\n}\n";
|
|
17206
17206
|
styleInject(css_248z$5);
|
|
17207
17207
|
|
|
17208
|
-
function ownKeys$
|
|
17209
|
-
function _objectSpread$
|
|
17208
|
+
function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17209
|
+
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17210
17210
|
function _createForOfIteratorHelper$E(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$E(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
17211
17211
|
function _unsupportedIterableToArray$E(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$E(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$E(r, a) : void 0; } }
|
|
17212
17212
|
function _arrayLikeToArray$E(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -17566,7 +17566,7 @@ function ElementOverlay(_ref) {
|
|
|
17566
17566
|
if (accPath) {
|
|
17567
17567
|
if (!sendOperation('delete', function () {
|
|
17568
17568
|
var _callbacks$onAccessor;
|
|
17569
|
-
return (_callbacks$onAccessor = callbacks.onAccessoryDelete) === null || _callbacks$onAccessor === void 0 ? void 0 : _callbacks$onAccessor.call(callbacks, _objectSpread$
|
|
17569
|
+
return (_callbacks$onAccessor = callbacks.onAccessoryDelete) === null || _callbacks$onAccessor === void 0 ? void 0 : _callbacks$onAccessor.call(callbacks, _objectSpread$e({
|
|
17570
17570
|
setId: setId,
|
|
17571
17571
|
elementKey: elementKey
|
|
17572
17572
|
}, accPath));
|
|
@@ -17753,8 +17753,8 @@ function clearCursors() {
|
|
|
17753
17753
|
}
|
|
17754
17754
|
|
|
17755
17755
|
var _excluded$3 = ["box", "opacity"];
|
|
17756
|
-
function ownKeys$
|
|
17757
|
-
function _objectSpread$
|
|
17756
|
+
function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17757
|
+
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17758
17758
|
/** Fill and edge colour of a free place: a shelf cell. */
|
|
17759
17759
|
var PLACEMENT_FILL = '#9a9a9a';
|
|
17760
17760
|
var PLACEMENT_EDGE = '#26264c';
|
|
@@ -17767,7 +17767,7 @@ function PlacementBox(_ref) {
|
|
|
17767
17767
|
_ref$opacity = _ref.opacity,
|
|
17768
17768
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
17769
17769
|
handlers = _objectWithoutProperties(_ref, _excluded$3);
|
|
17770
|
-
return /*#__PURE__*/jsxs("mesh", _objectSpread$
|
|
17770
|
+
return /*#__PURE__*/jsxs("mesh", _objectSpread$d(_objectSpread$d({
|
|
17771
17771
|
position: box.localPosition,
|
|
17772
17772
|
rotation: [0, box.rotationY, 0]
|
|
17773
17773
|
}, handlers), {}, {
|
|
@@ -18060,8 +18060,8 @@ function replayPressToControls(down, at) {
|
|
|
18060
18060
|
target.dispatchEvent(replay);
|
|
18061
18061
|
}
|
|
18062
18062
|
|
|
18063
|
-
function ownKeys$
|
|
18064
|
-
function _objectSpread$
|
|
18063
|
+
function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18064
|
+
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18065
18065
|
|
|
18066
18066
|
/** Distance (m) below which a surface and a proxy box face count as touching: a basket resting on its carrier panel. */
|
|
18067
18067
|
var TOUCH_EPSILON = 1e-3;
|
|
@@ -18252,7 +18252,7 @@ function createRTVPointerEvents(getState) {
|
|
|
18252
18252
|
});
|
|
18253
18253
|
};
|
|
18254
18254
|
return function (store) {
|
|
18255
|
-
return _objectSpread$
|
|
18255
|
+
return _objectSpread$c(_objectSpread$c({}, events(store)), {}, {
|
|
18256
18256
|
filter: filter
|
|
18257
18257
|
});
|
|
18258
18258
|
};
|
|
@@ -20587,7 +20587,7 @@ function AccessoryDropController() {
|
|
|
20587
20587
|
}
|
|
20588
20588
|
|
|
20589
20589
|
var loadChunk$1 = memoChunk(function () {
|
|
20590
|
-
return import('./doorSwapChunk-
|
|
20590
|
+
return import('./doorSwapChunk-6af4d939.js');
|
|
20591
20591
|
});
|
|
20592
20592
|
|
|
20593
20593
|
/** Starts the door swap chunk download; idempotent. */
|
|
@@ -20757,8 +20757,8 @@ function whenIdle(task) {
|
|
|
20757
20757
|
};
|
|
20758
20758
|
}
|
|
20759
20759
|
|
|
20760
|
-
function ownKeys$
|
|
20761
|
-
function _objectSpread$
|
|
20760
|
+
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20761
|
+
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20762
20762
|
/*
|
|
20763
20763
|
* Chunk boundary for the coach hints. `coachSession`, `useCoachHint`, `coachDom` and `CoachFrameSync` stay in the main
|
|
20764
20764
|
* chunk: the door swap and hosts read the session, and the frame sync runs inside the canvas.
|
|
@@ -20766,7 +20766,7 @@ function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
20766
20766
|
|
|
20767
20767
|
/** One chunk request for the viewer's hints and every host mark. */
|
|
20768
20768
|
var loadChunk = memoChunk(function () {
|
|
20769
|
-
return import('./coachChunk-
|
|
20769
|
+
return import('./coachChunk-5f8a8ec6.js');
|
|
20770
20770
|
});
|
|
20771
20771
|
var loadHints = function loadHints() {
|
|
20772
20772
|
return loadChunk().then(function (m) {
|
|
@@ -20784,7 +20784,7 @@ var loadMark = function loadMark() {
|
|
|
20784
20784
|
return {
|
|
20785
20785
|
"default": function LazyCoachMark() {
|
|
20786
20786
|
var props = useContext(MarkPropsContext);
|
|
20787
|
-
return props && /*#__PURE__*/jsx(Mark, _objectSpread$
|
|
20787
|
+
return props && /*#__PURE__*/jsx(Mark, _objectSpread$b({}, props));
|
|
20788
20788
|
}
|
|
20789
20789
|
};
|
|
20790
20790
|
});
|
|
@@ -21682,8 +21682,8 @@ function frameGeoObject(obj, baseAngle, padding, aspect) {
|
|
|
21682
21682
|
function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
21683
21683
|
function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0; } }
|
|
21684
21684
|
function _arrayLikeToArray$w(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21685
|
-
function ownKeys$
|
|
21686
|
-
function _objectSpread$
|
|
21685
|
+
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21686
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21687
21687
|
var DEG_TO_RAD$4 = Math.PI / 180;
|
|
21688
21688
|
|
|
21689
21689
|
/**
|
|
@@ -21742,7 +21742,7 @@ function computeCamera2D(ctx) {
|
|
|
21742
21742
|
var box = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ctx.bounds2d;
|
|
21743
21743
|
var padding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (_ctx$cameraConfig$ini = ctx.cameraConfig.initialZoomPadding2D) !== null && _ctx$cameraConfig$ini !== void 0 ? _ctx$cameraConfig$ini : DEFAULT_CAMERA_CONFIG.initialZoomPadding2D;
|
|
21744
21744
|
var room = box === ctx.bounds2d && isFinitePlanBox(ctx.roomBounds2d) ? ctx.roomBounds2d : null;
|
|
21745
|
-
if (room) return computeCamera2D(_objectSpread$
|
|
21745
|
+
if (room) return computeCamera2D(_objectSpread$a(_objectSpread$a({}, ctx), {}, {
|
|
21746
21746
|
roomBounds2d: undefined
|
|
21747
21747
|
}), unionPlanBoxes(room, planBoxWithExtent(box)), 1);
|
|
21748
21748
|
// A box that is not fully finite would NaN the camera position: the scene centre and radius stand in.
|
|
@@ -21763,6 +21763,97 @@ function computeCamera2D(ctx) {
|
|
|
21763
21763
|
};
|
|
21764
21764
|
}
|
|
21765
21765
|
|
|
21766
|
+
/** Passes `boundsWithDimensionRows` takes at most. */
|
|
21767
|
+
var MAX_FRAMING_PASSES = 20;
|
|
21768
|
+
/** How far (m) a row built for the framed viewport may stand past the bounds and still count as fitting. */
|
|
21769
|
+
var FRAMING_TOLERANCE = 1e-4;
|
|
21770
|
+
|
|
21771
|
+
/** A 2D dimension row as the builders describe it: the measured run (meters), drawn `offset` m along `offsetDirection`. */
|
|
21772
|
+
|
|
21773
|
+
/**
|
|
21774
|
+
* How the dimension labels are sized: authored world size, kept at least `screenFraction` of the viewport height and
|
|
21775
|
+
* `minFontPx` of a `canvasHeightPx` high canvas (as `useLabelScale`), at most `maxScale` × the authored size.
|
|
21776
|
+
*/
|
|
21777
|
+
|
|
21778
|
+
/**
|
|
21779
|
+
* The 2D bounds (cm, like `RTVScene2D.boundingBox`) grown to take in the dimension rows and their values, so a
|
|
21780
|
+
* framing from them cuts no row off. A value can stand outside its row (rotated height values) or past a short run's
|
|
21781
|
+
* end. The rows (`rowsFor`, built for a viewport height in m: their pitch follows the zoom) and the value size follow
|
|
21782
|
+
* the viewport, which follows the framing: the passes repeat until the rows built for the framed viewport fit the bounds.
|
|
21783
|
+
* Rows that grow faster than the viewport (a tiny canvas) never fit: the passes stop once a pass grows the bounds no
|
|
21784
|
+
* less than the one before, so the bounds stay near the plan instead of running away.
|
|
21785
|
+
*/
|
|
21786
|
+
function boundsWithDimensionRows(bounds, rowsFor, ctx, labels) {
|
|
21787
|
+
var _ctx$cameraConfig$ini2;
|
|
21788
|
+
var base = {
|
|
21789
|
+
minX: (bounds.x - bounds.width / 2) / 100,
|
|
21790
|
+
maxX: (bounds.x + bounds.width / 2) / 100,
|
|
21791
|
+
minZ: (bounds.z - bounds.depth / 2) / 100,
|
|
21792
|
+
maxZ: (bounds.z + bounds.depth / 2) / 100
|
|
21793
|
+
};
|
|
21794
|
+
var padding = (_ctx$cameraConfig$ini2 = ctx.cameraConfig.initialZoomPadding2D) !== null && _ctx$cameraConfig$ini2 !== void 0 ? _ctx$cameraConfig$ini2 : DEFAULT_CAMERA_CONFIG.initialZoomPadding2D;
|
|
21795
|
+
// the viewport a framing of these extents gets (same math as computeCamera2D)
|
|
21796
|
+
var viewportOf = function viewportOf(b) {
|
|
21797
|
+
return Math.max(b.maxZ - b.minZ, (b.maxX - b.minX) / ctx.aspect) * padding;
|
|
21798
|
+
};
|
|
21799
|
+
var pxToViewport = labels.minFontPx != null && labels.canvasHeightPx && labels.canvasHeightPx > 0 ? labels.minFontPx / labels.canvasHeightPx : 0;
|
|
21800
|
+
var grown = base;
|
|
21801
|
+
var lastGrowth = Infinity;
|
|
21802
|
+
for (var pass = 0; pass < MAX_FRAMING_PASSES; pass++) {
|
|
21803
|
+
var viewportHeight = viewportOf(grown);
|
|
21804
|
+
var rows = rowsFor(viewportHeight);
|
|
21805
|
+
if (rows.length === 0) return bounds;
|
|
21806
|
+
var minLabelSize = viewportHeight * Math.max(labels.screenFraction, pxToViewport);
|
|
21807
|
+
var labelSize = labels.worldSize * Math.min(labels.maxScale, Math.max(1, minLabelSize / labels.worldSize));
|
|
21808
|
+
var next = _objectSpread$a({}, base);
|
|
21809
|
+
var _iterator = _createForOfIteratorHelper$w(rows),
|
|
21810
|
+
_step;
|
|
21811
|
+
try {
|
|
21812
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
21813
|
+
var row = _step.value;
|
|
21814
|
+
var ox = row.offsetDirection[0] * row.offset,
|
|
21815
|
+
oz = row.offsetDirection[1] * row.offset;
|
|
21816
|
+
var runX = row.end[0] - row.start[0];
|
|
21817
|
+
var runZ = row.end[1] - row.start[1];
|
|
21818
|
+
var len = Math.hypot(runX, runZ) || 1;
|
|
21819
|
+
// outward: a value may stand beside its row; along: a short run's value floats past its ends
|
|
21820
|
+
var out = labelSize * 1.5;
|
|
21821
|
+
var along = len < labelSize * 6 ? labelSize * 4 : 0;
|
|
21822
|
+
for (var _i = 0, _arr = [row.start, row.end]; _i < _arr.length; _i++) {
|
|
21823
|
+
var _arr$_i = _slicedToArray(_arr[_i], 2),
|
|
21824
|
+
px = _arr$_i[0],
|
|
21825
|
+
pz = _arr$_i[1];
|
|
21826
|
+
for (var _i2 = 0, _arr2 = [-along, along]; _i2 < _arr2.length; _i2++) {
|
|
21827
|
+
var t = _arr2[_i2];
|
|
21828
|
+
var x = px + ox + row.offsetDirection[0] * out + runX / len * t;
|
|
21829
|
+
var z = pz + oz + row.offsetDirection[1] * out + runZ / len * t;
|
|
21830
|
+
next.minX = Math.min(next.minX, x);
|
|
21831
|
+
next.maxX = Math.max(next.maxX, x);
|
|
21832
|
+
next.minZ = Math.min(next.minZ, z);
|
|
21833
|
+
next.maxZ = Math.max(next.maxZ, z);
|
|
21834
|
+
}
|
|
21835
|
+
}
|
|
21836
|
+
}
|
|
21837
|
+
} catch (err) {
|
|
21838
|
+
_iterator.e(err);
|
|
21839
|
+
} finally {
|
|
21840
|
+
_iterator.f();
|
|
21841
|
+
}
|
|
21842
|
+
var fits = next.minX >= grown.minX - FRAMING_TOLERANCE && next.maxX <= grown.maxX + FRAMING_TOLERANCE && next.minZ >= grown.minZ - FRAMING_TOLERANCE && next.maxZ <= grown.maxZ + FRAMING_TOLERANCE;
|
|
21843
|
+
if (fits) break;
|
|
21844
|
+
var growth = Math.max(grown.minX - next.minX, next.maxX - grown.maxX, grown.minZ - next.minZ, next.maxZ - grown.maxZ);
|
|
21845
|
+
if (growth >= lastGrowth) break;
|
|
21846
|
+
lastGrowth = growth;
|
|
21847
|
+
grown = next;
|
|
21848
|
+
}
|
|
21849
|
+
return {
|
|
21850
|
+
x: (grown.minX + grown.maxX) / 2 * 100,
|
|
21851
|
+
z: (grown.minZ + grown.maxZ) / 2 * 100,
|
|
21852
|
+
width: (grown.maxX - grown.minX) * 100,
|
|
21853
|
+
depth: (grown.maxZ - grown.minZ) * 100
|
|
21854
|
+
};
|
|
21855
|
+
}
|
|
21856
|
+
|
|
21766
21857
|
/** The plan box when it is finite and has an extent, else null. */
|
|
21767
21858
|
function planBoxWithExtent(box) {
|
|
21768
21859
|
return isFinitePlanBox(box) && (box.width > 0 || box.depth > 0) ? box : null;
|
|
@@ -21817,7 +21908,7 @@ function frameObject(ctx, obj, baseAngle, padding, elevationOverrideDeg) {
|
|
|
21817
21908
|
}, occluders,
|
|
21818
21909
|
// Moved in, the camera must still get the whole element into the picture.
|
|
21819
21910
|
boxFitDistance(bbox, center, preferred, ctx.aspect, fovDegOf(ctx.cameraConfig)), MIN_COLLISION_CLEARANCE);
|
|
21820
|
-
return _objectSpread$
|
|
21911
|
+
return _objectSpread$a(_objectSpread$a({}, frameAt(view.angle)), {}, {
|
|
21821
21912
|
pullIn: view.pullIn
|
|
21822
21913
|
});
|
|
21823
21914
|
}
|
|
@@ -21903,17 +21994,17 @@ function contentBoxOf(root, insideElement) {
|
|
|
21903
21994
|
found = true;
|
|
21904
21995
|
}
|
|
21905
21996
|
}
|
|
21906
|
-
var
|
|
21907
|
-
|
|
21997
|
+
var _iterator2 = _createForOfIteratorHelper$w(obj.children),
|
|
21998
|
+
_step2;
|
|
21908
21999
|
try {
|
|
21909
|
-
for (
|
|
21910
|
-
var child =
|
|
22000
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
22001
|
+
var child = _step2.value;
|
|
21911
22002
|
_visit(child, inElement);
|
|
21912
22003
|
}
|
|
21913
22004
|
} catch (err) {
|
|
21914
|
-
|
|
22005
|
+
_iterator2.e(err);
|
|
21915
22006
|
} finally {
|
|
21916
|
-
|
|
22007
|
+
_iterator2.f();
|
|
21917
22008
|
}
|
|
21918
22009
|
};
|
|
21919
22010
|
_visit(root, insideElement);
|
|
@@ -21956,13 +22047,13 @@ function projectedFramingRadius(box, center, angle, aspect, halfTan) {
|
|
|
21956
22047
|
return radius;
|
|
21957
22048
|
}
|
|
21958
22049
|
function frameScene(ctx, baseAngle) {
|
|
21959
|
-
var _ctx$cameraConfig$
|
|
22050
|
+
var _ctx$cameraConfig$ini3, _ctx$cameraConfig$ini4;
|
|
21960
22051
|
// With content present, the look-at target is the centroid of the placed elements: X/Z from the
|
|
21961
22052
|
// content box center (so the overview frames the actual furniture, not the world origin), Y at
|
|
21962
22053
|
// `focusHeightFraction` of the content height. The configured scene-center / `initialTargetHeight`
|
|
21963
22054
|
// only apply as a fallback for an empty planning.
|
|
21964
22055
|
var contentBox = sceneContentBox(ctx.threeScene);
|
|
21965
|
-
var padding = (_ctx$cameraConfig$
|
|
22056
|
+
var padding = (_ctx$cameraConfig$ini3 = ctx.cameraConfig.initialZoomPadding3D) !== null && _ctx$cameraConfig$ini3 !== void 0 ? _ctx$cameraConfig$ini3 : DEFAULT_CAMERA_CONFIG.initialZoomPadding3D;
|
|
21966
22057
|
if (contentBox) {
|
|
21967
22058
|
var _ctx$cameraConfig$foc6, _ctx$cameraConfig$foc7;
|
|
21968
22059
|
var fraction = (_ctx$cameraConfig$foc6 = ctx.cameraConfig.focusHeightFraction) !== null && _ctx$cameraConfig$foc6 !== void 0 ? _ctx$cameraConfig$foc6 : DEFAULT_CAMERA_CONFIG.focusHeightFraction;
|
|
@@ -21980,7 +22071,7 @@ function frameScene(ctx, baseAngle) {
|
|
|
21980
22071
|
aspectResolved: true
|
|
21981
22072
|
};
|
|
21982
22073
|
}
|
|
21983
|
-
var h = (_ctx$cameraConfig$
|
|
22074
|
+
var h = (_ctx$cameraConfig$ini4 = ctx.cameraConfig.initialTargetHeight) !== null && _ctx$cameraConfig$ini4 !== void 0 ? _ctx$cameraConfig$ini4 : DEFAULT_CAMERA_CONFIG.initialTargetHeight;
|
|
21984
22075
|
var center = new Vector3(ctx.sceneCenter[0], ctx.sceneCenter[1] + h, ctx.sceneCenter[2]);
|
|
21985
22076
|
return {
|
|
21986
22077
|
center: center,
|
|
@@ -22014,7 +22105,7 @@ function computeCamera3DAtAngle(ctx, azimuth, elevation, paddingScale) {
|
|
|
22014
22105
|
azimuth: azimuth,
|
|
22015
22106
|
elevation: elevation
|
|
22016
22107
|
});
|
|
22017
|
-
return frameToResult(_objectSpread$
|
|
22108
|
+
return frameToResult(_objectSpread$a(_objectSpread$a({}, frame), {}, {
|
|
22018
22109
|
padding: frame.padding * (paddingScale !== null && paddingScale !== void 0 ? paddingScale : 1)
|
|
22019
22110
|
}), ctx.aspect, ctx.cameraConfig);
|
|
22020
22111
|
}
|
|
@@ -22039,7 +22130,7 @@ function repivotPose(ctx, pose, pivot, fitBox) {
|
|
|
22039
22130
|
var pulledIn = pose.pulledIn ? {
|
|
22040
22131
|
pulledIn: true
|
|
22041
22132
|
} : {};
|
|
22042
|
-
if (distance < 1e-6) return _objectSpread$
|
|
22133
|
+
if (distance < 1e-6) return _objectSpread$a({
|
|
22043
22134
|
position: pose.position.clone(),
|
|
22044
22135
|
target: pivot.clone()
|
|
22045
22136
|
}, pulledIn);
|
|
@@ -22051,7 +22142,7 @@ function repivotPose(ctx, pose, pivot, fitBox) {
|
|
|
22051
22142
|
var around = projectedFramingRadius(fitBox, pose.target, angle, ctx.aspect, halfTan);
|
|
22052
22143
|
if (around > 1e-6) scale = projectedFramingRadius(fitBox, pivot, angle, ctx.aspect, halfTan) / around;
|
|
22053
22144
|
}
|
|
22054
|
-
return _objectSpread$
|
|
22145
|
+
return _objectSpread$a({
|
|
22055
22146
|
position: pivot.clone().addScaledVector(dir, distance * scale),
|
|
22056
22147
|
target: pivot.clone()
|
|
22057
22148
|
}, pulledIn);
|
|
@@ -22103,7 +22194,7 @@ function frameToResult(frame, aspect, cfg) {
|
|
|
22103
22194
|
if (aspect < 1 && !frame.aspectResolved) dist /= aspect;
|
|
22104
22195
|
dist *= frame.padding;
|
|
22105
22196
|
var pullIn = (_frame$pullIn = frame.pullIn) !== null && _frame$pullIn !== void 0 ? _frame$pullIn : 0;
|
|
22106
|
-
return _objectSpread$
|
|
22197
|
+
return _objectSpread$a({
|
|
22107
22198
|
position: sphericalPosition(frame.center, frame.angle, dist - pullIn),
|
|
22108
22199
|
target: frame.center.clone()
|
|
22109
22200
|
}, pullIn > 0 ? {
|
|
@@ -22116,8 +22207,8 @@ function frameToResult(frame, aspect, cfg) {
|
|
|
22116
22207
|
* a specific element, or a specific geo within an element.
|
|
22117
22208
|
*/
|
|
22118
22209
|
function computeCamera3D(ctx, elementName, geoName, elevationOverrideDeg, paddingScale) {
|
|
22119
|
-
var _ctx$cameraConfig$
|
|
22120
|
-
var baseAngle = (_ctx$cameraConfig$
|
|
22210
|
+
var _ctx$cameraConfig$ini5;
|
|
22211
|
+
var baseAngle = (_ctx$cameraConfig$ini5 = ctx.cameraConfig.initialAngle) !== null && _ctx$cameraConfig$ini5 !== void 0 ? _ctx$cameraConfig$ini5 : DEFAULT_CAMERA_CONFIG.initialAngle;
|
|
22121
22212
|
if (elementName) {
|
|
22122
22213
|
var frame = frameElement(ctx, elementName, geoName, baseAngle, elevationOverrideDeg, paddingScale);
|
|
22123
22214
|
if (frame) return frameToResult(frame, ctx.aspect, ctx.cameraConfig);
|
|
@@ -22155,7 +22246,7 @@ function planningMaxDistance(ctx, configuredMax) {
|
|
|
22155
22246
|
function planningPresetLimits(ctx) {
|
|
22156
22247
|
var _limits$maxDistance;
|
|
22157
22248
|
var limits = ctx.cameraConfig.limits;
|
|
22158
|
-
return _objectSpread$
|
|
22249
|
+
return _objectSpread$a(_objectSpread$a({}, limits), {}, {
|
|
22159
22250
|
maxDistance: planningMaxDistance(ctx, (_limits$maxDistance = limits === null || limits === void 0 ? void 0 : limits.maxDistance) !== null && _limits$maxDistance !== void 0 ? _limits$maxDistance : DEFAULT_CAMERA_CONFIG.limits.maxDistance)
|
|
22160
22251
|
});
|
|
22161
22252
|
}
|
|
@@ -22178,10 +22269,10 @@ function firstElementName(scene) {
|
|
|
22178
22269
|
* Falls back to the standard scene framing when the element is gone (e.g. just deleted).
|
|
22179
22270
|
*/
|
|
22180
22271
|
function computeCamera3DSceneFrontOn(ctx, elementName, elevationOverrideDeg) {
|
|
22181
|
-
var _ctx$cameraConfig$
|
|
22272
|
+
var _ctx$cameraConfig$ini6, _ref3;
|
|
22182
22273
|
var obj = ctx.threeScene.getObjectByName(elementName);
|
|
22183
22274
|
if (!obj) return computeCamera3D(ctx);
|
|
22184
|
-
var baseAngle = (_ctx$cameraConfig$
|
|
22275
|
+
var baseAngle = (_ctx$cameraConfig$ini6 = ctx.cameraConfig.initialAngle) !== null && _ctx$cameraConfig$ini6 !== void 0 ? _ctx$cameraConfig$ini6 : DEFAULT_CAMERA_CONFIG.initialAngle;
|
|
22185
22276
|
var elevation = (_ref3 = elevationOverrideDeg !== null && elevationOverrideDeg !== void 0 ? elevationOverrideDeg : ctx.cameraConfig.sceneFrontOnElevation) !== null && _ref3 !== void 0 ? _ref3 : baseAngle.elevation;
|
|
22186
22277
|
return computeCamera3DAtAngle(ctx, worldYawDeg(obj), elevation);
|
|
22187
22278
|
}
|
|
@@ -22711,8 +22802,8 @@ function useContinuousFrames(active, reason) {
|
|
|
22711
22802
|
}, [active, reason]);
|
|
22712
22803
|
}
|
|
22713
22804
|
|
|
22714
|
-
function ownKeys$
|
|
22715
|
-
function _objectSpread$
|
|
22805
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22806
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22716
22807
|
var CAM_LOG$1 = getLogger('RealTimeViewer', 'useCameraAnimation');
|
|
22717
22808
|
|
|
22718
22809
|
/** s: the most a flight advances in one frame by the wall clock, so frames resuming after a pause do not jump it. */
|
|
@@ -22785,7 +22876,7 @@ baseFov) {
|
|
|
22785
22876
|
cancelAutoRotateRef.current();
|
|
22786
22877
|
var currentTarget = (_controlsRef$current$ = (_controlsRef$current = controlsRef.current) === null || _controlsRef$current === void 0 ? void 0 : _controlsRef$current.target.clone()) !== null && _controlsRef$current$ !== void 0 ? _controlsRef$current$ : new Vector3();
|
|
22787
22878
|
lastTarget.current.copy(currentTarget); // seed so frame-1 target velocity isn't a spike
|
|
22788
|
-
var fullRequest = _objectSpread$
|
|
22879
|
+
var fullRequest = _objectSpread$9({
|
|
22789
22880
|
duration: 0.6,
|
|
22790
22881
|
easing: 'smoothstep'
|
|
22791
22882
|
}, request);
|
|
@@ -27298,12 +27389,22 @@ var EXT_WIDTH = {
|
|
|
27298
27389
|
var CAPTURE_SCREEN_FRACTION = 0.019;
|
|
27299
27390
|
|
|
27300
27391
|
/**
|
|
27301
|
-
* Multiplier on `fontSize`:
|
|
27302
|
-
*
|
|
27303
|
-
* stays clear of the arrowheads.
|
|
27392
|
+
* Multiplier on `fontSize`: a value on a run shorter than this stays inside only if it fits at
|
|
27393
|
+
* `MIN_INLINE_SCALE` or more (shrunk to fit); otherwise it floats beside the run.
|
|
27304
27394
|
*/
|
|
27305
27395
|
var MIN_INLINE_LENGTH_FACTOR = 3;
|
|
27306
27396
|
|
|
27397
|
+
/** Smallest share of `fontSize` a value may shrink to so it still fits inside a short run. */
|
|
27398
|
+
var MIN_INLINE_SCALE = 0.6;
|
|
27399
|
+
|
|
27400
|
+
/**
|
|
27401
|
+
* Glyph advance of the 2D plan font as a share of `fontSize` (measured on rendered digits; the shared
|
|
27402
|
+
* `labelHalfWidth` estimate is wider on purpose, it cuts the 3D line gaps), and the room a value needs at
|
|
27403
|
+
* its ends: it stands beside the line, so it only has to stay between the extension lines.
|
|
27404
|
+
*/
|
|
27405
|
+
var PLAN_FONT_ADVANCE = 0.52;
|
|
27406
|
+
var INLINE_END_ROOM = 0.3;
|
|
27407
|
+
|
|
27307
27408
|
/** drei/Line dash parameters per style (world meters). */
|
|
27308
27409
|
var DASH_PARAMS = {
|
|
27309
27410
|
dashed: {
|
|
@@ -27319,6 +27420,9 @@ var DASH_PARAMS = {
|
|
|
27319
27420
|
/** Labels draw above every dimension line (lines keep the shared render order 999 from
|
|
27320
27421
|
* `disableRaycastAndShadows`), so a value stays legible where lines cross. */
|
|
27321
27422
|
var LABEL_RENDER_ORDER = 1001;
|
|
27423
|
+
/** Authored label height in world meters (the screen clamp in `useLabelScale` takes over on larger scenes). */
|
|
27424
|
+
var DIMENSION_LABEL_SIZE = 0.1;
|
|
27425
|
+
|
|
27322
27426
|
/** Builders return fresh tuples on every rebuild; compare them by value. */
|
|
27323
27427
|
function sameProps(a, b) {
|
|
27324
27428
|
var keys = Object.keys(a);
|
|
@@ -27338,7 +27442,7 @@ var DimensionLine2D = /*#__PURE__*/memo(function DimensionLine2D(_ref) {
|
|
|
27338
27442
|
valueCm = _ref.valueCm,
|
|
27339
27443
|
color = _ref.color,
|
|
27340
27444
|
_ref$fontSize = _ref.fontSize,
|
|
27341
|
-
fontSize = _ref$fontSize === void 0 ?
|
|
27445
|
+
fontSize = _ref$fontSize === void 0 ? DIMENSION_LABEL_SIZE : _ref$fontSize,
|
|
27342
27446
|
_ref$y = _ref.y,
|
|
27343
27447
|
y = _ref$y === void 0 ? 0.01 : _ref$y,
|
|
27344
27448
|
prefix = _ref.prefix,
|
|
@@ -27347,7 +27451,9 @@ var DimensionLine2D = /*#__PURE__*/memo(function DimensionLine2D(_ref) {
|
|
|
27347
27451
|
_ref$labelT = _ref.labelT,
|
|
27348
27452
|
labelT = _ref$labelT === void 0 ? 0.5 : _ref$labelT,
|
|
27349
27453
|
_ref$labelInward = _ref.labelInward,
|
|
27350
|
-
labelInward = _ref$labelInward === void 0 ? false : _ref$labelInward
|
|
27454
|
+
labelInward = _ref$labelInward === void 0 ? false : _ref$labelInward,
|
|
27455
|
+
_ref$floatAfterEnd = _ref.floatAfterEnd,
|
|
27456
|
+
floatAfterEnd = _ref$floatAfterEnd === void 0 ? false : _ref$floatAfterEnd;
|
|
27351
27457
|
var groupRef = useRef(null);
|
|
27352
27458
|
var labelGroupRef = useRef(null);
|
|
27353
27459
|
var unit = useRTVStore$1(function (s) {
|
|
@@ -27396,7 +27502,11 @@ var DimensionLine2D = /*#__PURE__*/memo(function DimensionLine2D(_ref) {
|
|
|
27396
27502
|
var dx = e[0] - s[0];
|
|
27397
27503
|
var dz = e[2] - s[2];
|
|
27398
27504
|
var len = Math.sqrt(dx * dx + dz * dz);
|
|
27399
|
-
var
|
|
27505
|
+
var isShort = len < fontSize * MIN_INLINE_LENGTH_FACTOR;
|
|
27506
|
+
// A value that almost fits stays inside its run at a smaller size; only one with no chance floats.
|
|
27507
|
+
var fitScale = len / (fontSize * (label.length * PLAN_FONT_ADVANCE + INLINE_END_ROOM));
|
|
27508
|
+
var shrinkInline = isShort && fitScale >= MIN_INLINE_SCALE;
|
|
27509
|
+
var isSmall = isShort && !shrinkInline;
|
|
27400
27510
|
|
|
27401
27511
|
// A value on its run never grows wider than ~85 % of it; short runs float their value inline instead.
|
|
27402
27512
|
var maxLabelFont = isSmall ? Infinity : len * 0.85 / (2 * labelHalfWidth(label, 1));
|
|
@@ -27445,20 +27555,26 @@ var DimensionLine2D = /*#__PURE__*/memo(function DimensionLine2D(_ref) {
|
|
|
27445
27555
|
// Offset lines put the label away from the measured edge, or toward it when another row lies further out.
|
|
27446
27556
|
var textUpFacesEdge = Math.sin(textAngle) * offsetDirection[0] - Math.cos(textAngle) * offsetDirection[1] < 0;
|
|
27447
27557
|
var flipLabel = offset > 0 && (labelInward ? !textUpFacesEdge : textUpFacesEdge);
|
|
27448
|
-
var effFontSize = isSmall ? fontSize * 0.8 : fontSize;
|
|
27558
|
+
var effFontSize = shrinkInline ? fontSize * Math.min(1, fitScale) : isSmall ? fontSize * 0.8 : fontSize;
|
|
27449
27559
|
|
|
27450
27560
|
// Short runs (e.g. a 30 mm Ansatz) can't fit their value: place the label inline BEFORE
|
|
27451
|
-
// the run start — beside the measured gap, not inside it (left of a horizontal run)
|
|
27452
|
-
// Generous standoff so the value stays clear of the
|
|
27453
|
-
// lines crossing at the run
|
|
27561
|
+
// the run start — beside the measured gap, not inside it (left of a horizontal run) — or,
|
|
27562
|
+
// with floatAfterEnd, past the run end. Generous standoff so the value stays clear of the
|
|
27563
|
+
// run's arrows and any extension lines crossing at the run end.
|
|
27454
27564
|
var inlineBack = labelHalfWidth(label, effFontSize) + effFontSize * 0.9;
|
|
27455
|
-
var
|
|
27456
|
-
var
|
|
27565
|
+
var floatFrom = floatAfterEnd ? e : s;
|
|
27566
|
+
var floatDir = floatAfterEnd ? 1 : -1;
|
|
27567
|
+
var textPosX = isSmall ? floatFrom[0] + floatDir * ux * inlineBack : anchorX;
|
|
27568
|
+
var textPosZ = isSmall ? floatFrom[2] + floatDir * uz * inlineBack : anchorZ;
|
|
27457
27569
|
|
|
27458
27570
|
// Small runs get a dimension-line extension under the floated value (the "30" stands on
|
|
27459
27571
|
// its own line piece). Label-local units so it scales with the text; asymmetric — from
|
|
27460
|
-
//
|
|
27572
|
+
// the far side of the text to the run, no orphan tail past the label. The label's local
|
|
27573
|
+
// x runs against the line where textAngle was flipped to keep the text upright.
|
|
27461
27574
|
var underlineBack = labelHalfWidth(label, effFontSize) + effFontSize * 0.1;
|
|
27575
|
+
var localAlong = Math.cos(Math.atan2(dz, dx) - textAngle) > 0 ? 1 : -1;
|
|
27576
|
+
var underlineToRun = -floatDir * localAlong;
|
|
27577
|
+
var underline = [[-underlineToRun * underlineBack, 0, 0], [underlineToRun * inlineBack, 0, 0]];
|
|
27462
27578
|
var dash = lineStyle && lineStyle !== 'solid' ? DASH_PARAMS[lineStyle] : undefined;
|
|
27463
27579
|
return /*#__PURE__*/jsxs("group", {
|
|
27464
27580
|
ref: groupRef,
|
|
@@ -27506,7 +27622,7 @@ var DimensionLine2D = /*#__PURE__*/memo(function DimensionLine2D(_ref) {
|
|
|
27506
27622
|
rotation: new Euler(-Math.PI / 2, -textAngle, 0, 'YXZ'),
|
|
27507
27623
|
children: [isSmall && /*#__PURE__*/jsx(Line, {
|
|
27508
27624
|
layers: DIMENSION_LABEL_LAYER,
|
|
27509
|
-
points:
|
|
27625
|
+
points: underline,
|
|
27510
27626
|
color: effColor,
|
|
27511
27627
|
lineWidth: runWidth
|
|
27512
27628
|
}), /*#__PURE__*/jsx(Text, {
|
|
@@ -27530,6 +27646,8 @@ var DimensionLine2D = /*#__PURE__*/memo(function DimensionLine2D(_ref) {
|
|
|
27530
27646
|
});
|
|
27531
27647
|
}, sameProps);
|
|
27532
27648
|
|
|
27649
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27650
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27533
27651
|
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
27534
27652
|
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
27535
27653
|
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -27540,6 +27658,11 @@ var DEPTH_LINE_MARGIN = 0.25;
|
|
|
27540
27658
|
var DEFAULT_ROW_PITCH = 0.35;
|
|
27541
27659
|
var TOLERANCE_CM = 1;
|
|
27542
27660
|
|
|
27661
|
+
/** A length in meters as cm at millimetre precision, the precision the mm labels show (element sizes are not rounded either). */
|
|
27662
|
+
function toCm(meters) {
|
|
27663
|
+
return Math.round(meters * 1000) / 10;
|
|
27664
|
+
}
|
|
27665
|
+
|
|
27543
27666
|
// Lines without an explicit color fall back to the environment's `dimensionLineColor`
|
|
27544
27667
|
// (resolved inside DimensionLine2D). Only the both-mode grid duplicates stay hardcoded grey.
|
|
27545
27668
|
var GRID_COLOR = '#999999';
|
|
@@ -27639,6 +27762,11 @@ function measurePlan2D(scene2d) {
|
|
|
27639
27762
|
maxX = _unionBounds.maxX,
|
|
27640
27763
|
minZ = _unionBounds.minZ,
|
|
27641
27764
|
maxZ = _unionBounds.maxZ;
|
|
27765
|
+
var countedUnion = unionBounds$1(bounds.filter(function (_, i) {
|
|
27766
|
+
var _elements$i$dimension;
|
|
27767
|
+
return ((_elements$i$dimension = elements[i].dimensionConfig) === null || _elements$i$dimension === void 0 ? void 0 : _elements$i$dimension.includeInTotal) !== false;
|
|
27768
|
+
}));
|
|
27769
|
+
var counted = Number.isFinite(countedUnion.minX) ? countedUnion : null;
|
|
27642
27770
|
return {
|
|
27643
27771
|
elements: elements,
|
|
27644
27772
|
dockingGroups: dockingGroups,
|
|
@@ -27648,8 +27776,9 @@ function measurePlan2D(scene2d) {
|
|
|
27648
27776
|
maxX: maxX,
|
|
27649
27777
|
minZ: minZ,
|
|
27650
27778
|
maxZ: maxZ,
|
|
27651
|
-
|
|
27652
|
-
|
|
27779
|
+
counted: counted,
|
|
27780
|
+
totalWidthCm: counted ? toCm(counted.maxX - counted.minX) : 0,
|
|
27781
|
+
totalDepthCm: counted ? toCm(counted.maxZ - counted.minZ) : 0
|
|
27653
27782
|
};
|
|
27654
27783
|
}
|
|
27655
27784
|
|
|
@@ -27673,7 +27802,7 @@ function buildElementLines(plan) {
|
|
|
27673
27802
|
var shownWidths = [];
|
|
27674
27803
|
var shownDepths = [];
|
|
27675
27804
|
for (var i = 0; i < bounds.length; i++) {
|
|
27676
|
-
var _cfg$insideDimensions, _cfg$showWidth, _cfg$showDepth;
|
|
27805
|
+
var _cfg$insideDimensions, _cfg$showWidth, _cfg$showDepth, _cfg$edgeGapDimension;
|
|
27677
27806
|
var b = bounds[i];
|
|
27678
27807
|
var cfg = elements[i].dimensionConfig;
|
|
27679
27808
|
var _b$corners = _slicedToArray(b.corners, 4),
|
|
@@ -27710,6 +27839,9 @@ function buildElementLines(plan) {
|
|
|
27710
27839
|
// `dimensionsAtPlanEdge` anchors the line at the drawing's bottom/right edge (offsets
|
|
27711
27840
|
// act as global rows); otherwise it sits at the element's own bottom/right edge.
|
|
27712
27841
|
var planEdge = (cfg === null || cfg === void 0 ? void 0 : cfg.dimensionsAtPlanEdge) === true;
|
|
27842
|
+
|
|
27843
|
+
// only a counted element's own dimension can stand in for the total
|
|
27844
|
+
var counts = (cfg === null || cfg === void 0 ? void 0 : cfg.includeInTotal) !== false;
|
|
27713
27845
|
if (wLen > 0.01 && ((_cfg$showWidth = cfg === null || cfg === void 0 ? void 0 : cfg.showWidth) !== null && _cfg$showWidth !== void 0 ? _cfg$showWidth : true) && !widthInside) {
|
|
27714
27846
|
var _cfg$widthDimensionLi;
|
|
27715
27847
|
var line = {
|
|
@@ -27721,13 +27853,15 @@ function buildElementLines(plan) {
|
|
|
27721
27853
|
color: color,
|
|
27722
27854
|
prefix: cfg === null || cfg === void 0 ? void 0 : cfg.widthPrefix,
|
|
27723
27855
|
postfix: cfg === null || cfg === void 0 ? void 0 : cfg.widthPostfix,
|
|
27724
|
-
lineStyle: cfg === null || cfg === void 0 ? void 0 : cfg.lineStyle
|
|
27856
|
+
lineStyle: cfg === null || cfg === void 0 ? void 0 : cfg.lineStyle,
|
|
27857
|
+
floatInward: cfg === null || cfg === void 0 ? void 0 : cfg.floatLabelInward
|
|
27725
27858
|
};
|
|
27726
27859
|
if (!planEdge && liesOnOtherElement(line, i, bounds)) covered.push({
|
|
27727
27860
|
line: line,
|
|
27728
|
-
axis: 'width'
|
|
27861
|
+
axis: 'width',
|
|
27862
|
+
counts: counts
|
|
27729
27863
|
});else {
|
|
27730
|
-
shownWidths.push(b.widthCm);
|
|
27864
|
+
if (counts) shownWidths.push(b.widthCm);
|
|
27731
27865
|
lines.push(line);
|
|
27732
27866
|
}
|
|
27733
27867
|
}
|
|
@@ -27742,13 +27876,15 @@ function buildElementLines(plan) {
|
|
|
27742
27876
|
color: color,
|
|
27743
27877
|
prefix: cfg === null || cfg === void 0 ? void 0 : cfg.depthPrefix,
|
|
27744
27878
|
postfix: cfg === null || cfg === void 0 ? void 0 : cfg.depthPostfix,
|
|
27745
|
-
lineStyle: cfg === null || cfg === void 0 ? void 0 : cfg.lineStyle
|
|
27879
|
+
lineStyle: cfg === null || cfg === void 0 ? void 0 : cfg.lineStyle,
|
|
27880
|
+
floatInward: cfg === null || cfg === void 0 ? void 0 : cfg.floatLabelInward
|
|
27746
27881
|
};
|
|
27747
27882
|
if (!planEdge && liesOnOtherElement(_line, i, bounds)) covered.push({
|
|
27748
27883
|
line: _line,
|
|
27749
|
-
axis: 'depth'
|
|
27884
|
+
axis: 'depth',
|
|
27885
|
+
counts: counts
|
|
27750
27886
|
});else {
|
|
27751
|
-
shownDepths.push(b.depthCm);
|
|
27887
|
+
if (counts) shownDepths.push(b.depthCm);
|
|
27752
27888
|
lines.push(_line);
|
|
27753
27889
|
}
|
|
27754
27890
|
}
|
|
@@ -27779,11 +27915,26 @@ function buildElementLines(plan) {
|
|
|
27779
27915
|
labelT: ins.labelPositionFactor
|
|
27780
27916
|
});
|
|
27781
27917
|
}
|
|
27918
|
+
|
|
27919
|
+
// Distances, not the element's own size: they keep the default line color.
|
|
27782
27920
|
} catch (err) {
|
|
27783
27921
|
_iterator2.e(err);
|
|
27784
27922
|
} finally {
|
|
27785
27923
|
_iterator2.f();
|
|
27786
27924
|
}
|
|
27925
|
+
var _iterator3 = _createForOfIteratorHelper$m((_cfg$edgeGapDimension = cfg === null || cfg === void 0 ? void 0 : cfg.edgeGapDimensions) !== null && _cfg$edgeGapDimension !== void 0 ? _cfg$edgeGapDimension : []),
|
|
27926
|
+
_step3;
|
|
27927
|
+
try {
|
|
27928
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
27929
|
+
var side = _step3.value;
|
|
27930
|
+
var gap = buildEdgeGapLine(plan, i, side);
|
|
27931
|
+
if (gap) lines.push(gap);
|
|
27932
|
+
}
|
|
27933
|
+
} catch (err) {
|
|
27934
|
+
_iterator3.e(err);
|
|
27935
|
+
} finally {
|
|
27936
|
+
_iterator3.f();
|
|
27937
|
+
}
|
|
27787
27938
|
}
|
|
27788
27939
|
|
|
27789
27940
|
// A line covered by a docked neighbour (a row's inner depths, a front unit's width) is dropped when
|
|
@@ -27791,12 +27942,13 @@ function buildElementLines(plan) {
|
|
|
27791
27942
|
var _loop = function _loop() {
|
|
27792
27943
|
var _covered$_i = _covered[_i],
|
|
27793
27944
|
line = _covered$_i.line,
|
|
27794
|
-
axis = _covered$_i.axis
|
|
27945
|
+
axis = _covered$_i.axis,
|
|
27946
|
+
counts = _covered$_i.counts;
|
|
27795
27947
|
var shown = axis === 'width' ? shownWidths : shownDepths;
|
|
27796
27948
|
if (shown.some(function (v) {
|
|
27797
27949
|
return approxEqual(v, line.valueCm);
|
|
27798
27950
|
})) return 1; // continue
|
|
27799
|
-
shown.push(line.valueCm);
|
|
27951
|
+
if (counts) shown.push(line.valueCm);
|
|
27800
27952
|
lines.push(line);
|
|
27801
27953
|
};
|
|
27802
27954
|
for (var _i = 0, _covered = covered; _i < _covered.length; _i++) {
|
|
@@ -27809,6 +27961,43 @@ function buildElementLines(plan) {
|
|
|
27809
27961
|
};
|
|
27810
27962
|
}
|
|
27811
27963
|
|
|
27964
|
+
/**
|
|
27965
|
+
* Distance from one edge of element `index` to the nearest edge of any other element beyond it,
|
|
27966
|
+
* among the elements overlapping it on the other axis (axis-aligned bounds). The run starts at the
|
|
27967
|
+
* element's own edge and sits in the middle of the extent both elements share, so it ends on the other
|
|
27968
|
+
* element's edge, and a value too small for the run floats into the element. An element around it counts
|
|
27969
|
+
* with its far edge: a pool inside the roof measures to the roof's edge.
|
|
27970
|
+
*/
|
|
27971
|
+
function buildEdgeGapLine(plan, index, side) {
|
|
27972
|
+
var a = plan.bounds[index];
|
|
27973
|
+
var horizontal = side === 'left' || side === 'right';
|
|
27974
|
+
var dir = side === 'right' || side === 'bottom' ? 1 : -1;
|
|
27975
|
+
var from = horizontal ? dir > 0 ? a.maxX : a.minX : dir > 0 ? a.maxZ : a.minZ;
|
|
27976
|
+
var nearest;
|
|
27977
|
+
var mid = 0;
|
|
27978
|
+
plan.bounds.forEach(function (b, j) {
|
|
27979
|
+
if (j === index) return;
|
|
27980
|
+
var overlaps = horizontal ? b.minZ < a.maxZ && b.maxZ > a.minZ : b.minX < a.maxX && b.maxX > a.minX;
|
|
27981
|
+
if (!overlaps) return;
|
|
27982
|
+
for (var _i2 = 0, _arr = horizontal ? [b.minX, b.maxX] : [b.minZ, b.maxZ]; _i2 < _arr.length; _i2++) {
|
|
27983
|
+
var edge = _arr[_i2];
|
|
27984
|
+
var dist = (edge - from) * dir;
|
|
27985
|
+
if (dist * 100 > TOLERANCE_CM && (nearest === undefined || dist < (nearest - from) * dir)) {
|
|
27986
|
+
nearest = edge;
|
|
27987
|
+
mid = horizontal ? (Math.max(a.minZ, b.minZ) + Math.min(a.maxZ, b.maxZ)) / 2 : (Math.max(a.minX, b.minX) + Math.min(a.maxX, b.maxX)) / 2;
|
|
27988
|
+
}
|
|
27989
|
+
}
|
|
27990
|
+
});
|
|
27991
|
+
if (nearest === undefined) return undefined;
|
|
27992
|
+
return {
|
|
27993
|
+
start: horizontal ? [from, mid] : [mid, from],
|
|
27994
|
+
end: horizontal ? [nearest, mid] : [mid, nearest],
|
|
27995
|
+
offset: 0,
|
|
27996
|
+
offsetDirection: horizontal ? [0, 1] : [1, 0],
|
|
27997
|
+
valueCm: toCm(Math.abs(nearest - from))
|
|
27998
|
+
};
|
|
27999
|
+
}
|
|
28000
|
+
|
|
27812
28001
|
/**
|
|
27813
28002
|
* Whether an element stands between two facing edges at `gapFrom`..`gapTo`: it spans their whole shared band
|
|
27814
28003
|
* (`bandFrom`..`bandTo`, the other axis) and reaches into the gap, so the edges face it instead. One covering only part
|
|
@@ -27855,9 +28044,9 @@ function buildAutoGapLines(plan) {
|
|
|
27855
28044
|
var lines = [];
|
|
27856
28045
|
var seenGaps = new Set();
|
|
27857
28046
|
var _loop2 = function _loop2() {
|
|
27858
|
-
var _elements$i$
|
|
28047
|
+
var _elements$i$dimension2;
|
|
27859
28048
|
var a = bounds[i];
|
|
27860
|
-
if (!a.isAxisAligned || ((_elements$i$
|
|
28049
|
+
if (!a.isAxisAligned || ((_elements$i$dimension2 = elements[i].dimensionConfig) === null || _elements$i$dimension2 === void 0 ? void 0 : _elements$i$dimension2.gapDimensions) === false) return 1; // continue
|
|
27861
28050
|
var _loop3 = function _loop3() {
|
|
27862
28051
|
var _elements$j$dimension;
|
|
27863
28052
|
var b = bounds[j];
|
|
@@ -27869,7 +28058,7 @@ function buildAutoGapLines(plan) {
|
|
|
27869
28058
|
_ref6 = _slicedToArray(_ref5, 2),
|
|
27870
28059
|
near = _ref6[0],
|
|
27871
28060
|
far = _ref6[1];
|
|
27872
|
-
var gapCm =
|
|
28061
|
+
var gapCm = toCm(far.minZ - near.maxZ);
|
|
27873
28062
|
var key = "z:".concat(Math.round(near.maxZ * 100), ":").concat(Math.round(far.minZ * 100));
|
|
27874
28063
|
// Only edges that face each other: no line across an element standing between them (see `gapIsBlocked`).
|
|
27875
28064
|
var others = bounds.filter(function (c) {
|
|
@@ -27896,7 +28085,7 @@ function buildAutoGapLines(plan) {
|
|
|
27896
28085
|
_ref8 = _slicedToArray(_ref7, 2),
|
|
27897
28086
|
_near = _ref8[0],
|
|
27898
28087
|
_far = _ref8[1];
|
|
27899
|
-
var _gapCm =
|
|
28088
|
+
var _gapCm = toCm(_far.minX - _near.maxX);
|
|
27900
28089
|
var _key = "x:".concat(Math.round(_near.maxX * 100), ":").concat(Math.round(_far.minX * 100));
|
|
27901
28090
|
var _others = bounds.filter(function (c) {
|
|
27902
28091
|
return c !== a && c !== b;
|
|
@@ -27938,42 +28127,35 @@ function buildGridLines(plan, mode) {
|
|
|
27938
28127
|
var lines = [];
|
|
27939
28128
|
var shownWidths = [];
|
|
27940
28129
|
var shownDepths = [];
|
|
27941
|
-
|
|
27942
|
-
|
|
27943
|
-
|
|
27944
|
-
|
|
27945
|
-
|
|
27946
|
-
|
|
27947
|
-
|
|
27948
|
-
|
|
27949
|
-
|
|
27950
|
-
|
|
27951
|
-
|
|
27952
|
-
|
|
27953
|
-
|
|
27954
|
-
|
|
27955
|
-
|
|
27956
|
-
|
|
27957
|
-
color: mode === 'both' ? GRID_COLOR : undefined
|
|
27958
|
-
});
|
|
27959
|
-
}
|
|
27960
|
-
if (aabbD > 0.01) {
|
|
27961
|
-
shownDepths.push(b.isAxisAligned ? b.depthCm : b.aabbDepthCm);
|
|
27962
|
-
lines.push({
|
|
27963
|
-
start: [sideX > 0 ? b.maxX : b.minX, b.minZ],
|
|
27964
|
-
end: [sideX > 0 ? b.maxX : b.minX, b.maxZ],
|
|
27965
|
-
offset: mode === 'both' ? LINE_MARGIN * 2 : LINE_MARGIN,
|
|
27966
|
-
offsetDirection: [sideX, 0],
|
|
27967
|
-
valueCm: b.isAxisAligned ? b.depthCm : b.aabbDepthCm,
|
|
27968
|
-
color: mode === 'both' ? GRID_COLOR : undefined
|
|
27969
|
-
});
|
|
27970
|
-
}
|
|
28130
|
+
plan.bounds.forEach(function (b, i) {
|
|
28131
|
+
var _plan$elements$i$dime;
|
|
28132
|
+
if (mode === 'both' && b.isAxisAligned) return;
|
|
28133
|
+
var aabbW = b.maxX - b.minX;
|
|
28134
|
+
var aabbD = b.maxZ - b.minZ;
|
|
28135
|
+
var counts = ((_plan$elements$i$dime = plan.elements[i].dimensionConfig) === null || _plan$elements$i$dime === void 0 ? void 0 : _plan$elements$i$dime.includeInTotal) !== false;
|
|
28136
|
+
if (aabbW > 0.01) {
|
|
28137
|
+
if (counts) shownWidths.push(b.isAxisAligned ? b.widthCm : b.aabbWidthCm);
|
|
28138
|
+
lines.push({
|
|
28139
|
+
start: [b.minX, sideZ > 0 ? b.maxZ : b.minZ],
|
|
28140
|
+
end: [b.maxX, sideZ > 0 ? b.maxZ : b.minZ],
|
|
28141
|
+
offset: mode === 'both' ? LINE_MARGIN * 2 : LINE_MARGIN,
|
|
28142
|
+
offsetDirection: [0, sideZ],
|
|
28143
|
+
valueCm: b.isAxisAligned ? b.widthCm : b.aabbWidthCm,
|
|
28144
|
+
color: mode === 'both' ? GRID_COLOR : undefined
|
|
28145
|
+
});
|
|
27971
28146
|
}
|
|
27972
|
-
|
|
27973
|
-
|
|
27974
|
-
|
|
27975
|
-
|
|
27976
|
-
|
|
28147
|
+
if (aabbD > 0.01) {
|
|
28148
|
+
if (counts) shownDepths.push(b.isAxisAligned ? b.depthCm : b.aabbDepthCm);
|
|
28149
|
+
lines.push({
|
|
28150
|
+
start: [sideX > 0 ? b.maxX : b.minX, b.minZ],
|
|
28151
|
+
end: [sideX > 0 ? b.maxX : b.minX, b.maxZ],
|
|
28152
|
+
offset: mode === 'both' ? LINE_MARGIN * 2 : LINE_MARGIN,
|
|
28153
|
+
offsetDirection: [sideX, 0],
|
|
28154
|
+
valueCm: b.isAxisAligned ? b.depthCm : b.aabbDepthCm,
|
|
28155
|
+
color: mode === 'both' ? GRID_COLOR : undefined
|
|
28156
|
+
});
|
|
28157
|
+
}
|
|
28158
|
+
});
|
|
27977
28159
|
return {
|
|
27978
28160
|
lines: lines,
|
|
27979
28161
|
shownWidths: shownWidths,
|
|
@@ -28024,8 +28206,8 @@ function buildGroupLines(plan, mode) {
|
|
|
28024
28206
|
_iterator5.f();
|
|
28025
28207
|
}
|
|
28026
28208
|
if (validCount < 2) return 1; // continue
|
|
28027
|
-
var groupWidthCm =
|
|
28028
|
-
var groupDepthCm =
|
|
28209
|
+
var groupWidthCm = toCm(gMaxX - gMinX);
|
|
28210
|
+
var groupDepthCm = toCm(gMaxZ - gMinZ);
|
|
28029
28211
|
|
|
28030
28212
|
// Per-axis: a group extent that equals the total renders exactly once — as the
|
|
28031
28213
|
// total line (Level 3) — never as group AND total.
|
|
@@ -28090,17 +28272,19 @@ function buildGroupLines(plan, mode) {
|
|
|
28090
28272
|
function buildTotalLines(plan, shownWidths, shownDepths, rowPitch, linesSoFar) {
|
|
28091
28273
|
var sides = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : DEFAULT_SIDES$1;
|
|
28092
28274
|
var elements = plan.elements,
|
|
28093
|
-
|
|
28094
|
-
tMaxX = plan.maxX,
|
|
28095
|
-
tMinZ = plan.minZ,
|
|
28096
|
-
tMaxZ = plan.maxZ,
|
|
28275
|
+
counted = plan.counted,
|
|
28097
28276
|
totalWidthCm = plan.totalWidthCm,
|
|
28098
28277
|
totalDepthCm = plan.totalDepthCm;
|
|
28099
28278
|
var sideX = sideOf(sides, 'x', 1);
|
|
28100
28279
|
var sideZ = sideOf(sides, 'z', 1);
|
|
28101
|
-
|
|
28102
|
-
var
|
|
28103
|
-
|
|
28280
|
+
// The rows sit at the plan edge, also when an uncounted element reaches past the counted extents.
|
|
28281
|
+
var edgeZ = sideZ > 0 ? plan.maxZ : plan.minZ;
|
|
28282
|
+
var edgeX = sideX > 0 ? plan.maxX : plan.minX;
|
|
28283
|
+
if (elements.length <= 1 || !counted) return [];
|
|
28284
|
+
var tMinX = counted.minX,
|
|
28285
|
+
tMaxX = counted.maxX,
|
|
28286
|
+
tMinZ = counted.minZ,
|
|
28287
|
+
tMaxZ = counted.maxZ;
|
|
28104
28288
|
var skipWidth = shownWidths.some(function (v) {
|
|
28105
28289
|
return approxEqual(v, totalWidthCm);
|
|
28106
28290
|
});
|
|
@@ -28185,7 +28369,21 @@ function buildDimensionLines2D(scene2d, mode) {
|
|
|
28185
28369
|
lines.push.apply(lines, _toConsumableArray(buildGroupLines(plan, mode, sides, rowPitch, lines)));
|
|
28186
28370
|
lines.push.apply(lines, _toConsumableArray(buildTotalLines(plan, shownWidths, shownDepths, rowPitch, lines, sides)));
|
|
28187
28371
|
markInnerRows(lines);
|
|
28188
|
-
|
|
28372
|
+
|
|
28373
|
+
// Outside runs on the far half of the plan float a value that does not fit outward, past their end,
|
|
28374
|
+
// instead of into the neighbouring run (e.g. the right-hand gap next to a long middle run);
|
|
28375
|
+
// `floatInward` turns that toward the plan centre. Inside dimensions (offset 0) keep floating before their start.
|
|
28376
|
+
var centerX = (plan.minX + plan.maxX) / 2;
|
|
28377
|
+
var centerZ = (plan.minZ + plan.maxZ) / 2;
|
|
28378
|
+
return lines.map(function (line) {
|
|
28379
|
+
if (line.offset <= 0) return line;
|
|
28380
|
+
var midX = (line.start[0] + line.end[0]) / 2 - centerX;
|
|
28381
|
+
var midZ = (line.start[1] + line.end[1]) / 2 - centerZ;
|
|
28382
|
+
var beyondCenter = midX * (line.end[0] - line.start[0]) + midZ * (line.end[1] - line.start[1]) > 0;
|
|
28383
|
+
return beyondCenter !== !!line.floatInward ? _objectSpread$8(_objectSpread$8({}, line), {}, {
|
|
28384
|
+
floatAfterEnd: true
|
|
28385
|
+
}) : line;
|
|
28386
|
+
});
|
|
28189
28387
|
}
|
|
28190
28388
|
|
|
28191
28389
|
/** Flags lines that have another, overlapping line further out on the same side (`labelInward`). */
|
|
@@ -28418,7 +28616,8 @@ function DimensionLines2D() {
|
|
|
28418
28616
|
postfix: line.postfix,
|
|
28419
28617
|
lineStyle: line.lineStyle,
|
|
28420
28618
|
labelT: line.labelT,
|
|
28421
|
-
labelInward: line.labelInward
|
|
28619
|
+
labelInward: line.labelInward,
|
|
28620
|
+
floatAfterEnd: line.floatAfterEnd
|
|
28422
28621
|
}, i);
|
|
28423
28622
|
})
|
|
28424
28623
|
});
|
|
@@ -31192,7 +31391,7 @@ function registerOutlineTiming(label, effect) {
|
|
|
31192
31391
|
if (effect) gpuTimingTargets.outlines.set(label, effect);else gpuTimingTargets.outlines["delete"](label);
|
|
31193
31392
|
}
|
|
31194
31393
|
var GpuPassTiming = /*#__PURE__*/lazy(function () {
|
|
31195
|
-
return import('./GpuPassTiming-
|
|
31394
|
+
return import('./GpuPassTiming-ffef4ca2.js').then(function (m) {
|
|
31196
31395
|
return {
|
|
31197
31396
|
"default": m.GpuPassTiming
|
|
31198
31397
|
};
|
|
@@ -33715,7 +33914,7 @@ function applyShotConfig(ctx, shot) {
|
|
|
33715
33914
|
* planning yet is framed whole. Reads the store fresh: it runs after `applyShotConfig` may have overridden `viewMode`.
|
|
33716
33915
|
*/
|
|
33717
33916
|
function apply2DShotFraming(_ref3, shot) {
|
|
33718
|
-
var _shot$viewMode2, _state$
|
|
33917
|
+
var _shot$viewMode2, _shot$camera, _shot$showDimensionLi, _state$room$footprint, _state$room, _state$sceneMetrics$c3, _state$sceneMetrics5, _state$sceneMetrics$r3, _state$sceneMetrics6;
|
|
33719
33918
|
var scene = _ref3.scene,
|
|
33720
33919
|
controlsRef = _ref3.controlsRef,
|
|
33721
33920
|
proxyCamRef = _ref3.proxyCamRef,
|
|
@@ -33727,18 +33926,40 @@ function apply2DShotFraming(_ref3, shot) {
|
|
|
33727
33926
|
var size = sizeRef.current;
|
|
33728
33927
|
var resolution = clampShotResolution(shot.resolution, state.activeProfileTier);
|
|
33729
33928
|
var aspect = resolution ? resolution.width / resolution.height : size.width / size.height;
|
|
33730
|
-
|
|
33929
|
+
// a zero-sized shot or canvas has no aspect to frame for
|
|
33930
|
+
if (!(aspect > 0) || !Number.isFinite(aspect)) return;
|
|
33931
|
+
var cameraConfig = ((_shot$camera = shot.camera) === null || _shot$camera === void 0 ? void 0 : _shot$camera.padding) != null ? _objectSpread$2(_objectSpread$2({}, state.cameraConfig), {}, {
|
|
33932
|
+
initialZoomPadding2D: shot.camera.padding
|
|
33933
|
+
}) : state.cameraConfig;
|
|
33934
|
+
// the image must hold the dimension rows too: they sit outside the elements and would be cut off at the edge
|
|
33935
|
+
// (the shot's own dimension-line setting is applied after this framing, so read it from the shot)
|
|
33936
|
+
var scene2d = state.scene2d;
|
|
33937
|
+
var showDimensionLines = (_shot$showDimensionLi = shot.showDimensionLines) !== null && _shot$showDimensionLi !== void 0 ? _shot$showDimensionLi : state.showDimensionLines;
|
|
33938
|
+
// the rows stand ROW_PITCH_PX apart on the canvas (`DimensionLines2D`), so their pitch follows the viewport
|
|
33939
|
+
var roomFootprint = (_state$room$footprint = (_state$room = state.room) === null || _state$room === void 0 ? void 0 : _state$room.footprint) !== null && _state$room$footprint !== void 0 ? _state$room$footprint : null;
|
|
33940
|
+
var rowsFor = function rowsFor(viewportHeight) {
|
|
33941
|
+
return scene2d && showDimensionLines ? buildPlanDimensionLines2D(scene2d, state.dimensionLineMode, size.height > 0 ? ROW_PITCH_PX * viewportHeight / size.height : DEFAULT_ROW_PITCH, roomFootprint) : [];
|
|
33942
|
+
};
|
|
33943
|
+
var labels = {
|
|
33944
|
+
worldSize: DIMENSION_LABEL_SIZE,
|
|
33945
|
+
screenFraction: CAPTURE_SCREEN_FRACTION,
|
|
33946
|
+
maxScale: MAX_SCALE,
|
|
33947
|
+
minFontPx: MIN_FONT_PX,
|
|
33948
|
+
canvasHeightPx: size.height
|
|
33949
|
+
};
|
|
33950
|
+
var planning = scene2d === null || scene2d === void 0 ? void 0 : scene2d.boundingBox;
|
|
33731
33951
|
var hasPlanning = isFinitePlanBox(planning) && (planning.width > 0 || planning.depth > 0);
|
|
33732
33952
|
var frameCtx = {
|
|
33733
33953
|
threeScene: scene,
|
|
33734
|
-
bounds2d: planning,
|
|
33954
|
+
bounds2d: planning ? boundsWithDimensionRows(planning, rowsFor, {
|
|
33955
|
+
aspect: aspect,
|
|
33956
|
+
cameraConfig: cameraConfig
|
|
33957
|
+
}, labels) : undefined,
|
|
33735
33958
|
roomBounds2d: hasPlanning ? undefined : roomFrameBounds(state.room),
|
|
33736
33959
|
sceneCenter: (_state$sceneMetrics$c3 = (_state$sceneMetrics5 = state.sceneMetrics) === null || _state$sceneMetrics5 === void 0 ? void 0 : _state$sceneMetrics5.center) !== null && _state$sceneMetrics$c3 !== void 0 ? _state$sceneMetrics$c3 : [0, 0, 0],
|
|
33737
33960
|
sceneRadius: (_state$sceneMetrics$r3 = (_state$sceneMetrics6 = state.sceneMetrics) === null || _state$sceneMetrics6 === void 0 ? void 0 : _state$sceneMetrics6.radius) !== null && _state$sceneMetrics$r3 !== void 0 ? _state$sceneMetrics$r3 : 2,
|
|
33738
33961
|
aspect: aspect,
|
|
33739
|
-
cameraConfig:
|
|
33740
|
-
initialZoomPadding2D: shot.camera.padding
|
|
33741
|
-
}) : state.cameraConfig
|
|
33962
|
+
cameraConfig: cameraConfig
|
|
33742
33963
|
};
|
|
33743
33964
|
var _computeCamera2D = computeCamera2D(frameCtx),
|
|
33744
33965
|
position = _computeCamera2D.position,
|
|
@@ -36672,8 +36893,11 @@ function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
36672
36893
|
* Connected element groups from the docking points (union-find): every group lists the qualified keys
|
|
36673
36894
|
* (`qualifiedElementKey(setId, elementId)`) of the elements docked to one another; single elements are
|
|
36674
36895
|
* omitted. Element ids repeat across sets, and a docking point names an element of its own set.
|
|
36896
|
+
* Excluded elements (qualified keys) join no group and link none: two elements docked only through an excluded one
|
|
36897
|
+
* stay apart.
|
|
36675
36898
|
*/
|
|
36676
36899
|
function buildDockingGroups(elementsBySet) {
|
|
36900
|
+
var excludedKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Set();
|
|
36677
36901
|
var parent = new Map();
|
|
36678
36902
|
function find(x) {
|
|
36679
36903
|
var root = x;
|
|
@@ -36698,6 +36922,7 @@ function buildDockingGroups(elementsBySet) {
|
|
|
36698
36922
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
36699
36923
|
var element = _step.value;
|
|
36700
36924
|
var key = qualifiedElementKey(setId, element.getElementId());
|
|
36925
|
+
if (excludedKeys.has(key)) continue;
|
|
36701
36926
|
if (!parent.has(key)) parent.set(key, key);
|
|
36702
36927
|
var _iterator2 = _createForOfIteratorHelper$2(element.getDockingPoints()),
|
|
36703
36928
|
_step2;
|
|
@@ -36706,6 +36931,7 @@ function buildDockingGroups(elementsBySet) {
|
|
|
36706
36931
|
var dp = _step2.value;
|
|
36707
36932
|
if (dp.IsDocking && dp.OnElementId != null) {
|
|
36708
36933
|
var onKey = qualifiedElementKey(setId, dp.OnElementId);
|
|
36934
|
+
if (excludedKeys.has(onKey)) continue;
|
|
36709
36935
|
if (!parent.has(onKey)) parent.set(onKey, onKey);
|
|
36710
36936
|
union(key, onKey);
|
|
36711
36937
|
}
|
|
@@ -36832,6 +37058,7 @@ function buildScene2D(elementsBySet) {
|
|
|
36832
37058
|
var minZ = Infinity;
|
|
36833
37059
|
var maxX = -Infinity;
|
|
36834
37060
|
var maxZ = -Infinity;
|
|
37061
|
+
var hiddenElementKeys = new Set();
|
|
36835
37062
|
var staticDrawing = false;
|
|
36836
37063
|
elementsBySet.forEach(function (plannerElements, setId) {
|
|
36837
37064
|
var _iterator = _createForOfIteratorHelper(plannerElements),
|
|
@@ -36840,6 +37067,16 @@ function buildScene2D(elementsBySet) {
|
|
|
36840
37067
|
var _loop = function _loop() {
|
|
36841
37068
|
var _pe$getGlobalWidth, _pe$getGlobalDepth, _dimMeta$annotations, _dimMeta$zLayer;
|
|
36842
37069
|
var pe = _step.value;
|
|
37070
|
+
var dimMeta = dimConfigs[pe.ArticleCodex];
|
|
37071
|
+
if (dimMeta) staticDrawing = true;
|
|
37072
|
+
var resolveText = function resolveText(text) {
|
|
37073
|
+
var _options$resolveTempl;
|
|
37074
|
+
return text && text.includes('{') && options.resolveTemplate ? (_options$resolveTempl = options.resolveTemplate(pe.getBasketId(), text)) !== null && _options$resolveTempl !== void 0 ? _options$resolveTempl : text : text;
|
|
37075
|
+
};
|
|
37076
|
+
if (dimMeta !== null && dimMeta !== void 0 && dimMeta.hideWhen && resolveText(dimMeta.hideWhen) === 'true') {
|
|
37077
|
+
hiddenElementKeys.add(qualifiedElementKey(setId, pe.getElementId()));
|
|
37078
|
+
return 1; // continue
|
|
37079
|
+
}
|
|
36843
37080
|
var center = pe.getWorldPosCenter();
|
|
36844
37081
|
var w = (_pe$getGlobalWidth = pe.getGlobalWidth()) !== null && _pe$getGlobalWidth !== void 0 ? _pe$getGlobalWidth : 0;
|
|
36845
37082
|
var d = (_pe$getGlobalDepth = pe.getGlobalDepth()) !== null && _pe$getGlobalDepth !== void 0 ? _pe$getGlobalDepth : 0;
|
|
@@ -36909,12 +37146,6 @@ function buildScene2D(elementsBySet) {
|
|
|
36909
37146
|
} : {});
|
|
36910
37147
|
|
|
36911
37148
|
// option-driven label texts: `{optionCodex}` placeholders resolve against the element's article options
|
|
36912
|
-
var dimMeta = dimConfigs[pe.ArticleCodex];
|
|
36913
|
-
if (dimMeta) staticDrawing = true;
|
|
36914
|
-
var resolveText = function resolveText(text) {
|
|
36915
|
-
var _options$resolveTempl;
|
|
36916
|
-
return text && text.includes('{') && options.resolveTemplate ? (_options$resolveTempl = options.resolveTemplate(pe.getBasketId(), text)) !== null && _options$resolveTempl !== void 0 ? _options$resolveTempl : text : text;
|
|
36917
|
-
};
|
|
36918
37149
|
var rawCfg = dimMeta === null || dimMeta === void 0 ? void 0 : dimMeta.dimensionConfig;
|
|
36919
37150
|
var dimensionConfig = rawCfg && [rawCfg.widthPrefix, rawCfg.widthPostfix, rawCfg.depthPrefix, rawCfg.depthPostfix].some(function (text) {
|
|
36920
37151
|
return text === null || text === void 0 ? void 0 : text.includes('{');
|
|
@@ -36962,7 +37193,7 @@ function buildScene2D(elementsBySet) {
|
|
|
36962
37193
|
maxZ = Math.max(maxZ, center.z + halfZ);
|
|
36963
37194
|
};
|
|
36964
37195
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
36965
|
-
_loop();
|
|
37196
|
+
if (_loop()) continue;
|
|
36966
37197
|
}
|
|
36967
37198
|
} catch (err) {
|
|
36968
37199
|
_iterator.e(err);
|
|
@@ -36971,7 +37202,9 @@ function buildScene2D(elementsBySet) {
|
|
|
36971
37202
|
}
|
|
36972
37203
|
});
|
|
36973
37204
|
if (elements.length === 0) return undefined;
|
|
36974
|
-
|
|
37205
|
+
|
|
37206
|
+
// an element left out of the plan (hideWhen) joins no docking group and links none
|
|
37207
|
+
var dockingGroups = buildDockingGroups(elementsBySet, hiddenElementKeys);
|
|
36975
37208
|
var followGroups = buildFollowGroups(elementsBySet);
|
|
36976
37209
|
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
36977
37210
|
elements: elements,
|