@crystaldesign/real-time-viewer-next 26.14.0-beta.15 → 26.14.0-beta.17

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.
@@ -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-cae1dc0d.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-451a8bb2.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-cae1dc0d.js';
6
+ import { I as FRAME_ORDER, u as useRTVStore, ax as outlineSubPasses, ay as isOutlineDrawSkipped, az as gpuTimingTargets, aA as effectsOf } from './index-451a8bb2.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-cae1dc0d.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-451a8bb2.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-cae1dc0d.js';
2
+ import { aB as flushPendingBVH, aC as collectCollisionTargets } from './index-451a8bb2.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-cae1dc0d.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-451a8bb2.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-cae1dc0d.js';
1
+ import './index-451a8bb2.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-cae1dc0d.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-451a8bb2.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-6f8953b3.js';
5
+ import { c as clamp, p as placeChipInBox, T as TOUCH_MAX_BOTTOM } from './chipPlacement-f6e598a2.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-cae1dc0d.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-451a8bb2.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-6f8953b3.js';
11
+ import { T as TOUCH_MAX_BOTTOM, p as placeChipInBox } from './chipPlacement-f6e598a2.js';
12
12
  import '@crystaldesign/diva-core';
13
13
  import '@babel/runtime/helpers/asyncToGenerator';
14
14
  import '@babel/runtime/helpers/typeof';
@@ -6510,7 +6510,7 @@ function LazyBoundary(_ref) {
6510
6510
  }
6511
6511
 
6512
6512
  var loadChunk$5 = memoChunk(function () {
6513
- return import('./WaterSurface-0d7a3c23.js');
6513
+ return import('./WaterSurface-aa2471d6.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-13b8e507.js');
6543
+ return import('./DeckCutoutSubsystem-6aca7b92.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-86f710fd.js');
6573
+ return import('./SunLensflare-8e6b2ccb.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-eadffdd1.js');
6604
+ return import('./RoomShell-e9d62ae3.js');
6605
6605
  });
6606
6606
 
6607
6607
  /**
@@ -20587,7 +20587,7 @@ function AccessoryDropController() {
20587
20587
  }
20588
20588
 
20589
20589
  var loadChunk$1 = memoChunk(function () {
20590
- return import('./doorSwapChunk-6d57e1e6.js');
20590
+ return import('./doorSwapChunk-4ba535c4.js');
20591
20591
  });
20592
20592
 
20593
20593
  /** Starts the door swap chunk download; idempotent. */
@@ -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-4af9125f.js');
20769
+ return import('./coachChunk-f22b1ed4.js');
20770
20770
  });
20771
20771
  var loadHints = function loadHints() {
20772
20772
  return loadChunk().then(function (m) {
@@ -31192,7 +31192,7 @@ function registerOutlineTiming(label, effect) {
31192
31192
  if (effect) gpuTimingTargets.outlines.set(label, effect);else gpuTimingTargets.outlines["delete"](label);
31193
31193
  }
31194
31194
  var GpuPassTiming = /*#__PURE__*/lazy(function () {
31195
- return import('./GpuPassTiming-6a4b886c.js').then(function (m) {
31195
+ return import('./GpuPassTiming-47d7d14b.js').then(function (m) {
31196
31196
  return {
31197
31197
  "default": m.GpuPassTiming
31198
31198
  };
@@ -37152,11 +37152,14 @@ var WHITE_ROOM_PRESET = {
37152
37152
  color: '#ffffff'
37153
37153
  },
37154
37154
  backLight: false,
37155
+ // The sun is the only shadow caster, and the floor is an invisible shadow catcher: a shadow that lands
37156
+ // far from the footprint has nothing to sit on and reads as a plane in mid-air. Steep like the old
37157
+ // viewer's top light (0.133, -1, -0.249), so a shadow stays within ~0.3 × the article's height of it.
37155
37158
  sun: {
37156
37159
  enabled: true,
37157
37160
  intensity: 0.7,
37158
37161
  azimuth: 332,
37159
- elevation: 38,
37162
+ elevation: 74,
37160
37163
  color: '#ffffff',
37161
37164
  lensflare: {
37162
37165
  enabled: false
@@ -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-cae1dc0d.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-451a8bb2.js';
2
2
  import 'react';
3
3
  import '@react-three/fiber';
4
4
  import 'three';
@@ -1 +1 @@
1
- {"version":3,"file":"whiteRoomPreset.d.ts","sourceRoot":"","sources":["../../../../../src/utils/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