@crystaldesign/real-time-viewer-next 26.14.0-beta.23 → 26.14.0-beta.25

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.
Files changed (31) hide show
  1. package/build/esm/{DeckCutoutSubsystem-eb47a2b1.js → DeckCutoutSubsystem-036a108a.js} +1 -1
  2. package/build/esm/{GpuPassTiming-ffef4ca2.js → GpuPassTiming-2f4ce2ca.js} +1 -1
  3. package/build/esm/{RoomShell-44b80d5f.js → RoomShell-dd0b4568.js} +1 -1
  4. package/build/esm/{SunLensflare-195e78f0.js → SunLensflare-fd8e41df.js} +1 -1
  5. package/build/esm/{WaterSurface-1678292e.js → WaterSurface-1b33fc73.js} +1 -1
  6. package/build/esm/{chipPlacement-aaa85bc3.js → chipPlacement-6b82d471.js} +1 -1
  7. package/build/esm/{coachChunk-5f8a8ec6.js → coachChunk-6b35e349.js} +2 -2
  8. package/build/esm/{doorSwapChunk-6af4d939.js → doorSwapChunk-9ee4befc.js} +2 -2
  9. package/build/esm/{index-4657421e.js → index-a70c59aa.js} +144 -46
  10. package/build/esm/index.js +1 -1
  11. package/build/types/real-time-viewer-next/src/capture/contentSize.d.ts +10 -0
  12. package/build/types/real-time-viewer-next/src/capture/contentSize.d.ts.map +1 -0
  13. package/build/types/real-time-viewer-next/src/capture/contentSize.test.d.ts +2 -0
  14. package/build/types/real-time-viewer-next/src/capture/contentSize.test.d.ts.map +1 -0
  15. package/build/types/real-time-viewer-next/src/capture/useCaptureEngine.d.ts.map +1 -1
  16. package/build/types/real-time-viewer-next/src/core/dimension-lines/dimensionLineBuilders2D.d.ts +13 -0
  17. package/build/types/real-time-viewer-next/src/core/dimension-lines/dimensionLineBuilders2D.d.ts.map +1 -1
  18. package/build/types/real-time-viewer-next/src/core/dimension-lines/dimensionLineBuilders3D.d.ts +7 -2
  19. package/build/types/real-time-viewer-next/src/core/dimension-lines/dimensionLineBuilders3D.d.ts.map +1 -1
  20. package/build/types/real-time-viewer-next/src/core/interaction/overlayChrome.d.ts +5 -4
  21. package/build/types/real-time-viewer-next/src/core/interaction/overlayChrome.d.ts.map +1 -1
  22. package/build/types/real-time-viewer-next/src/plannerScene2D/buildScene2D.d.ts.map +1 -1
  23. package/build/types/real-time-viewer-next/src/plannerScene2D/plannerElementSource.d.ts +1 -0
  24. package/build/types/real-time-viewer-next/src/plannerScene2D/plannerElementSource.d.ts.map +1 -1
  25. package/build/types/real-time-viewer-next/src/store/slices/plannerOperation.d.ts +8 -4
  26. package/build/types/real-time-viewer-next/src/store/slices/plannerOperation.d.ts.map +1 -1
  27. package/build/types/real-time-viewer-next/src/types/scene2d.d.ts +5 -0
  28. package/build/types/real-time-viewer-next/src/types/scene2d.d.ts.map +1 -1
  29. package/build/umd/real-time-viewer-next.umd.min.js +1 -1
  30. package/build/umd/report.html +1 -1
  31. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { ai as parseQualifiedElementKey, aj as resolveGeoNodes, ak as polygonSignedArea, al as simplifyClosedPolygon, am as ensureSimplePolygon, b as parseElementKey, an as useStableEnvSlice, u as useRTVStore, ao as bootPhase, ap as adoptPristineFadeState, aq as DECK_COLLAR_LOAD_ID } from './index-4657421e.js';
1
+ import { ai as parseQualifiedElementKey, aj as resolveGeoNodes, ak as polygonSignedArea, al as simplifyClosedPolygon, am as ensureSimplePolygon, b as parseElementKey, an as useStableEnvSlice, u as useRTVStore, ao as bootPhase, ap as adoptPristineFadeState, aq as DECK_COLLAR_LOAD_ID } from './index-a70c59aa.js';
2
2
  import { useRef, useEffect, useMemo, useState, useCallback } from 'react';
3
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
@@ -3,7 +3,7 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
3
3
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
4
4
  import _createClass from '@babel/runtime/helpers/createClass';
5
5
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
6
- import { I as FRAME_ORDER, u as useRTVStore, ax as outlineSubPasses, ay as isOutlineDrawSkipped, az as gpuTimingTargets, aA as effectsOf } from './index-4657421e.js';
6
+ import { I as FRAME_ORDER, u as useRTVStore, ax as outlineSubPasses, ay as isOutlineDrawSkipped, az as gpuTimingTargets, aA as effectsOf } from './index-a70c59aa.js';
7
7
  import { useRef, useEffect } from 'react';
8
8
  import { useThree, useFrame } from '@react-three/fiber';
9
9
  import { RenderPass, EffectPass, Effect } from 'postprocessing';
@@ -1,6 +1,6 @@
1
1
  import _typeof from '@babel/runtime/helpers/typeof';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
