@spatial-elements/core 1.0.0-beta.11 → 1.0.0-beta.13

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 (84) hide show
  1. package/dist/catalog/stagedDockGeometry.js +2 -2
  2. package/dist/catalog/stagedDockGeometry.js.map +1 -1
  3. package/dist/spatial-element/SpatialElementDockController.d.ts +1 -2
  4. package/dist/spatial-element/SpatialElementDockController.d.ts.map +1 -1
  5. package/dist/spatial-element/SpatialElementDockController.js +13 -31
  6. package/dist/spatial-element/SpatialElementDockController.js.map +1 -1
  7. package/dist/spatial-element/SpatialElementHeaderFields.d.ts +18 -0
  8. package/dist/spatial-element/SpatialElementHeaderFields.d.ts.map +1 -0
  9. package/dist/spatial-element/SpatialElementHeaderFields.js +100 -0
  10. package/dist/spatial-element/SpatialElementHeaderFields.js.map +1 -0
  11. package/dist/spatial-element/SpatialElementPaneController.d.ts +0 -1
  12. package/dist/spatial-element/SpatialElementPaneController.d.ts.map +1 -1
  13. package/dist/spatial-element/SpatialElementPaneController.js +3 -7
  14. package/dist/spatial-element/SpatialElementPaneController.js.map +1 -1
  15. package/dist/spatial-element/messages.d.ts +1 -0
  16. package/dist/spatial-element/messages.d.ts.map +1 -1
  17. package/dist/spatial-element/messages.js +2 -1
  18. package/dist/spatial-element/messages.js.map +1 -1
  19. package/dist/spatial-element/spatialElementDock.d.ts +1 -1
  20. package/dist/spatial-element/spatialElementDock.js +1 -1
  21. package/dist/spatial-element/spatialElementDock.js.map +1 -1
  22. package/dist/stage/DetailWheelGesture.d.ts +9 -0
  23. package/dist/stage/DetailWheelGesture.d.ts.map +1 -0
  24. package/dist/stage/DetailWheelGesture.js +16 -0
  25. package/dist/stage/DetailWheelGesture.js.map +1 -0
  26. package/dist/stage/LiquidGlassPanel.d.ts +2 -0
  27. package/dist/stage/LiquidGlassPanel.d.ts.map +1 -1
  28. package/dist/stage/LiquidGlassPanel.js +24 -17
  29. package/dist/stage/LiquidGlassPanel.js.map +1 -1
  30. package/dist/stage/MinimapController.d.ts +1 -0
  31. package/dist/stage/MinimapController.d.ts.map +1 -1
  32. package/dist/stage/MinimapController.js +10 -4
  33. package/dist/stage/MinimapController.js.map +1 -1
  34. package/dist/stage/PanelPresentationController.d.ts.map +1 -1
  35. package/dist/stage/PanelPresentationController.js +18 -1
  36. package/dist/stage/PanelPresentationController.js.map +1 -1
  37. package/dist/stage/SpatialElementInteractionController.d.ts +21 -0
  38. package/dist/stage/SpatialElementInteractionController.d.ts.map +1 -1
  39. package/dist/stage/SpatialElementInteractionController.js +185 -16
  40. package/dist/stage/SpatialElementInteractionController.js.map +1 -1
  41. package/dist/stage/SpatialElementPresentationController.js +4 -4
  42. package/dist/stage/SpatialElementPresentationController.js.map +1 -1
  43. package/dist/stage/StageExperience.d.ts +8 -0
  44. package/dist/stage/StageExperience.d.ts.map +1 -1
  45. package/dist/stage/StageExperience.js +37 -21
  46. package/dist/stage/StageExperience.js.map +1 -1
  47. package/dist/stage/StageRenderPipeline.d.ts +4 -0
  48. package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
  49. package/dist/stage/StageRenderPipeline.js +37 -3
  50. package/dist/stage/StageRenderPipeline.js.map +1 -1
  51. package/dist/stage/browserPinch.d.ts +5 -0
  52. package/dist/stage/browserPinch.d.ts.map +1 -0
  53. package/dist/stage/browserPinch.js +29 -0
  54. package/dist/stage/browserPinch.js.map +1 -0
  55. package/dist/stage/minimap/MinimapModelGeometry.d.ts +2 -0
  56. package/dist/stage/minimap/MinimapModelGeometry.d.ts.map +1 -1
  57. package/dist/stage/minimap/MinimapModelGeometry.js +28 -0
  58. package/dist/stage/minimap/MinimapModelGeometry.js.map +1 -1
  59. package/dist/stage/panelContext.d.ts +3 -1
  60. package/dist/stage/panelContext.d.ts.map +1 -1
  61. package/dist/stage/panelContext.js.map +1 -1
  62. package/dist/stage/panelFocusMath.d.ts +8 -0
  63. package/dist/stage/panelFocusMath.d.ts.map +1 -1
  64. package/dist/stage/panelFocusMath.js +12 -0
  65. package/dist/stage/panelFocusMath.js.map +1 -1
  66. package/dist/stage/spaceMousePermission.d.ts +2 -0
  67. package/dist/stage/spaceMousePermission.d.ts.map +1 -1
  68. package/dist/stage/spaceMousePermission.js +10 -4
  69. package/dist/stage/spaceMousePermission.js.map +1 -1
  70. package/dist/stage/spaceMousePlatform.d.ts +1 -1
  71. package/dist/stage/spaceMousePlatform.d.ts.map +1 -1
  72. package/dist/stage/spaceMousePlatform.js +7 -1
  73. package/dist/stage/spaceMousePlatform.js.map +1 -1
  74. package/dist/stage/stageMath.d.ts +2 -7
  75. package/dist/stage/stageMath.d.ts.map +1 -1
  76. package/dist/stage/stageMath.js +4 -9
  77. package/dist/stage/stageMath.js.map +1 -1
  78. package/dist/stage/stageTypes.d.ts +1 -0
  79. package/dist/stage/stageTypes.d.ts.map +1 -1
  80. package/dist/stage/stageTypes.js.map +1 -1
  81. package/dist/stage/stageVisualTest.d.ts +1 -0
  82. package/dist/stage/stageVisualTest.d.ts.map +1 -1
  83. package/dist/stage/stageVisualTest.js.map +1 -1
  84. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"stageMath.js","sourceRoot":"","sources":["../../src/stage/stageMath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtN,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtN,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EACN,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,sBAA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AE,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,WAAW,CAAC,SAAS;QACjE,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,WAAW,CAAC,OAAO;KAC/D,CAAC;AACH,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,uBAAuB,CACtC,OAA0C,EAC1C,IAA6B;IAE7B,OAAO,CACN,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG;QAC7D,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG;QAChE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,CAChE,CAAC;AACH,CAAC","sourcesContent":["import { smoothstep, getPerspectiveDistance, getPanelFocusPerspectiveOffset, getPanelFocusOffset, getPanelFocusDirection, getPanelFocusProgress, getPanelFocusOpacity, getPanelFocusBlur } from './panelFocusMath.js';\nexport { smoothstep, getPerspectiveDistance, getPanelFocusPerspectiveOffset, getPanelFocusOffset, getPanelFocusDirection, getPanelFocusProgress, getPanelFocusOpacity, getPanelFocusBlur } from './panelFocusMath.js';\nimport * as ScalarMath from './scalarMath.js';\nimport * as THREE from 'three/webgpu';\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\nimport {\n\tDEFAULT_CAMERA_AZIMUTH,\n\tDEFAULT_CAMERA_ELEVATION,\n\tMINIMAP_DEFAULT_MODEL_SCALE,\n\tPANEL_POINTER_MAX_TILT,\n\tPANEL_POINTER_PROXIMITY_ASPECT_LIMIT,\n\tPANEL_POINTER_PROXIMITY_MAX,\n\tPANEL_POINTER_PROXIMITY_MIN,\n\tPANEL_POINTER_PROXIMITY_SCALE,\n\tVIEW_RESET_MAX_DURATION,\n\tVIEW_RESET_MIN_DURATION\n} from './stageConstants.js';\n\n/** Resolves declarative orbit angles to a normalized direction from element to camera. */\nexport function getCameraOrbitDirection(azimuth?: number, elevation?: number) {\n\tconst safeAzimuth = Number.isFinite(azimuth) ? (azimuth as number) : DEFAULT_CAMERA_AZIMUTH;\n\tconst safeElevation = ScalarMath.clamp(\n\t\tNumber.isFinite(elevation) ? (elevation as number) : DEFAULT_CAMERA_ELEVATION,\n\t\t-89,\n\t\t89\n\t);\n\tconst azimuthRadians = ScalarMath.degToRad(safeAzimuth);\n\tconst elevationRadians = ScalarMath.degToRad(safeElevation);\n\tconst horizontalScale = Math.cos(elevationRadians);\n\n\treturn new THREE.Vector3(\n\t\tMath.sin(azimuthRadians) * horizontalScale,\n\t\tMath.sin(elevationRadians),\n\t\tMath.cos(azimuthRadians) * horizontalScale\n\t).normalize();\n}\n\n/** Resolves orbit angles to the world-space orientation of a camera looking at the element. */\nexport function getCameraOrbitQuaternion(azimuth?: number, elevation?: number) {\n\tconst direction = getCameraOrbitDirection(azimuth, elevation);\n\tconst lookAtMatrix = new THREE.Matrix4().lookAt(\n\t\tdirection,\n\t\tnew THREE.Vector3(),\n\t\tnew THREE.Vector3(0, 1, 0)\n\t);\n\treturn new THREE.Quaternion().setFromRotationMatrix(lookAtMatrix);\n}\n\n/** Lets close-up resets travel longer while keeping small corrections responsive. */\nexport function getViewResetDuration(focus: number) {\n\treturn ScalarMath.lerp(\n\t\tVIEW_RESET_MIN_DURATION,\n\t\tVIEW_RESET_MAX_DURATION,\n\t\tsmoothstep(0, 1, focus)\n\t);\n}\n\n/** Provides a zero-velocity start and finish for the fitted-view return. */\nexport function getViewResetInterpolation(elapsed: number, duration: number) {\n\treturn smoothstep(0, Math.max(duration, Number.EPSILON), elapsed);\n}\n\n/**\n * Remaps camera focus to the earlier UI-clearance phase.\n *\n * Page content and ordinary panels lead the minimap, with one shared clearance endpoint.\n */\nexport function getStageUiFocus(focus: number) {\n\treturn smoothstep(0.02, 0.82, focus);\n}\n\n/**\n * Starts minimap expansion after the surrounding UI begins to clear, but completes\n * at exactly the same focus as the panel fade. No peripheral movement trails it.\n */\nexport function getMinimapFocus(focus: number) {\n\treturn smoothstep(0.12, 1, getPanelFocusProgress(getStageUiFocus(focus)));\n}\n\n/**\n * Gates minimap expansion behind the UI-clearance phase.\n *\n * Both values originate from the same smoothed camera focus. The gate retains the\n * intentional lead of ordinary content without adding another temporal lag.\n */\nexport function getSequencedMinimapFocus(focus: number, uiFocus: number) {\n\tconst clearance = smoothstep(0.14, 0.46, uiFocus);\n\treturn getMinimapFocus(focus) * clearance;\n}\n\n/**\n * Moves an expanding minimap from its authored panel position to a viewport inset.\n * A zero focus returns the exact resting position; a full focus pins its top-left\n * corner to the requested inset independently of the expanded dimensions.\n */\nexport function getMinimapFocusPositionOffset(\n\tbasePosition: { x: number; y: number },\n\tbaseSize: { width: number; height: number },\n\tvisualSize: { width: number; height: number },\n\tviewportSize: { width: number; height: number },\n\tfocus: number,\n\tinset: number\n) {\n\tconst progress = ScalarMath.clamp(focus, 0, 1);\n\tconst baseCenterX = viewportSize.width * 0.5 + basePosition.x;\n\tconst baseCenterY = viewportSize.height * 0.5 - basePosition.y;\n\tconst restingLeft = baseCenterX - baseSize.width * 0.5;\n\tconst restingTop = baseCenterY - baseSize.height * 0.5;\n\tconst focusedLeft = ScalarMath.lerp(restingLeft, inset, progress);\n\tconst focusedTop = ScalarMath.lerp(restingTop, inset, progress);\n\n\treturn {\n\t\tx: focusedLeft + visualSize.width * 0.5 - baseCenterX,\n\t\ty: baseCenterY - (focusedTop + visualSize.height * 0.5)\n\t};\n}\n\n/** Normalizes browser wheel units to the pixel-based delta used by OrbitControls. */\nexport function normalizeWheelZoomDelta(deltaY: number, deltaMode: number, ctrlKey: boolean) {\n\tlet normalizedDelta = deltaY;\n\tif (deltaMode === 1) normalizedDelta *= 16;\n\tif (deltaMode === 2) normalizedDelta *= 100;\n\tif (ctrlKey) normalizedDelta *= 10;\n\treturn normalizedDelta;\n}\n\n/** Accumulates an OrbitControls-compatible wheel gesture into a clamped zoom target. */\nexport function getWheelZoomTargetDistance(\n\tcurrentTargetDistance: number,\n\tdeltaY: number,\n\tzoomSpeed: number,\n\tminDistance: number,\n\tmaxDistance: number\n) {\n\tconst currentDistance = ScalarMath.clamp(currentTargetDistance, minDistance, maxDistance);\n\tif (!Number.isFinite(deltaY) || deltaY === 0) return currentDistance;\n\n\tconst scale = Math.pow(0.95, Math.max(zoomSpeed, 0) * Math.abs(deltaY * 0.01));\n\tconst targetDistance = deltaY < 0 ? currentDistance * scale : currentDistance / scale;\n\treturn ScalarMath.clamp(targetDistance, minDistance, maxDistance);\n}\n\n/** Resolves the authored minimap scale without imposing an upper creative limit. */\nexport function resolveMinimapModelScale(\n\tmodelScale?: number,\n\tfallback = MINIMAP_DEFAULT_MODEL_SCALE\n) {\n\tconst safeFallback = Number.isFinite(fallback)\n\t\t? Math.max(fallback, 0.2)\n\t\t: MINIMAP_DEFAULT_MODEL_SCALE;\n\tif (modelScale === undefined) return safeFallback;\n\tif (!Number.isFinite(modelScale)) return safeFallback;\n\treturn Math.max(modelScale, 0.2);\n}\n\n/** Blends the configured model multiplier through the damped minimap hover state. */\nexport function getMinimapHoverScale(hoverModelScale: number, pointerReveal: number) {\n\treturn ScalarMath.lerp(1, hoverModelScale, ScalarMath.clamp(pointerReveal, 0, 1));\n}\n\n/**\n * Returns the same opacity used by ordinary panels during close-up focus.\n *\n * Keeping DOM content and panel opacity on one curve prevents either layer from\n * disappearing first while the phase-delayed minimap begins to grow.\n */\nexport function getStageDomFocusOpacity(uiFocus: number) {\n\treturn getPanelFocusOpacity(uiFocus);\n}\n\n/**\n * Defines the camera-distance interval used by the shared close-up focus effect.\n * Starting near the fitted view gives panels and page content enough travel to\n * clear progressively before the element fills the viewport.\n */\nexport function getZoomFocusDistanceRange(maxDistance: number, modelRadius: number) {\n\tconst restDistance = maxDistance * 0.84;\n\tlet closeDistance = Math.max(modelRadius * 0.14, maxDistance * 0.1);\n\tif (closeDistance >= restDistance) closeDistance = restDistance * 0.32;\n\n\treturn { closeDistance, restDistance };\n}\n\n/**\n * Converts camera-to-target distance into a FOV-independent visual distance.\n * This keeps focus effects and zoom limits coherent when a SpaceMouse changes\n * perspective FOV while ordinary OrbitControls continue to dolly the camera.\n */\nexport function getEffectiveCameraDistance(\n\tdistance: number,\n\tcurrentFov: number,\n\treferenceFov: number\n) {\n\tconst safeCurrentFov = ScalarMath.clamp(currentFov, 0.01, 179);\n\tconst safeReferenceFov = ScalarMath.clamp(referenceFov, 0.01, 179);\n\treturn (\n\t\tdistance *\n\t\t(Math.tan(ScalarMath.degToRad(safeCurrentFov * 0.5)) /\n\t\t\tMath.tan(ScalarMath.degToRad(safeReferenceFov * 0.5)))\n\t);\n}\n\n/** Maps dolly and perspective-FOV zoom to the same normalized element focus. */\nexport function getCameraZoomFocus(\n\tdistance: number,\n\tcurrentFov: number,\n\treferenceFov: number,\n\tcloseDistance: number,\n\trestDistance: number\n) {\n\treturn (\n\t\t1 -\n\t\tsmoothstep(\n\t\t\tcloseDistance,\n\t\t\trestDistance,\n\t\t\tgetEffectiveCameraDistance(distance, currentFov, referenceFov)\n\t\t)\n\t);\n}\n\n/**\n * Chooses the distance that best represents the element's visible magnification.\n * OrbitControls reduces its target distance, while 3DxWare may dolly camera and\n * target together and only reduce the distance to the element itself.\n */\nexport function getCameraZoomReferenceDistance(\n\tviewTargetDistance: number,\n\tspatialElementCenterDistance: number\n) {\n\treturn Math.min(viewTargetDistance, spatialElementCenterDistance);\n}\n\n/**\n * Places an untransformed panel around its stage-space center and aligns its\n * top-left corner to the device pixel grid for crisp native DOM text.\n */\nexport function getNativePanelDomPosition(\n\tcenter: { x: number; y: number },\n\tsize: { width: number; height: number },\n\tviewport: { width: number; height: number },\n\tdevicePixelRatio = 1\n) {\n\tconst pixelRatio =\n\t\tNumber.isFinite(devicePixelRatio) && devicePixelRatio > 0 ? devicePixelRatio : 1;\n\tconst snap = (value: number) => Math.round(value * pixelRatio) / pixelRatio;\n\n\treturn {\n\t\tleft: snap(viewport.width * 0.5 + center.x - size.width * 0.5),\n\t\ttop: snap(viewport.height * 0.5 - center.y - size.height * 0.5)\n\t};\n}\n\n/**\n * Compensates an x/y panel anchor when it advances toward a perspective camera.\n *\n * Without this correction, a panel appears to drift away from its DOM anchor as its\n * z position changes.\n */\nexport function getPerspectiveAnchoredPanelPosition(\n\ttargetX: number,\n\ttargetY: number,\n\tcurrentZ: number,\n\tcameraDistance: number\n) {\n\tconst safeCameraDistance = Math.max(cameraDistance, 1);\n\tconst depthScale = ScalarMath.clamp(\n\t\t(safeCameraDistance - currentZ) / safeCameraDistance,\n\t\t0.05,\n\t\t2\n\t);\n\n\treturn { x: targetX * depthScale, y: targetY * depthScale };\n}\n\n/**\n * Builds a local projection root for a panel rendered by the shared stage camera.\n *\n * The translation keeps the panel anchored while it moves in depth. The z shear\n * cancels the shared camera's off-axis perspective, so rotated children converge\n * on the panel center instead of the viewport center.\n */\nexport function setPanelLocalPerspectiveMatrix(\n\ttarget: THREE.Matrix4,\n\ttargetX: number,\n\ttargetY: number,\n\tcurrentZ: number,\n\tcameraDistance: number\n) {\n\tconst safeCameraDistance = Math.max(cameraDistance, 1);\n\tconst anchoredPosition = getPerspectiveAnchoredPanelPosition(\n\t\ttargetX,\n\t\ttargetY,\n\t\tcurrentZ,\n\t\tsafeCameraDistance\n\t);\n\n\treturn target.set(\n\t\t1,\n\t\t0,\n\t\t-targetX / safeCameraDistance,\n\t\tanchoredPosition.x,\n\t\t0,\n\t\t1,\n\t\t-targetY / safeCameraDistance,\n\t\tanchoredPosition.y,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\tcurrentZ,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1\n\t);\n}\n\n/**\n * Calculates the nearest camera distance that contains an oriented bounding box.\n *\n * @param bounds - World-space bounds of the object to frame.\n * @param viewDirection - Direction from the target toward the camera.\n * @param camera - Camera whose FOV and aspect define the frame.\n * @param margin - Multiplicative padding around the fitted object.\n * @param viewportScale - Fraction of the browser viewport available to the element.\n */\nexport function getCameraFitDistance(\n\tbounds: THREE.Box3,\n\tviewDirection: THREE.Vector3,\n\tcamera: THREE.PerspectiveCamera,\n\tmargin = 1,\n\tviewportScale = { x: 1, y: 1 }\n) {\n\tconst corners = getBoxCorners(bounds);\n\tconst center = bounds.getCenter(new THREE.Vector3());\n\tconst forward = viewDirection.clone().normalize().negate();\n\tconst right = new THREE.Vector3().crossVectors(camera.up, forward).normalize();\n\tif (right.lengthSq() < 0.0001) right.set(1, 0, 0);\n\tconst up = new THREE.Vector3().crossVectors(forward, right).normalize();\n\tconst verticalFov = ScalarMath.degToRad(camera.fov);\n\tconst horizontalFov = 2 * Math.atan(Math.tan(verticalFov * 0.5) * camera.aspect);\n\tconst tanY = Math.tan(verticalFov * 0.5) * viewportScale.y;\n\tconst tanX = Math.tan(horizontalFov * 0.5) * viewportScale.x;\n\tlet distance = 0.1;\n\tfor (const corner of corners) {\n\t\tconst offset = corner.sub(center);\n\t\t// Near corners appear larger. Fitting only the flat projected extent lets\n\t\t// deep objects escape the shared media rectangle even with zero padding.\n\t\tconst depth = -offset.dot(forward);\n\t\tdistance = Math.max(distance, depth + Math.abs(offset.dot(right)) / tanX,\n\t\t\tdepth + Math.abs(offset.dot(up)) / tanY);\n\t}\n\treturn distance * margin;\n}\n\n/** Returns the eight corners of an axis-aligned bounding box. */\nexport function getBoxCorners(bounds: THREE.Box3) {\n\tconst { min, max } = bounds;\n\treturn [\n\t\tnew THREE.Vector3(min.x, min.y, min.z),\n\t\tnew THREE.Vector3(min.x, min.y, max.z),\n\t\tnew THREE.Vector3(min.x, max.y, min.z),\n\t\tnew THREE.Vector3(min.x, max.y, max.z),\n\t\tnew THREE.Vector3(max.x, min.y, min.z),\n\t\tnew THREE.Vector3(max.x, min.y, max.z),\n\t\tnew THREE.Vector3(max.x, max.y, min.z),\n\t\tnew THREE.Vector3(max.x, max.y, max.z)\n\t];\n}\n\n/**\n * Reduces only the rotation axis amplified by an elongated panel.\n * Square panels keep the full response on both axes.\n */\nexport function getPanelAspectTiltScale(width: number, height: number) {\n\tconst safeWidth = Math.max(width, 1);\n\tconst safeHeight = Math.max(height, 1);\n\n\treturn {\n\t\tazimuth: Math.min(1, Math.sqrt(safeHeight / safeWidth)),\n\t\televation: Math.min(1, Math.sqrt(safeWidth / safeHeight))\n\t};\n}\n\n/** Returns the independent approach band for one panel. */\nexport function getPanelPointerProximity(width: number, height: number) {\n\tconst safeWidth = Math.max(width, 1);\n\tconst safeHeight = Math.max(height, 1);\n\tconst shortSide = Math.min(safeWidth, safeHeight);\n\tconst longSide = Math.max(safeWidth, safeHeight);\n\tconst aspectCorrection = Math.min(\n\t\tMath.sqrt(longSide / shortSide),\n\t\tPANEL_POINTER_PROXIMITY_ASPECT_LIMIT\n\t);\n\treturn ScalarMath.clamp(\n\t\tshortSide * PANEL_POINTER_PROXIMITY_SCALE * aspectCorrection,\n\t\tPANEL_POINTER_PROXIMITY_MIN,\n\t\tPANEL_POINTER_PROXIMITY_MAX\n\t);\n}\n\n/** Converts distance from a panel edge into a smooth zero-to-one hover influence. */\nexport function getPanelPointerInfluence(distance: number, width: number, height: number) {\n\treturn 1 - smoothstep(0, getPanelPointerProximity(width, height), Math.max(distance, 0));\n}\n\n/** Resolves a pointer-relative pose with axis-specific aspect-ratio attenuation. */\nexport function getPanelPointerRotation(\n\tlookX: number,\n\tlookY: number,\n\tinfluence: number,\n\twidth: number,\n\theight: number\n) {\n\tconst tilt = PANEL_POINTER_MAX_TILT * ScalarMath.clamp(influence, 0, 1);\n\tconst aspectScale = getPanelAspectTiltScale(width, height);\n\treturn {\n\t\tx: -ScalarMath.clamp(lookY, -1, 1) * tilt * aspectScale.elevation,\n\t\ty: -ScalarMath.clamp(lookX, -1, 1) * tilt * aspectScale.azimuth\n\t};\n}\n\n/** Detects panel geometry changes that require a WebGPU mesh rebuild. */\nexport function hasPanelGeometryChanged(\n\tcurrent: Required<LiquidGlassPanelOptions>,\n\tnext: LiquidGlassPanelOptions\n) {\n\treturn (\n\t\tMath.abs(current.width - (next.width ?? current.width)) > 0.5 ||\n\t\tMath.abs(current.height - (next.height ?? current.height)) > 0.5 ||\n\t\tMath.abs(current.radius - (next.radius ?? current.radius)) > 0.5\n\t);\n}\n"]}
