@crystaldesign/real-time-viewer-next 26.13.0 → 26.13.1-rc.1
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-e1756fdf.js → DeckCutoutSubsystem-bdc36410.js} +1 -1
- package/build/esm/{GpuPassTiming-215c7984.js → GpuPassTiming-c4c11e63.js} +1 -1
- package/build/esm/{RoomShell-652c4467.js → RoomShell-0b233d8e.js} +1 -1
- package/build/esm/{SunLensflare-5c378c11.js → SunLensflare-f56959d2.js} +1 -1
- package/build/esm/{WaterSurface-820ddbbb.js → WaterSurface-5b80cf7c.js} +1 -1
- package/build/esm/{chipPlacement-72b1333a.js → chipPlacement-9b7f88ee.js} +1 -1
- package/build/esm/{coachChunk-e45885aa.js → coachChunk-6eccb0bd.js} +2 -2
- package/build/esm/{doorSwapChunk-d1ae9204.js → doorSwapChunk-071c6147.js} +2 -2
- package/build/esm/{index-39485073.js → index-218582a6.js} +16 -12
- package/build/esm/index.js +1 -1
- package/build/types/real-time-viewer-next/src/core/interaction/overlayChrome.d.ts +5 -4
- package/build/types/real-time-viewer-next/src/core/interaction/overlayChrome.d.ts.map +1 -1
- package/build/types/real-time-viewer-next/src/store/slices/plannerOperation.d.ts +8 -4
- package/build/types/real-time-viewer-next/src/store/slices/plannerOperation.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
|
@@ -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-
|
|
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-218582a6.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-
|
|
6
|
+
import { I as FRAME_ORDER, u as useRTVStore, ax as outlineSubPasses, ay as isOutlineDrawSkipped, az as gpuTimingTargets, aA as effectsOf } from './index-218582a6.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-
|
|
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-218582a6.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-
|
|
2
|
+
import { aB as flushPendingBVH, aC as collectCollisionTargets } from './index-218582a6.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-
|
|
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-218582a6.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,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-
|
|
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-218582a6.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-
|
|
5
|
+
import { c as clamp, p as placeChipInBox, T as TOUCH_MAX_BOTTOM } from './chipPlacement-9b7f88ee.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-
|
|
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-218582a6.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-
|
|
11
|
+
import { T as TOUCH_MAX_BOTTOM, p as placeChipInBox } from './chipPlacement-9b7f88ee.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-
|
|
6516
|
+
return import('./WaterSurface-5b80cf7c.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-
|
|
6546
|
+
return import('./DeckCutoutSubsystem-bdc36410.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-
|
|
6576
|
+
return import('./SunLensflare-f56959d2.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-
|
|
6607
|
+
return import('./RoomShell-0b233d8e.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
|
|
17105
|
-
*
|
|
17106
|
-
*
|
|
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-
|
|
20594
|
+
return import('./doorSwapChunk-071c6147.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-
|
|
20773
|
+
return import('./coachChunk-6eccb0bd.js');
|
|
20770
20774
|
});
|
|
20771
20775
|
var loadHints = function loadHints() {
|
|
20772
20776
|
return loadChunk().then(function (m) {
|
|
@@ -31258,7 +31262,7 @@ function registerOutlineTiming(label, effect) {
|
|
|
31258
31262
|
if (effect) gpuTimingTargets.outlines.set(label, effect);else gpuTimingTargets.outlines["delete"](label);
|
|
31259
31263
|
}
|
|
31260
31264
|
var GpuPassTiming = /*#__PURE__*/lazy(function () {
|
|
31261
|
-
return import('./GpuPassTiming-
|
|
31265
|
+
return import('./GpuPassTiming-c4c11e63.js').then(function (m) {
|
|
31262
31266
|
return {
|
|
31263
31267
|
"default": m.GpuPassTiming
|
|
31264
31268
|
};
|
package/build/esm/index.js
CHANGED
|
@@ -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-
|
|
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-218582a6.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@react-three/fiber';
|
|
4
4
|
import 'three';
|
|
@@ -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
|
|
6
|
-
*
|
|
7
|
-
*
|
|
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
|
|
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"}
|
|
@@ -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
|
|
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}).
|
|
49
|
-
* promise ends the operation; one that returns or resolves `false`
|
|
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. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plannerOperation.d.ts","sourceRoot":"","sources":["../../../../../../src/store/slices/plannerOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,S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