- import { L as floorReflections, M as withRenderTarget, N as renderFloorReflection, I as FRAME_ORDER, O as sceneEpoch, P as roomAoUniforms, u as useRTVStore, Q as sameMatrix, R as collectElements, S as partBoxes, U as articleImportance, V as articleAoBoxes, W as ROOM_AO_BOX_BUDGETS, X as packArticleBoxes, Y as rotateXZ, b as parseElementKey, a as isAccessoryKey, l as parseElementSetId, Z as parseElementId, _ as findElement2D, k as getLocalBoundingBox, $ as getHostCallbacks, a0 as buildRoomWalls, a1 as ROOM_SHELL_LOAD_ID, a2 as ROOM_PLAN_2D, a3 as R3FAssetBoundary, a4 as useTextureSizeCap, a5 as CM, a6 as useShadowFlags, a7 as applyRoomAo, a8 as setRoomAoWalls, a9 as setRoomAoWallVisible, aa as squareEndQuad, ab as buildWallPieces, ac as pushPrism, ad as pieceQuad, ae as openingSpan, af as floorUnreflected, ag as cameraHiddenWalls, ah as cameraSquaredWallEnds } from './index-4657421e.js';
3
+ import { L as floorReflections, M as withRenderTarget, N as renderFloorReflection, I as FRAME_ORDER, O as sceneEpoch, P as roomAoUniforms, u as useRTVStore, Q as sameMatrix, R as collectElements, S as partBoxes, U as articleImportance, V as articleAoBoxes, W as ROOM_AO_BOX_BUDGETS, X as packArticleBoxes, Y as rotateXZ, b as parseElementKey, a as isAccessoryKey, l as parseElementSetId, Z as parseElementId, _ as findElement2D, k as getLocalBoundingBox, $ as getHostCallbacks, a0 as buildRoomWalls, a1 as ROOM_SHELL_LOAD_ID, a2 as ROOM_PLAN_2D, a3 as R3FAssetBoundary, a4 as useTextureSizeCap, a5 as CM, a6 as useShadowFlags, a7 as applyRoomAo, a8 as setRoomAoWalls, a9 as setRoomAoWallVisible, aa as squareEndQuad, ab as buildWallPieces, ac as pushPrism, ad as pieceQuad, ae as openingSpan, af as floorUnreflected, ag as cameraHiddenWalls, ah as cameraSquaredWallEnds } from './index-a70c59aa.js';
4
4
  import { useMemo, useEffect, useRef, Suspense } from 'react';
5
5
  import { PerspectiveCamera, Vector3, Matrix4, Plane, Vector4, WebGLRenderTarget, DepthTexture, DepthFormat, UnsignedShortType, LinearFilter, HalfFloatType, Box3, Vector2, RepeatWrapping, SRGBColorSpace, NoColorSpace, ShapeGeometry, Shape, Frustum, MeshStandardMaterial, DoubleSide, BufferGeometry, BufferAttribute } from 'three';
6
6
  import { useTexture } from '@react-three/drei';
@@ -1,5 +1,5 @@
1
1
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
- import { aB as flushPendingBVH, aC as collectCollisionTargets } from './index-4657421e.js';
2
+ import { aB as flushPendingBVH, aC as collectCollisionTargets } from './index-a70c59aa.js';
3
3
  import { useMemo, useEffect, useRef } from 'react';
4
4
  import { Billboard } from '@react-three/drei';
5
5
  import { useThree, useFrame } from '@react-three/fiber';
@@ -1,5 +1,5 @@
1
1
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
- import { M as withRenderTarget, ar as setCausticReceiversSuspended, as as waterUniforms, at as useContinuousFrames, au as disableWaterUniforms, u as useRTVStore, I as FRAME_ORDER, av as sunAnglesToDirection, aw as lightingSunTowardDirection } from './index-4657421e.js';
2
+ import { M as withRenderTarget, ar as setCausticReceiversSuspended, as as waterUniforms, at as useContinuousFrames, au as disableWaterUniforms, u as useRTVStore, I as FRAME_ORDER, av as sunAnglesToDirection, aw as lightingSunTowardDirection } from './index-a70c59aa.js';
3
3
  import { useRef, useMemo, useEffect, useCallback, useState } from 'react';
4
4
  import { useThree, useFrame } from '@react-three/fiber';
5
5
  import { Vector3, WebGLRenderTarget, HalfFloatType, RGBAFormat, LinearFilter, OrthographicCamera, ShaderMaterial, DoubleSide, MeshStandardMaterial, Box3, NoToneMapping, Frustum, Matrix4, Vector4, Vector2, Plane, Scene, Mesh, PlaneGeometry, ClampToEdgeWrapping, UnsignedByteType, LinearMipmapLinearFilter, MeshBasicMaterial, Color } from 'three';
@@ -1,4 +1,4 @@
1
- import './index-4657421e.js';
1
+ import './index-a70c59aa.js';
2
2
 
3
3
  /** A box in client px. */
4
4
 
@@ -1,8 +1,8 @@
1
- import { s as styleInject, p as prefersReducedMotion, u as useRTVStore, i as isElementNodeName, a as isAccessoryKey, b as parseElementKey, c as canPressDrag, d as canMoveAccessory, v as visibleElementCentre, w as worldToClientPxOnScreen, e as isElementVisibleAt, f as viewerElementOf, g as collectFreeCellWorldPositions, h as shelfElementKey, j as isDescendantElementKey, k as getLocalBoundingBox, l as parseElementSetId, T as TOUCH_LIFT_PX, m as markCoachHintSeen, n as useCoachHint, t as textFor, o as viewerCoachFrame, C as COARSE_POINTER, q as subscribeViewerCoachFrames } from './index-4657421e.js';
1
+ import { s as styleInject, p as prefersReducedMotion, u as useRTVStore, i as isElementNodeName, a as isAccessoryKey, b as parseElementKey, c as canPressDrag, d as canMoveAccessory, v as visibleElementCentre, w as worldToClientPxOnScreen, e as isElementVisibleAt, f as viewerElementOf, g as collectFreeCellWorldPositions, h as shelfElementKey, j as isDescendantElementKey, k as getLocalBoundingBox, l as parseElementSetId, T as TOUCH_LIFT_PX, m as markCoachHintSeen, n as useCoachHint, t as textFor, o as viewerCoachFrame, C as COARSE_POINTER, q as subscribeViewerCoachFrames } from './index-a70c59aa.js';
2
2
  import { useRef, useEffect, useMemo, useCallback } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { createPortal } from 'react-dom';
5
- import { c as clamp, p as placeChipInBox, T as TOUCH_MAX_BOTTOM } from './chipPlacement-aaa85bc3.js';
5
+ import { c as clamp, p as placeChipInBox, T as TOUCH_MAX_BOTTOM } from './chipPlacement-6b82d471.js';
6
6
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
7
7
  import _construct from '@babel/runtime/helpers/construct';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