1
+ {"version":3,"file":"stageMath.js","sourceRoot":"","sources":["../../src/stage/stageMath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtN,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtN,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EACN,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,oCAAoC,EACpC,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,MAAM,qBAAqB,CAAC;AAE7B,0FAA0F;AAC1F,MAAM,UAAU,uBAAuB,CAAC,OAAgB,EAAE,SAAkB;IAC3E,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,OAAkB,CAAC,CAAC,CAAC,sBAAsB,CAAC;IAC5F,MAAM,aAAa,GAAG,UAAU,CAAC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AAyE;AACzE,MAAM,UAAU,uBAAuB,CACtC,OAA0C,EAC1C,IAA6B;IAE7B,OAAO,CACN,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG;QAC7D,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG;QAChE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,CAChE,CAAC;AACH,CAAC","sourcesContent":["import { smoothstep, getPerspectiveDistance, getPanelFocusPerspectiveOffset, getPanelFocusOffset, getPanelFocusDirection, getPanelFocusProgress, getPanelFocusOpacity, getPanelFocusBlur } from './panelFocusMath.js';\nexport { smoothstep, getPerspectiveDistance, getPanelFocusPerspectiveOffset, getPanelFocusOffset, getPanelFocusDirection, getPanelFocusProgress, getPanelFocusOpacity, getPanelFocusBlur } from './panelFocusMath.js';\nimport * as ScalarMath from './scalarMath.js';\nimport * as THREE from 'three/webgpu';\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\nimport {\n\tDEFAULT_CAMERA_AZIMUTH,\n\tDEFAULT_CAMERA_ELEVATION,\n\tMINIMAP_DEFAULT_MODEL_SCALE,\n\tPANEL_POINTER_MAX_TILT,\n\tPANEL_POINTER_PROXIMITY_ASPECT_LIMIT,\n\tPANEL_POINTER_PROXIMITY_MAX,\n\tPANEL_POINTER_PROXIMITY_MIN,\n\tPANEL_POINTER_PROXIMITY_SCALE,\n\tVIEW_RESET_MAX_DURATION,\n\tVIEW_RESET_MIN_DURATION\n} from './stageConstants.js';\n\n/** Resolves declarative orbit angles to a normalized direction from element to camera. */\nexport function getCameraOrbitDirection(azimuth?: number, elevation?: number) {\n\tconst safeAzimuth = Number.isFinite(azimuth) ? (azimuth as number) : DEFAULT_CAMERA_AZIMUTH;\n\tconst safeElevation = ScalarMath.clamp(\n\t\tNumber.isFinite(elevation) ? (elevation as number) : DEFAULT_CAMERA_ELEVATION,\n\t\t-89,\n\t\t89\n\t);\n\tconst azimuthRadians = ScalarMath.degToRad(safeAzimuth);\n\tconst elevationRadians = ScalarMath.degToRad(safeElevation);\n\tconst horizontalScale = Math.cos(elevationRadians);\n\n\treturn new THREE.Vector3(\n\t\tMath.sin(azimuthRadians) * horizontalScale,\n\t\tMath.sin(elevationRadians),\n\t\tMath.cos(azimuthRadians) * horizontalScale\n\t).normalize();\n}\n\n/** Resolves orbit angles to the world-space orientation of a camera looking at the element. */\nexport function getCameraOrbitQuaternion(azimuth?: number, elevation?: number) {\n\tconst direction = getCameraOrbitDirection(azimuth, elevation);\n\tconst lookAtMatrix = new THREE.Matrix4().lookAt(\n\t\tdirection,\n\t\tnew THREE.Vector3(),\n\t\tnew THREE.Vector3(0, 1, 0)\n\t);\n\treturn new THREE.Quaternion().setFromRotationMatrix(lookAtMatrix);\n}\n\n/** Lets close-up resets travel longer while keeping small corrections responsive. */\nexport function getViewResetDuration(focus: number) {\n\treturn ScalarMath.lerp(\n\t\tVIEW_RESET_MIN_DURATION,\n\t\tVIEW_RESET_MAX_DURATION,\n\t\tsmoothstep(0, 1, focus)\n\t);\n}\n\n/** Provides a zero-velocity start and finish for the fitted-view return. */\nexport function getViewResetInterpolation(elapsed: number, duration: number) {\n\treturn smoothstep(0, Math.max(duration, Number.EPSILON), elapsed);\n}\n\n/**\n * Remaps camera focus to the earlier UI-clearance phase.\n *\n * Page content and ordinary panels lead the minimap, with one shared clearance endpoint.\n */\nexport function getStageUiFocus(focus: number) {\n\treturn smoothstep(0.02, 0.82, focus);\n}\n\n/**\n * Starts minimap expansion after the surrounding UI begins to clear, but completes\n * at exactly the same focus as the panel fade. No peripheral movement trails it.\n */\nexport function getMinimapFocus(focus: number) {\n\treturn smoothstep(0.12, 1, getPanelFocusProgress(getStageUiFocus(focus)));\n}\n\n/** Small layouts share the UI clock exactly; larger layouts retain a subtle lead. */\nexport function getSequencedMinimapFocus(_focus: number, uiFocus: number, viewportWidth = 840) {\n const progress = getPanelFocusProgress(uiFocus);\n return viewportWidth < 840 ? progress : smoothstep(0.025, 1, progress);\n}\n\n/**\n * Moves an expanding minimap from its authored panel position to a viewport inset.\n * A zero focus returns the exact resting position; a full focus pins its top-left\n * corner to the requested inset independently of the expanded dimensions.\n */\nexport function getMinimapFocusPositionOffset(\n\tbasePosition: { x: number; y: number },\n\tbaseSize: { width: number; height: number },\n\tvisualSize: { width: number; height: number },\n\tviewportSize: { width: number; height: number },\n\tfocus: number,\n\tinset: number\n) {\n\tconst progress = ScalarMath.clamp(focus, 0, 1);\n\tconst baseCenterX = viewportSize.width * 0.5 + basePosition.x;\n\tconst baseCenterY = viewportSize.height * 0.5 - basePosition.y;\n\tconst restingLeft = baseCenterX - baseSize.width * 0.5;\n\tconst restingTop = baseCenterY - baseSize.height * 0.5;\n\tconst focusedLeft = ScalarMath.lerp(restingLeft, inset, progress);\n\tconst focusedTop = ScalarMath.lerp(restingTop, inset, progress);\n\n\treturn {\n\t\tx: focusedLeft + visualSize.width * 0.5 - baseCenterX,\n\t\ty: baseCenterY - (focusedTop + visualSize.height * 0.5)\n\t};\n}\n\n/** Normalizes browser wheel units to the pixel-based delta used by OrbitControls. */\nexport function normalizeWheelZoomDelta(deltaY: number, deltaMode: number, ctrlKey: boolean) {\n\tlet normalizedDelta = deltaY;\n\tif (deltaMode === 1) normalizedDelta *= 16;\n\tif (deltaMode === 2) normalizedDelta *= 100;\n\tif (ctrlKey) normalizedDelta *= 10;\n\treturn normalizedDelta;\n}\n\n/** Accumulates an OrbitControls-compatible wheel gesture into a clamped zoom target. */\nexport function getWheelZoomTargetDistance(\n\tcurrentTargetDistance: number,\n\tdeltaY: number,\n\tzoomSpeed: number,\n\tminDistance: number,\n\tmaxDistance: number\n) {\n\tconst currentDistance = ScalarMath.clamp(currentTargetDistance, minDistance, maxDistance);\n\tif (!Number.isFinite(deltaY) || deltaY === 0) return currentDistance;\n\n\tconst scale = Math.pow(0.95, Math.max(zoomSpeed, 0) * Math.abs(deltaY * 0.01));\n\tconst targetDistance = deltaY < 0 ? currentDistance * scale : currentDistance / scale;\n\treturn ScalarMath.clamp(targetDistance, minDistance, maxDistance);\n}\n\n/** Resolves the authored minimap scale without imposing an upper creative limit. */\nexport function resolveMinimapModelScale(\n\tmodelScale?: number,\n\tfallback = MINIMAP_DEFAULT_MODEL_SCALE\n) {\n\tconst safeFallback = Number.isFinite(fallback)\n\t\t? Math.max(fallback, 0.2)\n\t\t: MINIMAP_DEFAULT_MODEL_SCALE;\n\tif (modelScale === undefined) return safeFallback;\n\tif (!Number.isFinite(modelScale)) return safeFallback;\n\treturn Math.max(modelScale, 0.2);\n}\n\n/** Blends the configured model multiplier through the damped minimap hover state. */\nexport function getMinimapHoverScale(hoverModelScale: number, pointerReveal: number) {\n\treturn ScalarMath.lerp(1, hoverModelScale, ScalarMath.clamp(pointerReveal, 0, 1));\n}\n\n/**\n * Returns the same opacity used by ordinary panels during close-up focus.\n *\n * Keeping DOM content and panel opacity on one curve prevents either layer from\n * disappearing first while the phase-delayed minimap begins to grow.\n */\nexport function getStageDomFocusOpacity(uiFocus: number) {\n\treturn getPanelFocusOpacity(uiFocus);\n}\n\n/**\n * Defines the camera-distance interval used by the shared close-up focus effect.\n * Starting near the fitted view gives panels and page content enough travel to\n * clear progressively before the element fills the viewport.\n */\nexport function getZoomFocusDistanceRange(maxDistance: number, modelRadius: number) {\n\tconst restDistance = maxDistance * 0.84;\n\tlet closeDistance = Math.max(modelRadius * 0.14, maxDistance * 0.1);\n\tif (closeDistance >= restDistance) closeDistance = restDistance * 0.32;\n\n\treturn { closeDistance, restDistance };\n}\n\n/**\n * Converts camera-to-target distance into a FOV-independent visual distance.\n * This keeps focus effects and zoom limits coherent when a SpaceMouse changes\n * perspective FOV while ordinary OrbitControls continue to dolly the camera.\n */\nexport function getEffectiveCameraDistance(\n\tdistance: number,\n\tcurrentFov: number,\n\treferenceFov: number\n) {\n\tconst safeCurrentFov = ScalarMath.clamp(currentFov, 0.01, 179);\n\tconst safeReferenceFov = ScalarMath.clamp(referenceFov, 0.01, 179);\n\treturn (\n\t\tdistance *\n\t\t(Math.tan(ScalarMath.degToRad(safeCurrentFov * 0.5)) /\n\t\t\tMath.tan(ScalarMath.degToRad(safeReferenceFov * 0.5)))\n\t);\n}\n\n/** Maps dolly and perspective-FOV zoom to the same normalized element focus. */\nexport function getCameraZoomFocus(\n\tdistance: number,\n\tcurrentFov: number,\n\treferenceFov: number,\n\tcloseDistance: number,\n\trestDistance: number\n) {\n\treturn (\n\t\t1 -\n\t\tsmoothstep(\n\t\t\tcloseDistance,\n\t\t\trestDistance,\n\t\t\tgetEffectiveCameraDistance(distance, currentFov, referenceFov)\n\t\t)\n\t);\n}\n\n/**\n * Chooses the distance that best represents the element's visible magnification.\n * OrbitControls reduces its target distance, while 3DxWare may dolly camera and\n * target together and only reduce the distance to the element itself.\n */\nexport function getCameraZoomReferenceDistance(\n\tviewTargetDistance: number,\n\tspatialElementCenterDistance: number\n) {\n\treturn Math.min(viewTargetDistance, spatialElementCenterDistance);\n}\n\n/**\n * Places an untransformed panel around its stage-space center and aligns its\n * top-left corner to the device pixel grid for crisp native DOM text.\n */\nexport function getNativePanelDomPosition(\n\tcenter: { x: number; y: number },\n\tsize: { width: number; height: number },\n\tviewport: { width: number; height: number },\n\tdevicePixelRatio = 1\n) {\n\tconst pixelRatio =\n\t\tNumber.isFinite(devicePixelRatio) && devicePixelRatio > 0 ? devicePixelRatio : 1;\n\tconst snap = (value: number) => Math.round(value * pixelRatio) / pixelRatio;\n\n\treturn {\n\t\tleft: snap(viewport.width * 0.5 + center.x - size.width * 0.5),\n\t\ttop: snap(viewport.height * 0.5 - center.y - size.height * 0.5)\n\t};\n}\n\n/**\n * Compensates an x/y panel anchor when it advances toward a perspective camera.\n *\n * Without this correction, a panel appears to drift away from its DOM anchor as its\n * z position changes.\n */\nexport function getPerspectiveAnchoredPanelPosition(\n\ttargetX: number,\n\ttargetY: number,\n\tcurrentZ: number,\n\tcameraDistance: number\n) {\n\tconst safeCameraDistance = Math.max(cameraDistance, 1);\n\tconst depthScale = ScalarMath.clamp(\n\t\t(safeCameraDistance - currentZ) / safeCameraDistance,\n\t\t0.05,\n\t\t2\n\t);\n\n\treturn { x: targetX * depthScale, y: targetY * depthScale };\n}\n\n/**\n * Builds a local projection root for a panel rendered by the shared stage camera.\n *\n * The translation keeps the panel anchored while it moves in depth. The z shear\n * cancels the shared camera's off-axis perspective, so rotated children converge\n * on the panel center instead of the viewport center.\n */\nexport function setPanelLocalPerspectiveMatrix(\n\ttarget: THREE.Matrix4,\n\ttargetX: number,\n\ttargetY: number,\n\tcurrentZ: number,\n\tcameraDistance: number\n) {\n\tconst safeCameraDistance = Math.max(cameraDistance, 1);\n\tconst anchoredPosition = getPerspectiveAnchoredPanelPosition(\n\t\ttargetX,\n\t\ttargetY,\n\t\tcurrentZ,\n\t\tsafeCameraDistance\n\t);\n\n\treturn target.set(\n\t\t1,\n\t\t0,\n\t\t-targetX / safeCameraDistance,\n\t\tanchoredPosition.x,\n\t\t0,\n\t\t1,\n\t\t-targetY / safeCameraDistance,\n\t\tanchoredPosition.y,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\tcurrentZ,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1\n\t);\n}\n\n/**\n * Calculates the nearest camera distance that contains an oriented bounding box.\n *\n * @param bounds - World-space bounds of the object to frame.\n * @param viewDirection - Direction from the target toward the camera.\n * @param camera - Camera whose FOV and aspect define the frame.\n * @param margin - Multiplicative padding around the fitted object.\n * @param viewportScale - Fraction of the browser viewport available to the element.\n */\nexport function getCameraFitDistance(\n\tbounds: THREE.Box3,\n\tviewDirection: THREE.Vector3,\n\tcamera: THREE.PerspectiveCamera,\n\tmargin = 1,\n\tviewportScale = { x: 1, y: 1 }\n) {\n\tconst corners = getBoxCorners(bounds);\n\tconst center = bounds.getCenter(new THREE.Vector3());\n\tconst forward = viewDirection.clone().normalize().negate();\n\tconst right = new THREE.Vector3().crossVectors(camera.up, forward).normalize();\n\tif (right.lengthSq() < 0.0001) right.set(1, 0, 0);\n\tconst up = new THREE.Vector3().crossVectors(forward, right).normalize();\n\tconst verticalFov = ScalarMath.degToRad(camera.fov);\n\tconst horizontalFov = 2 * Math.atan(Math.tan(verticalFov * 0.5) * camera.aspect);\n\tconst tanY = Math.tan(verticalFov * 0.5) * viewportScale.y;\n\tconst tanX = Math.tan(horizontalFov * 0.5) * viewportScale.x;\n\tlet distance = 0.1;\n\tfor (const corner of corners) {\n\t\tconst offset = corner.sub(center);\n\t\t// Near corners appear larger. Fitting only the flat projected extent lets\n\t\t// deep objects escape the shared media rectangle even with zero padding.\n\t\tconst depth = -offset.dot(forward);\n\t\tdistance = Math.max(distance, depth + Math.abs(offset.dot(right)) / tanX,\n\t\t\tdepth + Math.abs(offset.dot(up)) / tanY);\n\t}\n\treturn distance * margin;\n}\n\n/** Returns the eight corners of an axis-aligned bounding box. */\nexport function getBoxCorners(bounds: THREE.Box3) {\n\tconst { min, max } = bounds;\n\treturn [\n\t\tnew THREE.Vector3(min.x, min.y, min.z),\n\t\tnew THREE.Vector3(min.x, min.y, max.z),\n\t\tnew THREE.Vector3(min.x, max.y, min.z),\n\t\tnew THREE.Vector3(min.x, max.y, max.z),\n\t\tnew THREE.Vector3(max.x, min.y, min.z),\n\t\tnew THREE.Vector3(max.x, min.y, max.z),\n\t\tnew THREE.Vector3(max.x, max.y, min.z),\n\t\tnew THREE.Vector3(max.x, max.y, max.z)\n\t];\n}\n\n/**\n * Reduces only the rotation axis amplified by an elongated panel.\n * Square panels keep the full response on both axes.\n */\nexport function getPanelAspectTiltScale(width: number, height: number) {\n\tconst safeWidth = Math.max(width, 1);\n\tconst safeHeight = Math.max(height, 1);\n\n\treturn {\n\t\tazimuth: Math.min(1, Math.sqrt(safeHeight / safeWidth)),\n\t\televation: Math.min(1, Math.sqrt(safeWidth / safeHeight))\n\t};\n}\n\n/** Returns the independent approach band for one panel. */\nexport function getPanelPointerProximity(width: number, height: number) {\n\tconst safeWidth = Math.max(width, 1);\n\tconst safeHeight = Math.max(height, 1);\n\tconst shortSide = Math.min(safeWidth, safeHeight);\n\tconst longSide = Math.max(safeWidth, safeHeight);\n\tconst aspectCorrection = Math.min(\n\t\tMath.sqrt(longSide / shortSide),\n\t\tPANEL_POINTER_PROXIMITY_ASPECT_LIMIT\n\t);\n\treturn ScalarMath.clamp(\n\t\tshortSide * PANEL_POINTER_PROXIMITY_SCALE * aspectCorrection,\n\t\tPANEL_POINTER_PROXIMITY_MIN,\n\t\tPANEL_POINTER_PROXIMITY_MAX\n\t);\n}\n\n/** Converts distance from a panel edge into a smooth zero-to-one hover influence. */\nexport function getPanelPointerInfluence(distance: number, width: number, height: number) {\n\treturn 1 - smoothstep(0, getPanelPointerProximity(width, height), Math.max(distance, 0));\n}\n\n/** Resolves a pointer-relative pose with axis-specific aspect-ratio attenuation. */\nexport function getPanelPointerRotation(\n\tlookX: number,\n\tlookY: number,\n\tinfluence: number,\n\twidth: number,\n\theight: number\n) {\n\tconst tilt = PANEL_POINTER_MAX_TILT * ScalarMath.clamp(influence, 0, 1);\n\tconst aspectScale = getPanelAspectTiltScale(width, height);\n\treturn {\n\t\tx: -ScalarMath.clamp(lookY, -1, 1) * tilt * aspectScale.elevation,\n\t\ty: -ScalarMath.clamp(lookX, -1, 1) * tilt * aspectScale.azimuth\n\t};\n}\n\n/** Detects panel geometry changes that require a WebGPU mesh rebuild. */\nexport function hasPanelGeometryChanged(\n\tcurrent: Required<LiquidGlassPanelOptions>,\n\tnext: LiquidGlassPanelOptions\n) {\n\treturn (\n\t\tMath.abs(current.width - (next.width ?? current.width)) > 0.5 ||\n\t\tMath.abs(current.height - (next.height ?? current.height)) > 0.5 ||\n\t\tMath.abs(current.radius - (next.radius ?? current.radius)) > 0.5\n\t);\n}\n"]}
@@ -129,6 +129,7 @@ export interface StagePanelTarget {
129
129
  getMinimapDockProgress?: () => number;
130
130
  /** Reads the viewport-space top edge used to anchor the rendered model. */
131
131
  getMinimapModelTop?: () => number | undefined;
132
+ getMinimapModelCenterY?: () => number | undefined;
132
133
  /** Minimum viewport-space model edge; only corrects dock overflow, never normal centering. */
133
134
  getMinimapModelLeft?: () => number | undefined;
134
135
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stageTypes.d.ts","sourceRoot":"","sources":["../../src/stage/stageTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAE9D,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IAClC,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,iFAAiF;AACjF,MAAM,WAAW,kBAAkB;IAClC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACX;AAED,qEAAqE;AACrE,MAAM,WAAW,mBAAmB;IACnC,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,MAAM,CAAC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ACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uFAAuF;IACvF,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stageTypes.js","sourceRoot":"","sources":["../../src/stage/stageTypes.ts"],"names":[],"mappings":"","sourcesContent":["import type { SpatialElementLodPair } from '../catalog/spatialElementLodPair.js';\nimport type { ColorRepresentation, Mesh } from 'three';\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\n\n/** Selects the rendering backend and visual complexity of a panel surface. */\nexport type StagePanelSurface = 'solid' | 'frosted' | 'glass';\n\n/** Controls how the HDR environment is presented behind the stage. */\nexport interface BackgroundSettings {\n\t/** Three.js background blur amount in the range supported by the active renderer. */\n\tblurriness: number;\n\t/** Color mixed over the HDR background. */\n\ttint: ColorRepresentation;\n\t/** Strength of the background tint, where zero leaves the HDR unchanged. */\n\ttintIntensity: number;\n}\n\n/** Axis rotations, in radians, applied to a loaded model before it is fitted. */\nexport interface StageModelRotation {\n\tx?: number;\n\ty?: number;\n\tz?: number;\n}\n\n/** Controls the fitted camera's initial orbit around the element. */\nexport interface StageCameraSettings {\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n\t/** Empty space in CSS pixels reserved on every side of the automatic element fit. */\n\tfitPadding?: number;\n\t/** Presentation multiplier after padding. Enlargement stops at the detail media rectangle's edges. */\n\tfitScale?: number;\n}\n\n/** Supported blend modes for declarative stage material replacements. */\nexport type StageMaterialBlending = 'normal' | 'additive';\n\n/** Serializable subset used to replace an asset mesh with a physical material. */\nexport interface StagePhysicalMaterialSettings {\n\ttype: 'physical';\n\tcolor?: ColorRepresentation;\n\topacity?: number;\n\ttransparent?: boolean;\n\tmetalness?: number;\n\troughness?: number;\n\tiridescence?: number;\n\tclearcoat?: number;\n\tblending?: StageMaterialBlending;\n}\n\nexport type StageMaterialSettings = StagePhysicalMaterialSettings;\n\n/** Controls the authored model pose and which meshes represent the actual element. */\nexport interface StageModelSettings {\n\t/** Optional rotation applied on top of the GLB scene's authored root rotation. */\n\trotation?: StageModelRotation;\n\t/**\n\t * Exact, case-sensitive mesh names that remain visible on the main stage but do\n\t * not participate in element bounds, picking, outlining, or element minimaps.\n\t */\n\texcludeMeshes?: readonly string[];\n\t/** Physical material replacements keyed by exact, case-sensitive mesh name. */\n\tmaterialOverrides?: Readonly<Record<string, StageMaterialSettings>>;\n}\n\n/** Controls the minimap model presentation while its panel is docked. */\nexport interface StageMinimapDockedView {\n\t/** Model multiplier used only while the minimap is docked. */\n\tscale?: number;\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n}\n\n/** Configures the optional element minimap rendered on top of a panel. */\nexport interface StageMinimapOptions {\n\t/** Panel height, in CSS pixels, at maximum stage zoom. */\n\texpandedHeight?: number;\n\t/** Space, in CSS pixels, reserved around the minimap model. */\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted minimap model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\t/** Color drawn over the blurred area outside the viewport cutout. */\n\toverlayColor?: ColorRepresentation;\n\t/** Overlay alpha using the same zero-to-one convention as CSS/Figma. */\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\t/** Color behind the minimap capture when no stage background is rendered. */\n\tcontextColor?: ColorRepresentation;\n\t/** Alpha of the minimap capture background. */\n\tcontextOpacity?: number;\n\t/** Color of the rectangle describing the main camera viewport. */\n\tviewportColor?: ColorRepresentation;\n}\n\n/** Connects one DOM panel declaration to its WebGPU and CSS3D representations. */\nexport interface StagePanelTarget {\n\t/** Accessible DOM content displayed above the WebGPU panel. */\n\tcontent: HTMLElement;\n\t/** Inner content padding in CSS pixels. */\n\tcontentInset: number;\n\t/** DOM element whose layout determines the panel position and dimensions. */\n\tframe: HTMLElement;\n\t/** Complete DOM surface used by solid and frosted CSS3D panels. */\n\tsurfaceElement: HTMLElement;\n\t/** Enables the panel's minimap rendering mode. */\n\tminimap?: StageMinimapOptions;\n\t/** true: proximity lift and tilt; 'lift': mouse hover raises 2px without tilt; false: still. */\n\tpointerReactive?: boolean | 'lift';\n\t/** true fades/moves with close-up; false keeps its pose; 'top-right' travels to the corner. */\n\tfocusReactive?: boolean | 'top-right';\n\t/** Optional neighbouring panel frame moved with the corner control during UI clearance. */\n\tgetFocusAnchor?: () => HTMLElement | undefined;\n\t/** Keep accessible content in its DOM owner (for example, a native popover). */\n\tnativeContent?: boolean;\n\t/** Position native content after its anchors move, before measuring and drawing its surface. */\n\tupdateNativeLayout?: () => void;\n\t/** Whether an optional panel is currently open. */\n\tgetVisible?: () => boolean;\n\tgetMinimapSelected?: () => boolean;\n\t/** Shared geometry, tint, blur, and shadow configuration. */\n\toptions: LiquidGlassPanelOptions;\n\t/** Visual surface backend. All variants share the same CSS3D transform pipeline. */\n\tsurface: StagePanelSurface;\n\t/** Reads the current opacity of the visual surface independently of its content. */\n\tgetSurfaceOpacity?: () => number;\n\t/** Reads a transient scale applied only to the rendered minimap model. */\n\tgetMinimapModelScale?: () => number;\n\t/** Reads the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress?: () => number;\n\t/** Reads the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop?: () => number | undefined;\n\t/** Minimum viewport-space model edge; only corrects dock overflow, never normal centering. */\n\tgetMinimapModelLeft?: () => number | undefined;\n}\n\n/** Identifies the DOM region used to frame the main element camera. */\nexport interface StageViewportTarget {\n\telement: HTMLElement;\n}\n\n/** Describes the independently animated phases of a close-up zoom. */\nexport interface StageZoomFocusState {\n\t/** Camera-derived close-up amount, from the fitted view to maximum zoom. */\n\tfocus: number;\n\t/** Progress used to fade and move ordinary page content and panels. */\n\tuiFocus: number;\n\t/** Exact opacity applied to ordinary panels and non-stage DOM content. */\n\tuiOpacity: number;\n\t/** Delayed progress used to expand and morph the minimap. */\n\tminimapFocus: number;\n}\n\n/** A deterministic camera pose used by browser-level visual regression tests. */\nexport interface StageVisualTestView {\n\t/** Normalized camera distance, where zero is the fitted view and one is maximum zoom. */\n\tzoom?: number;\n\t/** Horizontal orbit offset from the initial pose, in degrees. */\n\tazimuth?: number;\n\t/** Vertical orbit offset from the initial pose, in degrees. */\n\tpolar?: number;\n\t/** Orbit-target offset expressed as a fraction of the fitted model radius. */\n\ttargetOffset?: Partial<{ x: number; y: number; z: number }>;\n}\n\n/** Bounds WebGPU rasterization cost independently of native DOM text resolution. */\nexport interface StageRenderSettings {\n\t/** Maximum physical pixels per CSS pixel. Defaults to 1. */\n\tmaxPixelRatio?: number;\n\t/** Maximum pixels per full-size canvas/capture. Defaults to 2,073,600; null disables this limit. */\n\tmaxPixels?: number | null;\n}\n\n/** Construction options for a {@link StageExperience}. */\nexport interface StageExperienceOptions {\n\t/** Transient detail selection. It never becomes part of route or asset identity. */\n\tdetailMedia?: import('../spatial-element/types.js').SpatialElementMediaItem['kind'];\n\t/** Shared browser metrics supplied by the adapter; read without DOM measurements per frame. */\n\treadLayoutMetrics?: (mode?: 'stable' | 'visible') => import('../spatial-element/responsiveLayout.js').ResponsiveLayoutInput | undefined;\n\tdeviceOrientation?: boolean;\n\t/** Stage-wide output quality; native DOM content remains at the device pixel ratio. */\n\trenderSettings?: StageRenderSettings;\n\t/** Directory containing Draco decoder files, including trailing slash. */\n\tdracoDecoderPath?: string;\n\t/** Opaque page surface, independent of the HDR environment. */\n\tpageBackground?: string;\n\t/** Reveals semantic content when the device can no longer render. */\n\tonDeviceLost?: () => void;\n\tlodPair?: SpatialElementLodPair;\n\t/** Catalog pages register their own presentations, including an intentionally empty list. */\n\tcatalog?: boolean;\n\t/** A restored dock uses Low only; optional detail preparation resumes when the hero returns. */\n\tdeferDetailPreparation?: boolean;\n\theroIsPresented?: () => boolean;\n\tbackground?: BackgroundSettings;\n\thdr?: string;\n\tglb?: string;\n\tmodel?: StageModelSettings;\n\tcamera?: StageCameraSettings;\n\tinteractionTheme?: Partial<StageInteractionTheme>;\n\tpanels?: StagePanelTarget[];\n\tviewport?: StageViewportTarget;\n\t/** Connects to the local 3DxWare driver (may prompt for local access). Defaults to false. */\n\tenableSpaceMouse?: boolean;\n\tonSpaceMouseStateChange?: (state: import('./spaceMousePlatform.js').SpaceMouseState) => void;\n\t/** Receives the normalized, sequenced phases of a close-up zoom. */\n\tonZoomFocusChange?: (state: StageZoomFocusState) => void;\n}\n\n/** Visual and filtering options for element hover interaction. */\nexport interface StageInteractionTheme {\n\toutlineColor: ColorRepresentation;\n\toutlineOpacity: number;\n\toutlineThickness: number;\n\toutlineGlow: number;\n\toutlineGlowThickness: number;\n\t/** Returns true for model meshes that must not participate in picking or outlining. */\n\texcludeMesh?: (mesh: Mesh) => boolean;\n}\n"]}
1
+ {"version":3,"file":"stageTypes.js","sourceRoot":"","sources":["../../src/stage/stageTypes.ts"],"names":[],"mappings":"","sourcesContent":["import type { SpatialElementLodPair } from '../catalog/spatialElementLodPair.js';\nimport type { ColorRepresentation, Mesh } from 'three';\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\n\n/** Selects the rendering backend and visual complexity of a panel surface. */\nexport type StagePanelSurface = 'solid' | 'frosted' | 'glass';\n\n/** Controls how the HDR environment is presented behind the stage. */\nexport interface BackgroundSettings {\n\t/** Three.js background blur amount in the range supported by the active renderer. */\n\tblurriness: number;\n\t/** Color mixed over the HDR background. */\n\ttint: ColorRepresentation;\n\t/** Strength of the background tint, where zero leaves the HDR unchanged. */\n\ttintIntensity: number;\n}\n\n/** Axis rotations, in radians, applied to a loaded model before it is fitted. */\nexport interface StageModelRotation {\n\tx?: number;\n\ty?: number;\n\tz?: number;\n}\n\n/** Controls the fitted camera's initial orbit around the element. */\nexport interface StageCameraSettings {\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n\t/** Empty space in CSS pixels reserved on every side of the automatic element fit. */\n\tfitPadding?: number;\n\t/** Presentation multiplier after padding. Enlargement stops at the detail media rectangle's edges. */\n\tfitScale?: number;\n}\n\n/** Supported blend modes for declarative stage material replacements. */\nexport type StageMaterialBlending = 'normal' | 'additive';\n\n/** Serializable subset used to replace an asset mesh with a physical material. */\nexport interface StagePhysicalMaterialSettings {\n\ttype: 'physical';\n\tcolor?: ColorRepresentation;\n\topacity?: number;\n\ttransparent?: boolean;\n\tmetalness?: number;\n\troughness?: number;\n\tiridescence?: number;\n\tclearcoat?: number;\n\tblending?: StageMaterialBlending;\n}\n\nexport type StageMaterialSettings = StagePhysicalMaterialSettings;\n\n/** Controls the authored model pose and which meshes represent the actual element. */\nexport interface StageModelSettings {\n\t/** Optional rotation applied on top of the GLB scene's authored root rotation. */\n\trotation?: StageModelRotation;\n\t/**\n\t * Exact, case-sensitive mesh names that remain visible on the main stage but do\n\t * not participate in element bounds, picking, outlining, or element minimaps.\n\t */\n\texcludeMeshes?: readonly string[];\n\t/** Physical material replacements keyed by exact, case-sensitive mesh name. */\n\tmaterialOverrides?: Readonly<Record<string, StageMaterialSettings>>;\n}\n\n/** Controls the minimap model presentation while its panel is docked. */\nexport interface StageMinimapDockedView {\n\t/** Model multiplier used only while the minimap is docked. */\n\tscale?: number;\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n}\n\n/** Configures the optional element minimap rendered on top of a panel. */\nexport interface StageMinimapOptions {\n\t/** Panel height, in CSS pixels, at maximum stage zoom. */\n\texpandedHeight?: number;\n\t/** Space, in CSS pixels, reserved around the minimap model. */\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted minimap model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\t/** Color drawn over the blurred area outside the viewport cutout. */\n\toverlayColor?: ColorRepresentation;\n\t/** Overlay alpha using the same zero-to-one convention as CSS/Figma. */\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\t/** Color behind the minimap capture when no stage background is rendered. */\n\tcontextColor?: ColorRepresentation;\n\t/** Alpha of the minimap capture background. */\n\tcontextOpacity?: number;\n\t/** Color of the rectangle describing the main camera viewport. */\n\tviewportColor?: ColorRepresentation;\n}\n\n/** Connects one DOM panel declaration to its WebGPU and CSS3D representations. */\nexport interface StagePanelTarget {\n\t/** Accessible DOM content displayed above the WebGPU panel. */\n\tcontent: HTMLElement;\n\t/** Inner content padding in CSS pixels. */\n\tcontentInset: number;\n\t/** DOM element whose layout determines the panel position and dimensions. */\n\tframe: HTMLElement;\n\t/** Complete DOM surface used by solid and frosted CSS3D panels. */\n\tsurfaceElement: HTMLElement;\n\t/** Enables the panel's minimap rendering mode. */\n\tminimap?: StageMinimapOptions;\n\t/** true: proximity lift and tilt; 'lift': mouse hover raises 2px without tilt; false: still. */\n\tpointerReactive?: boolean | 'lift';\n\t/** true fades/moves with close-up; false keeps its pose; 'top-right' travels to the corner. */\n\tfocusReactive?: boolean | 'top-right';\n\t/** Optional neighbouring panel frame moved with the corner control during UI clearance. */\n\tgetFocusAnchor?: () => HTMLElement | undefined;\n\t/** Keep accessible content in its DOM owner (for example, a native popover). */\n\tnativeContent?: boolean;\n\t/** Position native content after its anchors move, before measuring and drawing its surface. */\n\tupdateNativeLayout?: () => void;\n\t/** Whether an optional panel is currently open. */\n\tgetVisible?: () => boolean;\n\tgetMinimapSelected?: () => boolean;\n\t/** Shared geometry, tint, blur, and shadow configuration. */\n\toptions: LiquidGlassPanelOptions;\n\t/** Visual surface backend. All variants share the same CSS3D transform pipeline. */\n\tsurface: StagePanelSurface;\n\t/** Reads the current opacity of the visual surface independently of its content. */\n\tgetSurfaceOpacity?: () => number;\n\t/** Reads a transient scale applied only to the rendered minimap model. */\n\tgetMinimapModelScale?: () => number;\n\t/** Reads the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress?: () => number;\n\t/** Reads the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop?: () => number | undefined;\n\tgetMinimapModelCenterY?: () => number | undefined;\n\t/** Minimum viewport-space model edge; only corrects dock overflow, never normal centering. */\n\tgetMinimapModelLeft?: () => number | undefined;\n}\n\n/** Identifies the DOM region used to frame the main element camera. */\nexport interface StageViewportTarget {\n\telement: HTMLElement;\n}\n\n/** Describes the independently animated phases of a close-up zoom. */\nexport interface StageZoomFocusState {\n\t/** Camera-derived close-up amount, from the fitted view to maximum zoom. */\n\tfocus: number;\n\t/** Progress used to fade and move ordinary page content and panels. */\n\tuiFocus: number;\n\t/** Exact opacity applied to ordinary panels and non-stage DOM content. */\n\tuiOpacity: number;\n\t/** Delayed progress used to expand and morph the minimap. */\n\tminimapFocus: number;\n}\n\n/** A deterministic camera pose used by browser-level visual regression tests. */\nexport interface StageVisualTestView {\n\t/** Normalized camera distance, where zero is the fitted view and one is maximum zoom. */\n\tzoom?: number;\n\t/** Horizontal orbit offset from the initial pose, in degrees. */\n\tazimuth?: number;\n\t/** Vertical orbit offset from the initial pose, in degrees. */\n\tpolar?: number;\n\t/** Orbit-target offset expressed as a fraction of the fitted model radius. */\n\ttargetOffset?: Partial<{ x: number; y: number; z: number }>;\n}\n\n/** Bounds WebGPU rasterization cost independently of native DOM text resolution. */\nexport interface StageRenderSettings {\n\t/** Maximum physical pixels per CSS pixel. Defaults to 1. */\n\tmaxPixelRatio?: number;\n\t/** Maximum pixels per full-size canvas/capture. Defaults to 2,073,600; null disables this limit. */\n\tmaxPixels?: number | null;\n}\n\n/** Construction options for a {@link StageExperience}. */\nexport interface StageExperienceOptions {\n\t/** Transient detail selection. It never becomes part of route or asset identity. */\n\tdetailMedia?: import('../spatial-element/types.js').SpatialElementMediaItem['kind'];\n\t/** Shared browser metrics supplied by the adapter; read without DOM measurements per frame. */\n\treadLayoutMetrics?: (mode?: 'stable' | 'visible') => import('../spatial-element/responsiveLayout.js').ResponsiveLayoutInput | undefined;\n\tdeviceOrientation?: boolean;\n\t/** Stage-wide output quality; native DOM content remains at the device pixel ratio. */\n\trenderSettings?: StageRenderSettings;\n\t/** Directory containing Draco decoder files, including trailing slash. */\n\tdracoDecoderPath?: string;\n\t/** Opaque page surface, independent of the HDR environment. */\n\tpageBackground?: string;\n\t/** Reveals semantic content when the device can no longer render. */\n\tonDeviceLost?: () => void;\n\tlodPair?: SpatialElementLodPair;\n\t/** Catalog pages register their own presentations, including an intentionally empty list. */\n\tcatalog?: boolean;\n\t/** A restored dock uses Low only; optional detail preparation resumes when the hero returns. */\n\tdeferDetailPreparation?: boolean;\n\theroIsPresented?: () => boolean;\n\tbackground?: BackgroundSettings;\n\thdr?: string;\n\tglb?: string;\n\tmodel?: StageModelSettings;\n\tcamera?: StageCameraSettings;\n\tinteractionTheme?: Partial<StageInteractionTheme>;\n\tpanels?: StagePanelTarget[];\n\tviewport?: StageViewportTarget;\n\t/** Connects to the local 3DxWare driver (may prompt for local access). Defaults to false. */\n\tenableSpaceMouse?: boolean;\n\tonSpaceMouseStateChange?: (state: import('./spaceMousePlatform.js').SpaceMouseState) => void;\n\t/** Receives the normalized, sequenced phases of a close-up zoom. */\n\tonZoomFocusChange?: (state: StageZoomFocusState) => void;\n}\n\n/** Visual and filtering options for element hover interaction. */\nexport interface StageInteractionTheme {\n\toutlineColor: ColorRepresentation;\n\toutlineOpacity: number;\n\toutlineThickness: number;\n\toutlineGlow: number;\n\toutlineGlowThickness: number;\n\t/** Returns true for model meshes that must not participate in picking or outlining. */\n\texcludeMesh?: (mesh: Mesh) => boolean;\n}\n"]}
@@ -57,6 +57,7 @@ export interface StageVisualTestController {
57
57
  getSpatialCapture(): ReturnType<StageExperience['getSpatialCapture']> | null;
58
58
  /** Clip matrix of the bound detail owner, after the retained source is released. */
59
59
  getDetailProjection(kind: 'hero' | 'dock'): number[] | null;
60
+ getOutlinePose(): ReturnType<StageExperience['getVisualTestOutlinePose']>;
60
61
  releaseSpatialCapture(): void;
61
62
  getCatalogOwnership(): ReturnType<import('../catalog/CatalogTransition.js').CatalogTransition['getOwnership']>;
62
63
  /** Query-gated fixture registration for ambiguity/teardown tests. */
@@ -1 +1 @@
1
- {"version":3,"file":"stageVisualTest.d.ts","sourceRoot":"","sources":["../../src/stage/stageVisualTest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IACnC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iCAAiC;IACjD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEzE,MAAM,WAAW,iCAAiC;IACjD,IAAI,EAAE,y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,CAAC,CAAC;IACvB,mEAAmE;IACnE,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,4DAA4D;IAC5D,QAAQ,IAAI,mBAAmB,CAAC;CAChC;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,iBAAiB,CAAC,EAAE,yBAAyB,CAAC;KAC9C;CACD;AAED,gGAAgG;AAChG,wBAAgB,qBAAqB,YAEpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stageVisualTest.js","sourceRoot":"","sources":["../../src/stage/stageVisualTest.ts"],"names":[],"mappings":"AAmHA,gGAAgG;AAChG,MAAM,UAAU,qBAAqB;IACpC,OAAO,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,GAAG,CAAC;AAC9E,CAAC","sourcesContent":["import type { StageVisualTestView, StageZoomFocusState } from './stageTypes.js';\nimport type { StageExperience } from './StageExperience.js';\n\nexport interface StageVisualTestRect {\n\tx: number;\n\ty: number;\n\twidth: number;\n\theight: number;\n}\n\nexport interface StageVisualTestMinimapRenderStats {\n\toverlayCapturePasses: number;\n\tdepthNear: number;\n\tdepthFar: number;\n\tviewportRingInForeground: boolean;\n}\n\nexport type StageVisualTestQuaternion = [number, number, number, number];\n\nexport interface StageVisualTestMinimapOrientation {\n\trest: StageVisualTestQuaternion;\n\tdisplay: StageVisualTestQuaternion;\n\tlive: StageVisualTestQuaternion;\n\tdocked: StageVisualTestQuaternion | null;\n\tdockProgress: number;\n}\n\nexport type StageVisualTestRenderTargetStats = ReturnType<\n\tStageExperience['getVisualTestRenderTargetStats']\n>;\n\nexport interface StageVisualTestVisibilityStats {\n\tstageViewportVisible: boolean;\n\tvisiblePanels: number;\n\tvisibleMinimaps: number;\n\tstageModelRenderPasses: number;\n\tpanelBlurRenderPasses: number;\n\tpanelSceneRenderPasses: number;\n\tminimapSceneRenderPasses: number;\n}\n\n/** Browser-only controls exposed when a stage is opened with `?stage-test=1`. */\nexport interface StageVisualTestController {\n\tgetNavigationTimings(): { dataReady: number; captured: number; restoring: number; bound: number;\n\t\tearly?: { started: number; entered: number; captured: number; prepared: number; firstMotion: number;\n\t\t\tfirstSubmitted: number; motionEnded: number; holdStarted: number; held: number; committed: number;\n\t\t\trevealStarted: number; revealEnded: number; revealed: number } };\n\tcaptureHeroPresentation(): boolean;\n\tgetSpatialCapture(): ReturnType<StageExperience['getSpatialCapture']> | null;\n\t/** Clip matrix of the bound detail owner, after the retained source is released. */\n\tgetDetailProjection(kind: 'hero' | 'dock'): number[] | null;\n\treleaseSpatialCapture(): void;\n\tgetCatalogOwnership(): ReturnType<\n\t\timport('../catalog/CatalogTransition.js').CatalogTransition['getOwnership']\n\t>;\n\t/** Query-gated fixture registration for ambiguity/teardown tests. */\n\tregisterCatalogEndpoint(\n\t\taddress: import('../catalog/CatalogEndpointRegistry.js').CatalogEndpointAddress,\n\t\telement: HTMLElement\n\t): () => void;\n\tgetCatalogEndpoints(): ReturnType<\n\t\timport('../catalog/CatalogEndpointRegistry.js').CatalogEndpointRegistry['getSnapshot']\n\t>;\n\tloseDevice(): void;\n\t/** Holds one destination after DOM commit to verify its pre-render visibility gate. */\n\tholdNextPageBinding(): void;\n\treleasePageBinding(): void;\n\tgetCatalogPresentation(): ReturnType<StageExperience['getCatalogPresentation']> | null;\n\t/** Resource ownership diagnostics for catalog navigation acceptance. */\n\tgetCarouselStats(): ReturnType<\n\t\timport('../catalog/CatalogSpatialElementLayer.js').CatalogSpatialElementLayer['getStats']\n\t> | null;\n\tgetCatalogStats(): ReturnType<StageExperience['assets']['getStats']> | null;\n\t/** Read-only current animation, queued-frame and preparation metadata; does not wait for idle. */\n\tgetRenderActivity(): ReturnType<StageExperience['getVisualTestRenderActivity']> | null;\n\t/** Applies a deterministic camera pose and waits until dependent render state settles. */\n\tsetView(view: StageVisualTestView, frames?: number): Promise<void>;\n\t/** Applies an equivalent zoom through the SpaceMouse camera/target dolly path. */\n\tsetSpaceMouseZoom(zoom: number): Promise<void>;\n\t/** Repeats SpaceMouse updates while frames render, leaving the synthetic gesture active. */\n\tdriveSpaceMouseZoom(zoom: number, frames?: number): Promise<void>;\n\t/** Ends a synthetic SpaceMouse gesture and lets dependent render state settle. */\n\tstopSpaceMouse(): Promise<void>;\n\t/** Returns the current rendered minimap bounds in viewport pixels. */\n\tgetMinimapRect(): StageVisualTestRect | null;\n\t/** Returns the current projected surface bounds for a registered panel frame. */\n\tgetPanelRect(frame: HTMLElement): StageVisualTestRect | null;\n\t/** Returns the projected main element bounds in viewport pixels. */\n\tgetModelRect(): StageVisualTestRect | null;\n\t/** Returns the projected 3D element bounds in viewport pixels. */\n\tgetMinimapModelRect(): StageVisualTestRect | null;\n\t/** Returns the visible viewport mask in minimap-local pixels. */\n\tgetMinimapViewportRect(): StageVisualTestRect | null;\n\t/** Returns canonical, displayed, and fully synchronized minimap orientations. */\n\tgetMinimapOrientation(): StageVisualTestMinimapOrientation | null;\n\t/** Returns minimap overlay submissions for performance regression tests. */\n\tgetMinimapRenderStats(): StageVisualTestMinimapRenderStats;\n\t/** Returns target allocation, resize, and warm-up counters. */\n\tgetRenderTargetStats(): StageVisualTestRenderTargetStats;\n\t/** Returns current culling state and submitted render-pass counters. */\n\tgetVisibilityStats(): StageVisualTestVisibilityStats;\n\t/** Restores the exact fitted camera pose without running the user-facing reset animation. */\n\treset(): Promise<void>;\n\t/** Advances the renderer by a fixed number of synthetic frames. */\n\tsettle(frames?: number): Promise<void>;\n\t/** Returns the latest zoom phases reported by the stage. */\n\tgetState(): StageZoomFocusState;\n}\n\ndeclare global {\n\tinterface Window {\n\t\t__stageVisualTest?: StageVisualTestController;\n\t}\n}\n\n/** Returns whether the current page explicitly requested deterministic visual-test controls. */\nexport function isStageVisualTestMode() {\n\treturn new URLSearchParams(window.location.search).get('stage-test') === '1';\n}\n"]}
1
+ {"version":3,"file":"stageVisualTest.js","sourceRoot":"","sources":["../../src/stage/stageVisualTest.ts"],"names":[],"mappings":"AAoHA,gGAAgG;AAChG,MAAM,UAAU,qBAAqB;IACpC,OAAO,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,GAAG,CAAC;AAC9E,CAAC","sourcesContent":["import type { StageVisualTestView, StageZoomFocusState } from './stageTypes.js';\nimport type { StageExperience } from './StageExperience.js';\n\nexport interface StageVisualTestRect {\n\tx: number;\n\ty: number;\n\twidth: number;\n\theight: number;\n}\n\nexport interface StageVisualTestMinimapRenderStats {\n\toverlayCapturePasses: number;\n\tdepthNear: number;\n\tdepthFar: number;\n\tviewportRingInForeground: boolean;\n}\n\nexport type StageVisualTestQuaternion = [number, number, number, number];\n\nexport interface StageVisualTestMinimapOrientation {\n\trest: StageVisualTestQuaternion;\n\tdisplay: StageVisualTestQuaternion;\n\tlive: StageVisualTestQuaternion;\n\tdocked: StageVisualTestQuaternion | null;\n\tdockProgress: number;\n}\n\nexport type StageVisualTestRenderTargetStats = ReturnType<\n\tStageExperience['getVisualTestRenderTargetStats']\n>;\n\nexport interface StageVisualTestVisibilityStats {\n\tstageViewportVisible: boolean;\n\tvisiblePanels: number;\n\tvisibleMinimaps: number;\n\tstageModelRenderPasses: number;\n\tpanelBlurRenderPasses: number;\n\tpanelSceneRenderPasses: number;\n\tminimapSceneRenderPasses: number;\n}\n\n/** Browser-only controls exposed when a stage is opened with `?stage-test=1`. */\nexport interface StageVisualTestController {\n\tgetNavigationTimings(): { dataReady: number; captured: number; restoring: number; bound: number;\n\t\tearly?: { started: number; entered: number; captured: number; prepared: number; firstMotion: number;\n\t\t\tfirstSubmitted: number; motionEnded: number; holdStarted: number; held: number; committed: number;\n\t\t\trevealStarted: number; revealEnded: number; revealed: number } };\n\tcaptureHeroPresentation(): boolean;\n\tgetSpatialCapture(): ReturnType<StageExperience['getSpatialCapture']> | null;\n\t/** Clip matrix of the bound detail owner, after the retained source is released. */\n\tgetDetailProjection(kind: 'hero' | 'dock'): number[] | null;\n\tgetOutlinePose(): ReturnType<StageExperience['getVisualTestOutlinePose']>;\n\treleaseSpatialCapture(): void;\n\tgetCatalogOwnership(): ReturnType<\n\t\timport('../catalog/CatalogTransition.js').CatalogTransition['getOwnership']\n\t>;\n\t/** Query-gated fixture registration for ambiguity/teardown tests. */\n\tregisterCatalogEndpoint(\n\t\taddress: import('../catalog/CatalogEndpointRegistry.js').CatalogEndpointAddress,\n\t\telement: HTMLElement\n\t): () => void;\n\tgetCatalogEndpoints(): ReturnType<\n\t\timport('../catalog/CatalogEndpointRegistry.js').CatalogEndpointRegistry['getSnapshot']\n\t>;\n\tloseDevice(): void;\n\t/** Holds one destination after DOM commit to verify its pre-render visibility gate. */\n\tholdNextPageBinding(): void;\n\treleasePageBinding(): void;\n\tgetCatalogPresentation(): ReturnType<StageExperience['getCatalogPresentation']> | null;\n\t/** Resource ownership diagnostics for catalog navigation acceptance. */\n\tgetCarouselStats(): ReturnType<\n\t\timport('../catalog/CatalogSpatialElementLayer.js').CatalogSpatialElementLayer['getStats']\n\t> | null;\n\tgetCatalogStats(): ReturnType<StageExperience['assets']['getStats']> | null;\n\t/** Read-only current animation, queued-frame and preparation metadata; does not wait for idle. */\n\tgetRenderActivity(): ReturnType<StageExperience['getVisualTestRenderActivity']> | null;\n\t/** Applies a deterministic camera pose and waits until dependent render state settles. */\n\tsetView(view: StageVisualTestView, frames?: number): Promise<void>;\n\t/** Applies an equivalent zoom through the SpaceMouse camera/target dolly path. */\n\tsetSpaceMouseZoom(zoom: number): Promise<void>;\n\t/** Repeats SpaceMouse updates while frames render, leaving the synthetic gesture active. */\n\tdriveSpaceMouseZoom(zoom: number, frames?: number): Promise<void>;\n\t/** Ends a synthetic SpaceMouse gesture and lets dependent render state settle. */\n\tstopSpaceMouse(): Promise<void>;\n\t/** Returns the current rendered minimap bounds in viewport pixels. */\n\tgetMinimapRect(): StageVisualTestRect | null;\n\t/** Returns the current projected surface bounds for a registered panel frame. */\n\tgetPanelRect(frame: HTMLElement): StageVisualTestRect | null;\n\t/** Returns the projected main element bounds in viewport pixels. */\n\tgetModelRect(): StageVisualTestRect | null;\n\t/** Returns the projected 3D element bounds in viewport pixels. */\n\tgetMinimapModelRect(): StageVisualTestRect | null;\n\t/** Returns the visible viewport mask in minimap-local pixels. */\n\tgetMinimapViewportRect(): StageVisualTestRect | null;\n\t/** Returns canonical, displayed, and fully synchronized minimap orientations. */\n\tgetMinimapOrientation(): StageVisualTestMinimapOrientation | null;\n\t/** Returns minimap overlay submissions for performance regression tests. */\n\tgetMinimapRenderStats(): StageVisualTestMinimapRenderStats;\n\t/** Returns target allocation, resize, and warm-up counters. */\n\tgetRenderTargetStats(): StageVisualTestRenderTargetStats;\n\t/** Returns current culling state and submitted render-pass counters. */\n\tgetVisibilityStats(): StageVisualTestVisibilityStats;\n\t/** Restores the exact fitted camera pose without running the user-facing reset animation. */\n\treset(): Promise<void>;\n\t/** Advances the renderer by a fixed number of synthetic frames. */\n\tsettle(frames?: number): Promise<void>;\n\t/** Returns the latest zoom phases reported by the stage. */\n\tgetState(): StageZoomFocusState;\n}\n\ndeclare global {\n\tinterface Window {\n\t\t__stageVisualTest?: StageVisualTestController;\n\t}\n}\n\n/** Returns whether the current page explicitly requested deterministic visual-test controls. */\nexport function isStageVisualTestMode() {\n\treturn new URLSearchParams(window.location.search).get('stage-test') === '1';\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spatial-elements/core",
3
- "version": "1.0.0-beta.11",
3
+ "version": "1.0.0-beta.13",
4
4
  "description": "Framework-independent rendering and catalog runtime for Spatial Elements.",
5
5
  "license": "MPL-2.0",
6
6
  "type": "module",