@@ -1,4 +1,4 @@
1
- import { r as splitQualifiedElementKey, i as isElementNodeName, x as doorKeyOf, y as qualifiedElementKey, b as parseElementKey, l as parseElementSetId, k as getLocalBoundingBox, z as lendMirrorOverlays, A as convexHull, H as HIDDEN_FOR_STAND_IN, B as TOUCH_CLICK_SLOP_PX, D as CLICK_SLOP_PX, u as useRTVStore, E as acquireCursor, T as TOUCH_LIFT_PX, F as acquireControlsLock, G as rayAtClient, I as FRAME_ORDER, J as useAccentColor, K as isCoachHintSeen, s as styleInject } from './index-4657421e.js';
1
+ import { r as splitQualifiedElementKey, i as isElementNodeName, x as doorKeyOf, y as qualifiedElementKey, b as parseElementKey, l as parseElementSetId, k as getLocalBoundingBox, z as lendMirrorOverlays, A as convexHull, H as HIDDEN_FOR_STAND_IN, B as TOUCH_CLICK_SLOP_PX, D as CLICK_SLOP_PX, u as useRTVStore, E as acquireCursor, T as TOUCH_LIFT_PX, F as acquireControlsLock, G as rayAtClient, I as FRAME_ORDER, J as useAccentColor, K as isCoachHintSeen, s as styleInject } from './index-a70c59aa.js';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import { useEffect, useRef, useMemo, useState, useCallback, useLayoutEffect } from 'react';
4
4
  import { useThree, useFrame } from '@react-three/fiber';
@@ -8,7 +8,7 @@ import { Line } from '@react-three/drei';
8
8
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
9
9
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
10
10
  import classnames from 'classnames';
11
- import { T as TOUCH_MAX_BOTTOM, p as placeChipInBox } from './chipPlacement-aaa85bc3.js';
11
+ import { T as TOUCH_MAX_BOTTOM, p as placeChipInBox } from './chipPlacement-6b82d471.js';
12
12
  import '@crystaldesign/diva-core';
13
13
  import '@babel/runtime/helpers/asyncToGenerator';
14
14
  import '@babel/runtime/helpers/typeof';
@@ -1266,6 +1266,9 @@ var LOG$y = getLogger('RealTimeViewer', 'RTV-Next');
1266
1266
  * host holds the others back until the host has finished it (its promise settled) and the view shows its answer. A
1267
1267
  * failure ends it at once; a re-render that does not arrive is waited for `OPERATION_TIMEOUT_MS` at most. A drag, turn
1268
1268
  * or accessory move in progress holds new operations back as well: its END would otherwise reach a changed planning.
1269
+ * Option changes take the lock the same way, but only until the host has finished them: their re-render is not waited
1270
+ * for, so the view may show the previous state for a moment. The host queues its settings panel's option changes
1271
+ * (`runPlannerOperation` with `waitForLock`), so two of them never run at once and they apply in the order they were made.
1269
1272
  */
1270
1273
 
1271
1274
  /**
@@ -1340,7 +1343,7 @@ var createPlannerOperationSlice = function createPlannerOperationSlice(set, get)
1340
1343
  }
1341
1344
  var id = ++lastOperationId;
1342
1345
  var scene = get().scene;
1343
- var expectsScene = (_options$expectsScene = options === null || options === void 0 ? void 0 : options.expectsScene) !== null && _options$expectsScene !== void 0 ? _options$expectsScene : true;
1346
+ var expectsScene = kind !== 'configure' && ((_options$expectsScene = options === null || options === void 0 ? void 0 : options.expectsScene) !== null && _options$expectsScene !== void 0 ? _options$expectsScene : true);
1344
1347
  set({
1345
1348
  pendingOperation: {
1346
1349
  id: id,
@@ -6510,7 +6513,7 @@ function LazyBoundary(_ref) {
6510
6513
  }
6511
6514
 
6512
6515
  var loadChunk$5 = memoChunk(function () {
6513
- return import('./WaterSurface-1678292e.js');
6516
+ return import('./WaterSurface-1b33fc73.js');
6514
6517
  });
6515
6518
 
6516
6519
  /**
@@ -6540,7 +6543,7 @@ function WaterSurfaceLazy() {
6540
6543
  }
6541
6544
 
6542
6545
  var loadChunk$4 = memoChunk(function () {
6543
- return import('./DeckCutoutSubsystem-eb47a2b1.js');
6546
+ return import('./DeckCutoutSubsystem-036a108a.js');
6544
6547
  });
6545
6548
 
6546
6549
  /**
@@ -6570,7 +6573,7 @@ function DeckCutoutLazy() {
6570
6573
  }
6571
6574
 
6572
6575
  var loadChunk$3 = memoChunk(function () {
6573
- return import('./SunLensflare-195e78f0.js');
6576
+ return import('./SunLensflare-fd8e41df.js');
6574
6577
  });
6575
6578
 
6576
6579
  /**
@@ -6601,7 +6604,7 @@ function SunLensflareLazy(props) {
6601
6604
  }
6602
6605
 
6603
6606
  var loadChunk$2 = memoChunk(function () {
6604
- return import('./RoomShell-44b80d5f.js');
6607
+ return import('./RoomShell-dd0b4568.js');
6605
6608
  });
6606
6609
 
6607
6610
  /**
@@ -17100,10 +17103,11 @@ function usePlanAnchors(setId, elementId, isBox) {
17100
17103
 
17101
17104
  /**
17102
17105
  * Whether the element overlay may show its copy arrows. They anchor to the planner's plan (`scene2d`, the AVL / AVR
17103
- * docking points) relative to where the element shows; while a drag or turn runs, and until the answer to a move, add,
17104
- * delete or option change shows, the two disagree (a released move is held at its drop, the plan or the 3D scene still
17105
- * has the other pose), so the arrows would stand at the old place. They wait for the answer; they could not be used
17106
- * meanwhile anyway.
17106
+ * docking points) relative to where the element shows; while a drag or turn runs, and until the answer to a move, add or
17107
+ * delete shows, the two disagree (a released move is held at its drop, the plan or the 3D scene still has the other
17108
+ * pose), so the arrows would stand at the old place. They wait for that answer; they could not be used meanwhile anyway.
17109
+ * An option change holds them back only while the planner works on it, not until its re-render shows: right after one
17110
+ * they may stand at the old place for a moment.
17107
17111
  */
17108
17112
  function copyArrowsAllowed(s) {
17109
17113
  return !s.isDragging && !s.isRotating && s.pendingOperation == null;
@@ -20587,7 +20591,7 @@ function AccessoryDropController() {
20587
20591
  }
20588
20592
 
20589
20593
  var loadChunk$1 = memoChunk(function () {
20590
- return import('./doorSwapChunk-6af4d939.js');
20594
+ return import('./doorSwapChunk-9ee4befc.js');
20591
20595
  });
20592
20596
 
20593
20597
  /** Starts the door swap chunk download; idempotent. */
@@ -20766,7 +20770,7 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t
20766
20770
 
20767
20771
  /** One chunk request for the viewer's hints and every host mark. */
20768
20772
  var loadChunk = memoChunk(function () {
20769
- return import('./coachChunk-5f8a8ec6.js');
20773
+ return import('./coachChunk-6b35e349.js');
20770
20774
  });
20771
20775
  var loadHints = function loadHints() {
20772
20776
  return loadChunk().then(function (m) {
@@ -27738,6 +27742,45 @@ function unionBounds$1(bounds) {
27738
27742
  return union;
27739
27743
  }
27740
27744
 
27745
+ /** The size the planner declares for a block of elements: the union of their footprints (m) and their sizes in cm. */
27746
+
27747
+ /** Bases (cm) closer than this are one base. */
27748
+ var SAME_BASE_CM = 0.5;
27749
+
27750
+ // Whether the elements stand side by side on one base, so the tallest is the block's height. A top unit on its carcass
27751
+ // or a plinth under it does not; elements without a base may be stacked too (a single element is its own block).
27752
+ function shareOneBase(elements) {
27753
+ var bases = elements.map(function (el) {
27754
+ return el.elevation;
27755
+ });
27756
+ if (bases.some(function (base) {
27757
+ return base === undefined;
27758
+ })) return elements.length === 1;
27759
+ var known = bases;
27760
+ return Math.max.apply(Math, _toConsumableArray(known)) - Math.min.apply(Math, _toConsumableArray(known)) < SAME_BASE_CM;
27761
+ }
27762
+
27763
+ /**
27764
+ * The planned size of `elements`, which wins over measured meshes wherever a size is shown (as with Unity, which takes
27765
+ * the planner's TechSize before the geometry, and the 2D plan). Width and depth are the union of the footprints, not
27766
+ * the sum of the widths; undefined when an element has no planned footprint, so the caller measures the meshes instead.
27767
+ */
27768
+ function articleExtents(elements) {
27769
+ if (elements.length === 0 || !elements.every(isRenderable2DElement)) return undefined;
27770
+ var box = unionBounds$1(elements.map(computeElementBounds));
27771
+ var heights = elements.map(function (el) {
27772
+ var _el$height;
27773
+ return (_el$height = el.height) !== null && _el$height !== void 0 ? _el$height : 0;
27774
+ });
27775
+ return _objectSpread$8(_objectSpread$8({}, box), {}, {
27776
+ widthCm: (box.maxX - box.minX) * 100,
27777
+ depthCm: (box.maxZ - box.minZ) * 100,
27778
+ heightCm: shareOneBase(elements) && heights.every(function (height) {
27779
+ return height > 0;
27780
+ }) ? Math.max.apply(Math, _toConsumableArray(heights)) : undefined
27781
+ });
27782
+ }
27783
+
27741
27784
  /**
27742
27785
  * Measure the plan. The total extents are the union of the element bounds, i.e. the same source
27743
27786
  * the docking-group unions use. (The bridge's `boundingBox` ignores element rotation; any mismatch
@@ -28795,18 +28838,27 @@ function buildOBBLines(elem2d, bounds, sides) {
28795
28838
  }, sides);
28796
28839
  }
28797
28840
 
28798
- /** Axis-aligned lines for a docked group (or a scene2d-less fallback), sides picked by camera. */
28841
+ /**
28842
+ * Axis-aligned lines for a docked group (or a scene2d-less fallback), sides picked by camera. The planned sizes of
28843
+ * `elements` label and place them; the measured `bounds` give their Y range and stand in for a size not planned.
28844
+ */
28799
28845
  function buildAABBLines(bounds, sides) {
28846
+ var _planned$minX, _planned$maxX, _planned$minZ, _planned$maxZ;
28847
+ var elements = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
28800
28848
  var min = bounds.min,
28801
28849
  max = bounds.max;
28802
- var widthM = max.x - min.x;
28803
- var depthM = max.z - min.z;
28804
- var heightM = max.y - min.y;
28850
+ var planned = articleExtents(elements);
28851
+ var minX = (_planned$minX = planned === null || planned === void 0 ? void 0 : planned.minX) !== null && _planned$minX !== void 0 ? _planned$minX : min.x;
28852
+ var maxX = (_planned$maxX = planned === null || planned === void 0 ? void 0 : planned.maxX) !== null && _planned$maxX !== void 0 ? _planned$maxX : max.x;
28853
+ var minZ = (_planned$minZ = planned === null || planned === void 0 ? void 0 : planned.minZ) !== null && _planned$minZ !== void 0 ? _planned$minZ : min.z;
28854
+ var maxZ = (_planned$maxZ = planned === null || planned === void 0 ? void 0 : planned.maxZ) !== null && _planned$maxZ !== void 0 ? _planned$maxZ : max.z;
28855
+ var widthM = maxX - minX;
28856
+ var depthM = maxZ - minZ;
28805
28857
 
28806
28858
  // Same corner ring order as the OBB path; the edge directions are the world axes, which stay
28807
28859
  // unit length even when a side measures zero.
28808
28860
  var box = {
28809
- corners: [[min.x, min.z], [max.x, min.z], [max.x, max.z], [min.x, max.z]],
28861
+ corners: [[minX, minZ], [maxX, minZ], [maxX, maxZ], [minX, maxZ]],
28810
28862
  width: {
28811
28863
  ux: 1,
28812
28864
  uz: 0,
@@ -28820,10 +28872,14 @@ function buildAABBLines(bounds, sides) {
28820
28872
  minY: min.y,
28821
28873
  maxY: max.y
28822
28874
  };
28875
+ // Planned sizes keep their millimetres (the label formats them per unit, like the basket size); measured ones are whole cm.
28876
+ var toMm = function toMm(cm) {
28877
+ return Math.round(cm * 10) / 10;
28878
+ };
28823
28879
  var size = {
28824
- widthCm: Math.round(widthM * 100),
28825
- depthCm: Math.round(depthM * 100),
28826
- heightCm: Math.round(heightM * 100)
28880
+ widthCm: planned ? toMm(planned.widthCm) : Math.round(widthM * 100),
28881
+ depthCm: planned ? toMm(planned.depthCm) : Math.round(depthM * 100),
28882
+ heightCm: (planned === null || planned === void 0 ? void 0 : planned.heightCm) !== undefined ? toMm(planned.heightCm) : Math.round((max.y - min.y) * 100)
28827
28883
  };
28828
28884
  return buildBoxLines(box, size, sides);
28829
28885
  }
@@ -28841,13 +28897,25 @@ function groupKey(keys) {
28841
28897
  function planArticleGroups(scene2d) {
28842
28898
  if (!scene2d || scene2d.elements.length === 0) return [];
28843
28899
  return partitionGroups(scene2d).map(function (elementKeys) {
28900
+ var members = elementKeys.map(function (key) {
28901
+ return scene2d.elements.find(function (e) {
28902
+ return qualifiedElementKey(e.setId, e.elementId) === key;
28903
+ });
28904
+ });
28905
+ // Single detached article → rotation-aware OBB lines; docked group → overall AABB, labelled with its members' planned sizes.
28906
+ if (elementKeys.length === 1) return {
28907
+ key: groupKey(elementKeys),
28908
+ elementKeys: elementKeys,
28909
+ element: members[0]
28910
+ };
28911
+ // A member missing from scene2d leaves the group to its measured meshes.
28912
+ var elements = members.every(function (e) {
28913
+ return e !== undefined;
28914
+ }) ? members : undefined;
28844
28915
  return {
28845
28916
  key: groupKey(elementKeys),
28846
28917
  elementKeys: elementKeys,
28847
- // Single detached article → rotation-aware OBB lines; docked group → overall AABB.
28848
- element: elementKeys.length === 1 ? scene2d.elements.find(function (e) {
28849
- return qualifiedElementKey(e.setId, e.elementId) === elementKeys[0];
28850
- }) : undefined
28918
+ elements: elements
28851
28919
  };
28852
28920
  });
28853
28921
  }
@@ -28864,7 +28932,7 @@ function buildArticleLines(groups, boundsByGroup, sidesByGroup) {
28864
28932
  var bounds = boundsByGroup.get(group.key);
28865
28933
  if (!bounds) continue;
28866
28934
  var sides = (_sidesByGroup$get = sidesByGroup.get(group.key)) !== null && _sidesByGroup$get !== void 0 ? _sidesByGroup$get : DEFAULT_SIDES;
28867
- result.push.apply(result, _toConsumableArray(group.element ? buildOBBLines(group.element, bounds, sides) : buildAABBLines(bounds, sides)));
28935
+ result.push.apply(result, _toConsumableArray(group.element ? buildOBBLines(group.element, bounds, sides) : buildAABBLines(bounds, sides, group.elements)));
28868
28936
  }
28869
28937
  } catch (err) {
28870
28938
  _iterator.e(err);
@@ -31391,7 +31459,7 @@ function registerOutlineTiming(label, effect) {
31391
31459
  if (effect) gpuTimingTargets.outlines.set(label, effect);else gpuTimingTargets.outlines["delete"](label);
31392
31460
  }
31393
31461
  var GpuPassTiming = /*#__PURE__*/lazy(function () {
31394
- return import('./GpuPassTiming-ffef4ca2.js').then(function (m) {
31462
+ return import('./GpuPassTiming-2f4ce2ca.js').then(function (m) {
31395
31463
  return {
31396
31464
  "default": m.GpuPassTiming
31397
31465
  };
@@ -34066,6 +34134,39 @@ function stillOnWhite(canvas, quality) {
34066
34134
  return still.toDataURL('image/jpeg', quality);
34067
34135
  }
34068
34136
 
34137
+ /**
34138
+ * Rounded to a millimetre: the value is displayed ("B: 203.4 cm x T: 90 cm") and bucketed by analytics, and raw float
34139
+ * extents would render as unusable precision.
34140
+ */
34141
+ var toMm = function toMm(cm) {
34142
+ return Math.round(cm * 10) / 10;
34143
+ };
34144
+
34145
+ /**
34146
+ * The size a host writes into the basket's bounding box, where the render farm's `DIM3D` used to go: the planned size
34147
+ * of the planning's elements (of set `setId` alone, when given), as Unity's DIM3D took the planner's sizes before the
34148
+ * geometry. The `measured` meshes (cm) stand in for a plan without footprint and for a height the plan leaves open;
34149
+ * null when neither has a size.
34150
+ */
34151
+ function contentSizeCm(scene2d, setId, measured) {
34152
+ var _scene2d$elements$fil, _planned$heightCm;
34153
+ var elements = (_scene2d$elements$fil = scene2d === null || scene2d === void 0 ? void 0 : scene2d.elements.filter(function (el) {
34154
+ return !setId || el.setId === setId;
34155
+ })) !== null && _scene2d$elements$fil !== void 0 ? _scene2d$elements$fil : [];
34156
+ var planned = articleExtents(elements);
34157
+ var height = (_planned$heightCm = planned === null || planned === void 0 ? void 0 : planned.heightCm) !== null && _planned$heightCm !== void 0 ? _planned$heightCm : measured === null || measured === void 0 ? void 0 : measured.h;
34158
+ if (!planned || height === undefined) return measured && {
34159
+ w: toMm(measured.w),
34160
+ h: toMm(measured.h),
34161
+ d: toMm(measured.d)
34162
+ };
34163
+ return {
34164
+ w: toMm(planned.widthCm),
34165
+ h: toMm(height),
34166
+ d: toMm(planned.depthCm)
34167
+ };
34168
+ }
34169
+
34069
34170
  function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(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; } } }; }
34070
34171
  function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(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$7(r, a) : void 0; } }
34071
34172
  function _arrayLikeToArray$7(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; }
@@ -34541,7 +34642,7 @@ function useCaptureEngine() {
34541
34642
  snapshotRef.current = takeSnapshot(ctx);
34542
34643
  // Before the content size and the first shot's framing, which read the visible elements.
34543
34644
  showSetAlone(request.batch.setId);
34544
- publishContentSize();
34645
+ publishContentSize(request.batch.setId);
34545
34646
  shotsRef.current = request.batch.shots;
34546
34647
  resolveRef.current = request.resolve;
34547
34648
  rejectRef.current = request.reject;
@@ -34599,28 +34700,23 @@ function useCaptureEngine() {
34599
34700
  }, []);
34600
34701
 
34601
34702
  /**
34602
- * Publishes the article-geometry extents a host writes into the basket's bounding box, where the
34603
- * render farm's `DIM3D` used to go. Runs at batch start, BEFORE `applyShotConfig`: a 2D shot or
34604
- * a shot that hides elements would otherwise shrink the box; a batch with a `setId` measures that
34605
- * set. Scene units are metres and the consumers of `DIM3D` are all in centimetres, hence the x100.
34703
+ * Publishes the size a host writes into the basket's bounding box, where the render farm's `DIM3D` used to go: the
34704
+ * planned article sizes (`contentSizeCm`), the article geometry where the plan has none. Runs at batch start, BEFORE
34705
+ * `applyShotConfig`: a 2D shot or a shot that hides elements would otherwise shrink the measured box; a batch with a
34706
+ * `setId` measures that set. Scene units are metres and the consumers of `DIM3D` are all in centimetres, hence the x100.
34606
34707
  */
34607
- function publishContentSize() {
34708
+ function publishContentSize(setId) {
34608
34709
  var box = sceneContentBox(threeScene);
34609
- if (!box) {
34610
- useRTVStore$1.getState()._captureSetContentSize(null);
34611
- return;
34612
- }
34613
- var size = box.getSize(new Vector3());
34614
- // Rounded to a millimetre: the value is displayed ("B: 203.4 cm x T: 90 cm") and bucketed by
34615
- // analytics, and raw float extents would render as unusable precision.
34616
- var cm = function cm(metres) {
34617
- return Math.round(metres * 1000) / 10;
34618
- };
34619
- useRTVStore$1.getState()._captureSetContentSize({
34620
- w: cm(size.x),
34621
- h: cm(size.y),
34622
- d: cm(size.z)
34623
- });
34710
+ var size = box === null || box === void 0 ? void 0 : box.getSize(new Vector3());
34711
+ var measured = size ? {
34712
+ w: size.x * 100,
34713
+ h: size.y * 100,
34714
+ d: size.z * 100
34715
+ } : null;
34716
+ var _useRTVStore$getState = useRTVStore$1.getState(),
34717
+ scene2d = _useRTVStore$getState.scene2d,
34718
+ _captureSetContentSize = _useRTVStore$getState._captureSetContentSize;
34719
+ _captureSetContentSize(contentSizeCm(scene2d, setId, measured));
34624
34720
  }
34625
34721
 
34626
34722
  /** Hides the other sets' elements for a batch with a `setId` (see `ShotBatch.setId`). */
@@ -37174,6 +37270,8 @@ function buildScene2D(elementsBySet) {
37174
37270
  depth: d,
37175
37271
  svgDataUrl: svgRaw ? "data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(svgRaw)))) : undefined,
37176
37272
  height: h > 0 ? h : undefined,
37273
+ // The planner's centre is the middle of the height (WorldPosCorner); a legacy planning puts floor elements at 0.
37274
+ elevation: center.y !== undefined && h > 0 ? center.y - h / 2 : undefined,
37177
37275
  dockingButtons: dockingButtons.length > 0 ? dockingButtons : undefined,
37178
37276
  dockingPointsDebug: dockingPointsDebug.length > 0 ? dockingPointsDebug : undefined,
37179
37277
  outlinesDebug: outlinesDebug,
@@ -1,4 +1,4 @@
1
- export { aI as CoachMark, aO as ENVIRONMENT_CONFIG, aN as WHITE_ROOM_PRESET, aG as buildScene2D, aE as default, x as doorKeyOf, aP as emitConfig, aJ as findPlannedAccessory, aH as getDimensionConfigs, aD as internals, K as isCoachHintSeen, e as isElementVisibleAt, aF as isOperationBlocked, aM as isRenderSceneShown, aL as isSameRenderScene, m as markCoachHintSeen, aK as parseAccessoryPath, y as qualifiedElementKey, t as textFor, n as useCoachHint, u as useRTVStore } from './index-4657421e.js';
1
+ export { aI as CoachMark, aO as ENVIRONMENT_CONFIG, aN as WHITE_ROOM_PRESET, aG as buildScene2D, aE as default, x as doorKeyOf, aP as emitConfig, aJ as findPlannedAccessory, aH as getDimensionConfigs, aD as internals, K as isCoachHintSeen, e as isElementVisibleAt, aF as isOperationBlocked, aM as isRenderSceneShown, aL as isSameRenderScene, m as markCoachHintSeen, aK as parseAccessoryPath, y as qualifiedElementKey, t as textFor, n as useCoachHint, u as useRTVStore } from './index-a70c59aa.js';
2
2
  import 'react';
3
3
  import '@react-three/fiber';
4
4
  import 'three';
@@ -0,0 +1,10 @@
1
+ import type { CapturedContentSize } from '../store/slices/capture';
2
+ import type { RTVScene2D } from '../types/scene2d';
3
+ /**
4
+ * The size a host writes into the basket's bounding box, where the render farm's `DIM3D` used to go: the planned size
5
+ * of the planning's elements (of set `setId` alone, when given), as Unity's DIM3D took the planner's sizes before the
6
+ * geometry. The `measured` meshes (cm) stand in for a plan without footprint and for a height the plan leaves open;
7
+ * null when neither has a size.
8
+ */
9
+ export declare function contentSizeCm(scene2d: RTVScene2D | null, setId: string | undefined, measured: CapturedContentSize | null): CapturedContentSize | null;
10
+ //# sourceMappingURL=contentSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentSize.d.ts","sourceRoot":"","sources":["../../../../../src/capture/contentSize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,UAAU,GAAG,IAAI,EAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GACnC,mBAAmB,GAAG,IAAI,CAM5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contentSize.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentSize.test.d.ts","sourceRoot":"","sources":["../../../../../src/capture/contentSize.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"useCaptureEngine.d.ts","sourceRoot":"","sources":["../../../../../src/capture/useCaptureEngine.ts"],"names":[],"mappings":"AA2BA;;;;GAIG;AACH,wBAAgB,gBAAgB,SA4Q/B"}
1
+ {"version":3,"file":"useCaptureEngine.d.ts","sourceRoot":"","sources":["../../../../../src/capture/useCaptureEngine.ts"],"names":[],"mappings":"AA4BA;;;;GAIG;AACH,wBAAgB,gBAAgB,SAuQ/B"}
@@ -65,6 +65,19 @@ interface LevelLines {
65
65
  }
66
66
  /** The union of the element bounds that are finite; infinite for none. */
67
67
  export declare function unionBounds(bounds: readonly ElementBounds[]): PolygonBounds;
68
+ /** The size the planner declares for a block of elements: the union of their footprints (m) and their sizes in cm. */
69
+ export interface ArticleExtents extends PolygonBounds {
70
+ widthCm: number;
71
+ depthCm: number;
72
+ /** The tallest element; absent when an element declares no height or the elements do not share one base (the meshes measure that). */
73
+ heightCm?: number;
74
+ }
75
+ /**
76
+ * The planned size of `elements`, which wins over measured meshes wherever a size is shown (as with Unity, which takes
77
+ * the planner's TechSize before the geometry, and the 2D plan). Width and depth are the union of the footprints, not
78
+ * the sum of the widths; undefined when an element has no planned footprint, so the caller measures the meshes instead.
79
+ */
80
+ export declare function articleExtents(elements: readonly RTVElement2D[]): ArticleExtents | undefined;
68
81
  /**
69
82
  * Measure the plan. The total extents are the union of the element bounds, i.e. the same source
70
83
  * the docking-group unions use. (The bridge's `boundingBox` ignores element rotation; any mismatch
@@ -1 +1 @@
1
- {"version":3,"file":"dimensionLineBuilders2D.d.ts","sourceRoot":"","sources":["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EAChC,QAAQ,SAAoB,EAC5B,UAAU,GAAE,aAAa,EAAO,GAC/B,aAAa,EAAE,CA0EjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EAAE,EACrB,WAAW,EAAE,MAAM,EAAE,EACrB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,aAAa,EAAE,EAC3B,KAAK,GAAE,SAAyB,GAC/B,aAAa,EAAE,CAwCjB;AAiBD,+GAA+G;AAC/G,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,iBAAiB,EACvB,QAAQ,SAAoB,EAC5B,KAAK,GAAE,SAAyB,GAC/B,aAAa,EAAE,CAuCjB"}
1
+ {"version":3,"file":"dimensionLineBuilders2D.d.ts","sourceRoot":"","sources":["../../../../../../src/core/dimension-lines/dimensionLineBuilders2D.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAe,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C,uHAAuH;AACvH,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAYtC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,E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AK,GAAE,SAAyB,GAC/B,aAAa,EAAE,CAuCjB"}
@@ -35,14 +35,19 @@ export interface ArticleGroup {
35
35
  elementKeys: string[];
36
36
  /** The lone element of a detached group; absent for docked groups (they dimension as an AABB). */
37
37
  element?: RTVElement2D;
38
+ /** The members of a docked group, whose planned sizes label its AABB lines. */
39
+ elements?: RTVElement2D[];
38
40
  }
39
41
  /**
40
42
  * Build OBB-aligned dimension lines from scene2d element data.
41
43
  * Width & depth lines follow the element's rotation; height uses the 3D Y range.
42
44
  */
43
45
  export declare function buildOBBLines(elem2d: RTVElement2D, bounds: Bounds3, sides: SideSigns): DimLine3DDesc[];
44
- /** Axis-aligned lines for a docked group (or a scene2d-less fallback), sides picked by camera. */
45
- export declare function buildAABBLines(bounds: Bounds3, sides: SideSigns): DimLine3DDesc[];
46
+ /**
47
+ * Axis-aligned lines for a docked group (or a scene2d-less fallback), sides picked by camera. The planned sizes of
48
+ * `elements` label and place them; the measured `bounds` give their Y range and stand in for a size not planned.
49
+ */
50
+ export declare function buildAABBLines(bounds: Bounds3, sides: SideSigns, elements?: readonly RTVElement2D[]): DimLine3DDesc[];
46
51
  /** Stable key for a group of qualified element keys (order-independent). */
47
52
  export declare function groupKey(keys: string[]): string;
48
53
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"dimensionLineBuilders3D.d.ts","sourceRoot":"","sources":["../../../../../../src/core/dimension-lines/dimensionLineBuilders3D.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAI3D,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAWzD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,QAAQ,EAAE,IAAI,CAAC;IACf,qGA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I,GAAG,OAAO,CAMzF;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC7B,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACzC,aAAa,EAAE,OAAO,GACrB,aAAa,EAAE,CA8CjB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAsChH"}
1
+ {"version":3,"file":"dimensionLineBuilders3D.d.ts","sourceRoot":"","sources":["../../../../../../src/core/dimension-lines/dimensionLineBuilders3D.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAK3D,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAWzD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,QAAQ,EAAE,IAAI,CAAC;IACf,qGAAqG;IACrG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACtB,wFAAwF;IACxF,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACX,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACZ;AAID,4EAA4E;AAC5E,MAAM,WAAW,YAA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A8CjB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAsChH"}
@@ -1,10 +1,11 @@
1
1
  import type { RTVStore } from '../../store';
2
2
  /**
3
3
  * Whether the element overlay may show its copy arrows. They anchor to the planner's plan (`scene2d`, the AVL / AVR
4
- * docking points) relative to where the element shows; while a drag or turn runs, and until the answer to a move, add,
5
- * delete or option change shows, the two disagree (a released move is held at its drop, the plan or the 3D scene still
6
- * has the other pose), so the arrows would stand at the old place. They wait for the answer; they could not be used
7
- * meanwhile anyway.
4
+ * docking points) relative to where the element shows; while a drag or turn runs, and until the answer to a move, add or
5
+ * delete shows, the two disagree (a released move is held at its drop, the plan or the 3D scene still has the other
6
+ * pose), so the arrows would stand at the old place. They wait for that answer; they could not be used meanwhile anyway.
7
+ * An option change holds them back only while the planner works on it, not until its re-render shows: right after one
8
+ * they may stand at the old place for a moment.
8
9
  */
9
10
  export declare function copyArrowsAllowed(s: Pick<RTVStore, 'isDragging' | 'isRotating' | 'pendingOperation'>): boolean;
10
11
  //# sourceMappingURL=overlayChrome.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlayChrome.d.ts","sourceRoot":"","sources":["../../../../../../src/core/interaction/overlayChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,GAAG,kBAAkB,CAAC,GAAG,OAAO,CAE9G"}
1
+ {"version":3,"file":"overlayChrome.d.ts","sourceRoot":"","sources":["../../../../../../src/core/interaction/overlayChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,GAAG,kBAAkB,CAAC,GAAG,OAAO,CAE9G"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildScene2D.d.ts","sourceRoot":"","sources":["../../../../../src/plannerScene2D/buildScene2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmC,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAIpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAMrE,MAAM,WAAW,cAAc;IAC7B,6GAA6G;IAC7G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACxD,8GAA8G;IAC9G,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,EAAE,CAAC,EAAE,OAAO,GAAE,cAAmB,GAAG,UAAU,GAAG,SAAS,CAmJvI"}
1
+ {"version":3,"file":"buildScene2D.d.ts","sourceRoot":"","sources":["../../../../../src/plannerScene2D/buildScene2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmC,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAIpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAMrE,MAAM,WAAW,cAAc;IAC7B,6GAA6G;IAC7G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACxD,8GAA8G;IAC9G,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC1E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,EAAE,CAAC,EAAE,OAAO,GAAE,cAAmB,GAAG,UAAU,GAAG,SAAS,CAqJvI"}
@@ -26,6 +26,7 @@ export interface PlannerElement2DSource extends DockingGraphElement, FollowGraph
26
26
  /** OLF centre (cm); `y` is the height axis. */
27
27
  getWorldPosCenter(): {
28
28
  x: number;
29
+ y?: number;
29
30
  z: number;
30
31
  };
31
32
  /** OLF footprint width (cm). */
@@ -1 +1 @@
1
- {"version":3,"file":"plannerElementSource.d.ts","sourceRoot":"","sources":["../../../../../src/plannerScene2D/plannerElementSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;;;GAIG;AAEH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB,EAAE,kBAAkB;IACrF,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CAAC;QAAC,IAAI,CAAC,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,GAAG,SAAS,CAAC;CAC3G"}
@@ -27,8 +27,8 @@ export interface PendingOperation {
27
27
  /** The host has finished the operation: its callback returned, or the promise it returned settled. */
28
28
  settled: boolean;
29
29
  /**
30
- * The view shows the host's answer: a 3D scene other than `scene`. Nothing to wait for without a 3D scene or when the
31
- * operation changed nothing.
30
+ * The view shows the host's answer: a 3D scene other than `scene`. Nothing to wait for without a 3D scene, when the
31
+ * operation changed nothing, or for an option change.
32
32
  */
33
33
  answered: boolean;
34
34
  }
@@ -39,14 +39,18 @@ export interface PendingOperation {
39
39
  * host holds the others back until the host has finished it (its promise settled) and the view shows its answer. A
40
40
  * failure ends it at once; a re-render that does not arrive is waited for `OPERATION_TIMEOUT_MS` at most. A drag, turn
41
41
  * or accessory move in progress holds new operations back as well: its END would otherwise reach a changed planning.
42
+ * Option changes take the lock the same way, but only until the host has finished them: their re-render is not waited
43
+ * for, so the view may show the previous state for a moment. The host queues its settings panel's option changes
44
+ * (`runPlannerOperation` with `waitForLock`), so two of them never run at once and they apply in the order they were made.
42
45
  */
43
46
  export interface PlannerOperationSlice {
44
47
  /** The operation the host is still answering, null while the planner takes the next one. */
45
48
  pendingOperation: PendingOperation | null;
46
49
  /**
47
50
  * Sends an operation through `send` (which calls the host): false, and `send` is not called, while another one is
48
- * pending or a gesture is in progress (see {@link isOperationBlocked}). A `send` that throws or returns a rejected
49
- * promise ends the operation; one that returns or resolves `false` changed nothing (see {@link PlannerOperationResult}).
51
+ * pending or a gesture is in progress (see {@link isOperationBlocked}).
52
+ * A `send` that throws or returns a rejected promise ends the operation; one that returns or resolves `false`
53
+ * changed nothing (see {@link PlannerOperationResult}).
50
54
  */
51
55
  sendOperation: (kind: PlannerOperationKind, send: () => unknown, options?: SendOperationOptions) => boolean;
52
56
  /** The pending operation is over (answered, failed or timed out): the planner takes the next one. */