@spatial-elements/core 0.1.0-beta.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/LICENSE +373 -0
- package/README.md +17 -0
- package/dist/catalog/CarouselGlassCompositor.d.ts +24 -0
- package/dist/catalog/CarouselGlassCompositor.d.ts.map +1 -0
- package/dist/catalog/CarouselGlassCompositor.js +132 -0
- package/dist/catalog/CarouselGlassCompositor.js.map +1 -0
- package/dist/catalog/CatalogEndpointRegistry.d.ts +59 -0
- package/dist/catalog/CatalogEndpointRegistry.d.ts.map +1 -0
- package/dist/catalog/CatalogEndpointRegistry.js +187 -0
- package/dist/catalog/CatalogEndpointRegistry.js.map +1 -0
- package/dist/catalog/CatalogGeometryFade.d.ts +12 -0
- package/dist/catalog/CatalogGeometryFade.d.ts.map +1 -0
- package/dist/catalog/CatalogGeometryFade.js +67 -0
- package/dist/catalog/CatalogGeometryFade.js.map +1 -0
- package/dist/catalog/CatalogPreparation.d.ts +40 -0
- package/dist/catalog/CatalogPreparation.d.ts.map +1 -0
- package/dist/catalog/CatalogPreparation.js +141 -0
- package/dist/catalog/CatalogPreparation.js.map +1 -0
- package/dist/catalog/CatalogSections.d.ts +36 -0
- package/dist/catalog/CatalogSections.d.ts.map +1 -0
- package/dist/catalog/CatalogSections.js +51 -0
- package/dist/catalog/CatalogSections.js.map +1 -0
- package/dist/catalog/CatalogSpatialElementLayer.d.ts +149 -0
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -0
- package/dist/catalog/CatalogSpatialElementLayer.js +920 -0
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -0
- package/dist/catalog/CatalogTransition.d.ts +93 -0
- package/dist/catalog/CatalogTransition.d.ts.map +1 -0
- package/dist/catalog/CatalogTransition.js +1299 -0
- package/dist/catalog/CatalogTransition.js.map +1 -0
- package/dist/catalog/EnvironmentCache.d.ts +30 -0
- package/dist/catalog/EnvironmentCache.d.ts.map +1 -0
- package/dist/catalog/EnvironmentCache.js +128 -0
- package/dist/catalog/EnvironmentCache.js.map +1 -0
- package/dist/catalog/PreparationGate.d.ts +10 -0
- package/dist/catalog/PreparationGate.d.ts.map +1 -0
- package/dist/catalog/PreparationGate.js +66 -0
- package/dist/catalog/PreparationGate.js.map +1 -0
- package/dist/catalog/PresentationLease.d.ts +16 -0
- package/dist/catalog/PresentationLease.d.ts.map +1 -0
- package/dist/catalog/PresentationLease.js +33 -0
- package/dist/catalog/PresentationLease.js.map +1 -0
- package/dist/catalog/SpatialGeometryCapture.d.ts +63 -0
- package/dist/catalog/SpatialGeometryCapture.d.ts.map +1 -0
- package/dist/catalog/SpatialGeometryCapture.js +158 -0
- package/dist/catalog/SpatialGeometryCapture.js.map +1 -0
- package/dist/catalog/assets/SpatialElementAssetManager.d.ts +92 -0
- package/dist/catalog/assets/SpatialElementAssetManager.d.ts.map +1 -0
- package/dist/catalog/assets/SpatialElementAssetManager.js +305 -0
- package/dist/catalog/assets/SpatialElementAssetManager.js.map +1 -0
- package/dist/catalog/assets/assetCosts.d.ts +4 -0
- package/dist/catalog/assets/assetCosts.d.ts.map +1 -0
- package/dist/catalog/assets/assetCosts.js +33 -0
- package/dist/catalog/assets/assetCosts.js.map +1 -0
- package/dist/catalog/assets/spatialElementAssetResources.d.ts +25 -0
- package/dist/catalog/assets/spatialElementAssetResources.d.ts.map +1 -0
- package/dist/catalog/assets/spatialElementAssetResources.js +100 -0
- package/dist/catalog/assets/spatialElementAssetResources.js.map +1 -0
- package/dist/catalog/carouselPanelProjection.d.ts +9 -0
- package/dist/catalog/carouselPanelProjection.d.ts.map +1 -0
- package/dist/catalog/carouselPanelProjection.js +33 -0
- package/dist/catalog/carouselPanelProjection.js.map +1 -0
- package/dist/catalog/carouselSelection.d.ts +7 -0
- package/dist/catalog/carouselSelection.d.ts.map +1 -0
- package/dist/catalog/carouselSelection.js +15 -0
- package/dist/catalog/carouselSelection.js.map +1 -0
- package/dist/catalog/catalogAction.d.ts +4 -0
- package/dist/catalog/catalogAction.d.ts.map +1 -0
- package/dist/catalog/catalogAction.js +9 -0
- package/dist/catalog/catalogAction.js.map +1 -0
- package/dist/catalog/catalogGeometryRequest.d.ts +13 -0
- package/dist/catalog/catalogGeometryRequest.d.ts.map +1 -0
- package/dist/catalog/catalogGeometryRequest.js +8 -0
- package/dist/catalog/catalogGeometryRequest.js.map +1 -0
- package/dist/catalog/catalogItems.d.ts +10 -0
- package/dist/catalog/catalogItems.d.ts.map +1 -0
- package/dist/catalog/catalogItems.js +23 -0
- package/dist/catalog/catalogItems.js.map +1 -0
- package/dist/catalog/catalogJourney.d.ts +38 -0
- package/dist/catalog/catalogJourney.d.ts.map +1 -0
- package/dist/catalog/catalogJourney.js +64 -0
- package/dist/catalog/catalogJourney.js.map +1 -0
- package/dist/catalog/catalogPage.d.ts +11 -0
- package/dist/catalog/catalogPage.d.ts.map +1 -0
- package/dist/catalog/catalogPage.js +2 -0
- package/dist/catalog/catalogPage.js.map +1 -0
- package/dist/catalog/catalogPose.d.ts +30 -0
- package/dist/catalog/catalogPose.d.ts.map +1 -0
- package/dist/catalog/catalogPose.js +35 -0
- package/dist/catalog/catalogPose.js.map +1 -0
- package/dist/catalog/catalogPresentation.d.ts +24 -0
- package/dist/catalog/catalogPresentation.d.ts.map +1 -0
- package/dist/catalog/catalogPresentation.js +56 -0
- package/dist/catalog/catalogPresentation.js.map +1 -0
- package/dist/catalog/catalogRecipes.d.ts +21 -0
- package/dist/catalog/catalogRecipes.d.ts.map +1 -0
- package/dist/catalog/catalogRecipes.js +84 -0
- package/dist/catalog/catalogRecipes.js.map +1 -0
- package/dist/catalog/catalogSurfaceCapture.d.ts +11 -0
- package/dist/catalog/catalogSurfaceCapture.d.ts.map +1 -0
- package/dist/catalog/catalogSurfaceCapture.js +11 -0
- package/dist/catalog/catalogSurfaceCapture.js.map +1 -0
- package/dist/catalog/catalogViewLink.d.ts +8 -0
- package/dist/catalog/catalogViewLink.d.ts.map +1 -0
- package/dist/catalog/catalogViewLink.js +37 -0
- package/dist/catalog/catalogViewLink.js.map +1 -0
- package/dist/catalog/rebasePresentation.d.ts +3 -0
- package/dist/catalog/rebasePresentation.d.ts.map +1 -0
- package/dist/catalog/rebasePresentation.js +26 -0
- package/dist/catalog/rebasePresentation.js.map +1 -0
- package/dist/catalog/spatialElementAssets.d.ts +158 -0
- package/dist/catalog/spatialElementAssets.d.ts.map +1 -0
- package/dist/catalog/spatialElementAssets.js +92 -0
- package/dist/catalog/spatialElementAssets.js.map +1 -0
- package/dist/catalog/spatialElementLodPair.d.ts +17 -0
- package/dist/catalog/spatialElementLodPair.d.ts.map +1 -0
- package/dist/catalog/spatialElementLodPair.js +5 -0
- package/dist/catalog/spatialElementLodPair.js.map +1 -0
- package/dist/catalog/transitionTiming.d.ts +15 -0
- package/dist/catalog/transitionTiming.d.ts.map +1 -0
- package/dist/catalog/transitionTiming.js +22 -0
- package/dist/catalog/transitionTiming.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/spatial-element/SpatialElementDockController.d.ts +101 -0
- package/dist/spatial-element/SpatialElementDockController.d.ts.map +1 -0
- package/dist/spatial-element/SpatialElementDockController.js +627 -0
- package/dist/spatial-element/SpatialElementDockController.js.map +1 -0
- package/dist/spatial-element/spatialElement.d.ts +28 -0
- package/dist/spatial-element/spatialElement.d.ts.map +1 -0
- package/dist/spatial-element/spatialElement.js +45 -0
- package/dist/spatial-element/spatialElement.js.map +1 -0
- package/dist/spatial-element/spatialElementDock.d.ts +43 -0
- package/dist/spatial-element/spatialElementDock.d.ts.map +1 -0
- package/dist/spatial-element/spatialElementDock.js +126 -0
- package/dist/spatial-element/spatialElementDock.js.map +1 -0
- package/dist/spatial-element/spatialElementSectionRegistry.d.ts +29 -0
- package/dist/spatial-element/spatialElementSectionRegistry.d.ts.map +1 -0
- package/dist/spatial-element/spatialElementSectionRegistry.js +67 -0
- package/dist/spatial-element/spatialElementSectionRegistry.js.map +1 -0
- package/dist/spatial-element/types.d.ts +165 -0
- package/dist/spatial-element/types.d.ts.map +1 -0
- package/dist/spatial-element/types.js +2 -0
- package/dist/spatial-element/types.js.map +1 -0
- package/dist/stage/LiquidGlassPanel.d.ts +55 -0
- package/dist/stage/LiquidGlassPanel.d.ts.map +1 -0
- package/dist/stage/LiquidGlassPanel.js +447 -0
- package/dist/stage/LiquidGlassPanel.js.map +1 -0
- package/dist/stage/MinimapBlurPipeline.d.ts +34 -0
- package/dist/stage/MinimapBlurPipeline.d.ts.map +1 -0
- package/dist/stage/MinimapBlurPipeline.js +147 -0
- package/dist/stage/MinimapBlurPipeline.js.map +1 -0
- package/dist/stage/MinimapController.d.ts +113 -0
- package/dist/stage/MinimapController.d.ts.map +1 -0
- package/dist/stage/MinimapController.js +803 -0
- package/dist/stage/MinimapController.js.map +1 -0
- package/dist/stage/OrbitControlsInterop.d.ts +8 -0
- package/dist/stage/OrbitControlsInterop.d.ts.map +1 -0
- package/dist/stage/OrbitControlsInterop.js +19 -0
- package/dist/stage/OrbitControlsInterop.js.map +1 -0
- package/dist/stage/PageBindingController.d.ts +41 -0
- package/dist/stage/PageBindingController.d.ts.map +1 -0
- package/dist/stage/PageBindingController.js +92 -0
- package/dist/stage/PageBindingController.js.map +1 -0
- package/dist/stage/PanelPresentationController.d.ts +92 -0
- package/dist/stage/PanelPresentationController.d.ts.map +1 -0
- package/dist/stage/PanelPresentationController.js +569 -0
- package/dist/stage/PanelPresentationController.js.map +1 -0
- package/dist/stage/PresentationReadiness.d.ts +30 -0
- package/dist/stage/PresentationReadiness.d.ts.map +1 -0
- package/dist/stage/PresentationReadiness.js +94 -0
- package/dist/stage/PresentationReadiness.js.map +1 -0
- package/dist/stage/SpaceMouseAdapter.d.ts +76 -0
- package/dist/stage/SpaceMouseAdapter.d.ts.map +1 -0
- package/dist/stage/SpaceMouseAdapter.js +197 -0
- package/dist/stage/SpaceMouseAdapter.js.map +1 -0
- package/dist/stage/SpatialElementInteractionController.d.ts +126 -0
- package/dist/stage/SpatialElementInteractionController.d.ts.map +1 -0
- package/dist/stage/SpatialElementInteractionController.js +581 -0
- package/dist/stage/SpatialElementInteractionController.js.map +1 -0
- package/dist/stage/SpatialElementPresentationController.d.ts +82 -0
- package/dist/stage/SpatialElementPresentationController.d.ts.map +1 -0
- package/dist/stage/SpatialElementPresentationController.js +372 -0
- package/dist/stage/SpatialElementPresentationController.js.map +1 -0
- package/dist/stage/SpatialElementRefinement.d.ts +26 -0
- package/dist/stage/SpatialElementRefinement.d.ts.map +1 -0
- package/dist/stage/SpatialElementRefinement.js +105 -0
- package/dist/stage/SpatialElementRefinement.js.map +1 -0
- package/dist/stage/StageExperience.d.ts +536 -0
- package/dist/stage/StageExperience.d.ts.map +1 -0
- package/dist/stage/StageExperience.js +2399 -0
- package/dist/stage/StageExperience.js.map +1 -0
- package/dist/stage/StagePanelLayout.d.ts +15 -0
- package/dist/stage/StagePanelLayout.d.ts.map +1 -0
- package/dist/stage/StagePanelLayout.js +20 -0
- package/dist/stage/StagePanelLayout.js.map +1 -0
- package/dist/stage/StagePanelRuntime.d.ts +20 -0
- package/dist/stage/StagePanelRuntime.d.ts.map +1 -0
- package/dist/stage/StagePanelRuntime.js +2 -0
- package/dist/stage/StagePanelRuntime.js.map +1 -0
- package/dist/stage/StageRenderPipeline.d.ts +179 -0
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -0
- package/dist/stage/StageRenderPipeline.js +901 -0
- package/dist/stage/StageRenderPipeline.js.map +1 -0
- package/dist/stage/VirtualScrollController.d.ts +64 -0
- package/dist/stage/VirtualScrollController.d.ts.map +1 -0
- package/dist/stage/VirtualScrollController.js +329 -0
- package/dist/stage/VirtualScrollController.js.map +1 -0
- package/dist/stage/cssProjection.d.ts +18 -0
- package/dist/stage/cssProjection.d.ts.map +1 -0
- package/dist/stage/cssProjection.js +52 -0
- package/dist/stage/cssProjection.js.map +1 -0
- package/dist/stage/damping.d.ts +3 -0
- package/dist/stage/damping.d.ts.map +1 -0
- package/dist/stage/damping.js +8 -0
- package/dist/stage/damping.js.map +1 -0
- package/dist/stage/minimap/MinimapGeometry.d.ts +31 -0
- package/dist/stage/minimap/MinimapGeometry.d.ts.map +1 -0
- package/dist/stage/minimap/MinimapGeometry.js +163 -0
- package/dist/stage/minimap/MinimapGeometry.js.map +1 -0
- package/dist/stage/minimap/MinimapModel.d.ts +16 -0
- package/dist/stage/minimap/MinimapModel.d.ts.map +1 -0
- package/dist/stage/minimap/MinimapModel.js +51 -0
- package/dist/stage/minimap/MinimapModel.js.map +1 -0
- package/dist/stage/minimap/MinimapProjection.d.ts +41 -0
- package/dist/stage/minimap/MinimapProjection.d.ts.map +1 -0
- package/dist/stage/minimap/MinimapProjection.js +113 -0
- package/dist/stage/minimap/MinimapProjection.js.map +1 -0
- package/dist/stage/minimap/MinimapState.d.ts +102 -0
- package/dist/stage/minimap/MinimapState.d.ts.map +1 -0
- package/dist/stage/minimap/MinimapState.js +2 -0
- package/dist/stage/minimap/MinimapState.js.map +1 -0
- package/dist/stage/minimapMeasurement.d.ts +5 -0
- package/dist/stage/minimapMeasurement.d.ts.map +1 -0
- package/dist/stage/minimapMeasurement.js +11 -0
- package/dist/stage/minimapMeasurement.js.map +1 -0
- package/dist/stage/panelContext.d.ts +71 -0
- package/dist/stage/panelContext.d.ts.map +1 -0
- package/dist/stage/panelContext.js +6 -0
- package/dist/stage/panelContext.js.map +1 -0
- package/dist/stage/panelShadow.d.ts +20 -0
- package/dist/stage/panelShadow.d.ts.map +1 -0
- package/dist/stage/panelShadow.js +22 -0
- package/dist/stage/panelShadow.js.map +1 -0
- package/dist/stage/renderMeasurement.d.ts +3 -0
- package/dist/stage/renderMeasurement.d.ts.map +1 -0
- package/dist/stage/renderMeasurement.js +19 -0
- package/dist/stage/renderMeasurement.js.map +1 -0
- package/dist/stage/renderTargetInventory.d.ts +17 -0
- package/dist/stage/renderTargetInventory.d.ts.map +1 -0
- package/dist/stage/renderTargetInventory.js +27 -0
- package/dist/stage/renderTargetInventory.js.map +1 -0
- package/dist/stage/rendererState.d.ts +14 -0
- package/dist/stage/rendererState.d.ts.map +1 -0
- package/dist/stage/rendererState.js +35 -0
- package/dist/stage/rendererState.js.map +1 -0
- package/dist/stage/resolveStageProfile.d.ts +44 -0
- package/dist/stage/resolveStageProfile.d.ts.map +1 -0
- package/dist/stage/resolveStageProfile.js +30 -0
- package/dist/stage/resolveStageProfile.js.map +1 -0
- package/dist/stage/scrollAnimation.d.ts +10 -0
- package/dist/stage/scrollAnimation.d.ts.map +1 -0
- package/dist/stage/scrollAnimation.js +11 -0
- package/dist/stage/scrollAnimation.js.map +1 -0
- package/dist/stage/scrollFrame.d.ts +43 -0
- package/dist/stage/scrollFrame.d.ts.map +1 -0
- package/dist/stage/scrollFrame.js +232 -0
- package/dist/stage/scrollFrame.js.map +1 -0
- package/dist/stage/spatialElementFrame.d.ts +6 -0
- package/dist/stage/spatialElementFrame.d.ts.map +1 -0
- package/dist/stage/spatialElementFrame.js +22 -0
- package/dist/stage/spatialElementFrame.js.map +1 -0
- package/dist/stage/stageConstants.d.ts +85 -0
- package/dist/stage/stageConstants.d.ts.map +1 -0
- package/dist/stage/stageConstants.js +85 -0
- package/dist/stage/stageConstants.js.map +1 -0
- package/dist/stage/stageDom.d.ts +10 -0
- package/dist/stage/stageDom.d.ts.map +1 -0
- package/dist/stage/stageDom.js +22 -0
- package/dist/stage/stageDom.js.map +1 -0
- package/dist/stage/stageMath.d.ts +187 -0
- package/dist/stage/stageMath.d.ts.map +1 -0
- package/dist/stage/stageMath.js +344 -0
- package/dist/stage/stageMath.js.map +1 -0
- package/dist/stage/stageSceneUtils.d.ts +42 -0
- package/dist/stage/stageSceneUtils.d.ts.map +1 -0
- package/dist/stage/stageSceneUtils.js +154 -0
- package/dist/stage/stageSceneUtils.js.map +1 -0
- package/dist/stage/stageTypes.d.ts +189 -0
- package/dist/stage/stageTypes.d.ts.map +1 -0
- package/dist/stage/stageTypes.js +2 -0
- package/dist/stage/stageTypes.js.map +1 -0
- package/dist/stage/stageVisualTest.d.ts +92 -0
- package/dist/stage/stageVisualTest.d.ts.map +1 -0
- package/dist/stage/stageVisualTest.js +5 -0
- package/dist/stage/stageVisualTest.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
export declare function getRefinementSize(width: number, height: number): {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
};
|
|
6
|
+
/** Separate scene captures preserve authored alpha without sorting two translucent element meshes. */
|
|
7
|
+
export declare class SpatialElementRefinement {
|
|
8
|
+
private readonly overlay;
|
|
9
|
+
getRenderTargets(): THREE.RenderTarget<THREE.Texture<unknown, THREE.TextureEventMap>, THREE.RenderTargetEventMap>[];
|
|
10
|
+
constructor(overlay?: boolean);
|
|
11
|
+
private low?;
|
|
12
|
+
private high?;
|
|
13
|
+
private material?;
|
|
14
|
+
private quad?;
|
|
15
|
+
private readonly progress;
|
|
16
|
+
private lastFrame?;
|
|
17
|
+
private linearProgress;
|
|
18
|
+
complete: boolean;
|
|
19
|
+
frames: number;
|
|
20
|
+
get presentedProgress(): number;
|
|
21
|
+
restart(): void;
|
|
22
|
+
get targetCount(): number;
|
|
23
|
+
render(renderer: THREE.WebGPURenderer, draw: (high: boolean) => void, reducedMotion: boolean, progress?: number): void;
|
|
24
|
+
dispose(): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=SpatialElementRefinement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpatialElementRefinement.d.ts","sourceRoot":"","sources":["../../src/stage/SpatialElementRefinement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAMtC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;EAM9D;AAED,sGAAsG;AACtG,qBAAa,wBAAwB;IAIxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAHpC,gBAAgB;gBAGa,OAAO,UAAQ;IAC5C,OAAO,CAAC,GAAG,CAAC,CAAqB;IACjC,OAAO,CAAC,IAAI,CAAC,CAAqB;IAClC,OAAO,CAAC,QAAQ,CAAC,CAAqB;IACtC,OAAO,CAAC,IAAI,CAAC,CAAiB;IAC9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAc;IACvC,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,cAAc,CAAK;IAC3B,QAAQ,UAAS;IACjB,MAAM,SAAK;IACX,IAAI,iBAAiB,WAEpB;IACD,OAAO;IAOP,IAAI,WAAW,WAEd;IAED,MAAM,CACL,QAAQ,EAAE,KAAK,CAAC,cAAc,EAC9B,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,EAC7B,aAAa,EAAE,OAAO,EACtB,QAAQ,CAAC,EAAE,MAAM;IA0DlB,OAAO;CAQP"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { mix, texture, uniform } from 'three/tsl';
|
|
3
|
+
import { easeInOutSine, ASYNC_REVEAL_DURATION } from '../catalog/transitionTiming.js';
|
|
4
|
+
// Bound temporary attachments independently of viewport size and device pixel ratio.
|
|
5
|
+
const MAX_REFINEMENT_PIXELS = 512 * 1024;
|
|
6
|
+
export function getRefinementSize(width, height) {
|
|
7
|
+
const scale = Math.min(1, Math.sqrt(MAX_REFINEMENT_PIXELS / (width * height)));
|
|
8
|
+
return {
|
|
9
|
+
width: Math.max(1, Math.floor(width * scale)),
|
|
10
|
+
height: Math.max(1, Math.floor(height * scale))
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Separate scene captures preserve authored alpha without sorting two translucent element meshes. */
|
|
14
|
+
export class SpatialElementRefinement {
|
|
15
|
+
overlay;
|
|
16
|
+
getRenderTargets() {
|
|
17
|
+
return [this.low, this.high].filter((target) => Boolean(target));
|
|
18
|
+
}
|
|
19
|
+
constructor(overlay = false) {
|
|
20
|
+
this.overlay = overlay;
|
|
21
|
+
}
|
|
22
|
+
low;
|
|
23
|
+
high;
|
|
24
|
+
material;
|
|
25
|
+
quad;
|
|
26
|
+
progress = uniform(0);
|
|
27
|
+
lastFrame;
|
|
28
|
+
linearProgress = 0;
|
|
29
|
+
complete = false;
|
|
30
|
+
frames = 0;
|
|
31
|
+
get presentedProgress() {
|
|
32
|
+
return this.progress.value;
|
|
33
|
+
}
|
|
34
|
+
restart() {
|
|
35
|
+
this.lastFrame = undefined;
|
|
36
|
+
this.linearProgress = 0;
|
|
37
|
+
this.progress.value = 0;
|
|
38
|
+
this.complete = false;
|
|
39
|
+
this.frames = 0;
|
|
40
|
+
}
|
|
41
|
+
get targetCount() {
|
|
42
|
+
return Number(Boolean(this.low)) + Number(Boolean(this.high));
|
|
43
|
+
}
|
|
44
|
+
render(renderer, draw, reducedMotion, progress) {
|
|
45
|
+
const destination = renderer.getRenderTarget();
|
|
46
|
+
if (!destination && !this.overlay)
|
|
47
|
+
throw new Error('SpatialElement refinement requires an owned scene capture');
|
|
48
|
+
const size = destination ?? renderer.getDrawingBufferSize(new THREE.Vector2());
|
|
49
|
+
const targetWidth = size.width;
|
|
50
|
+
const targetHeight = size.height;
|
|
51
|
+
if (!this.low || !this.high) {
|
|
52
|
+
this.low =
|
|
53
|
+
destination?.clone() ??
|
|
54
|
+
new THREE.RenderTarget(targetWidth, targetHeight, {
|
|
55
|
+
type: THREE.HalfFloatType,
|
|
56
|
+
samples: 4
|
|
57
|
+
});
|
|
58
|
+
this.high = this.low.clone();
|
|
59
|
+
this.material = new THREE.NodeMaterial();
|
|
60
|
+
this.material.fragmentNode = mix(texture(this.low.texture), texture(this.high.texture), this.progress);
|
|
61
|
+
this.material.depthTest = false;
|
|
62
|
+
this.material.depthWrite = false;
|
|
63
|
+
this.material.blending = this.overlay ? THREE.NormalBlending : THREE.NoBlending;
|
|
64
|
+
this.material.transparent = this.overlay;
|
|
65
|
+
this.material.premultipliedAlpha = this.overlay;
|
|
66
|
+
this.material.toneMapped = false;
|
|
67
|
+
this.quad = new THREE.QuadMesh(this.material);
|
|
68
|
+
}
|
|
69
|
+
const { width, height } = getRefinementSize(targetWidth, targetHeight);
|
|
70
|
+
this.low.setSize(width, height);
|
|
71
|
+
this.high.setSize(width, height);
|
|
72
|
+
try {
|
|
73
|
+
// High first: its first actual render must succeed before it becomes visible.
|
|
74
|
+
renderer.setRenderTarget(this.high);
|
|
75
|
+
draw(true);
|
|
76
|
+
renderer.setRenderTarget(this.low);
|
|
77
|
+
draw(false);
|
|
78
|
+
const now = performance.now();
|
|
79
|
+
if (this.lastFrame !== undefined)
|
|
80
|
+
this.linearProgress = Math.min(1, this.linearProgress + Math.min(50, now - this.lastFrame) / ASYNC_REVEAL_DURATION);
|
|
81
|
+
this.progress.value = progress ?? easeInOutSine(this.linearProgress);
|
|
82
|
+
this.lastFrame = now;
|
|
83
|
+
if (reducedMotion)
|
|
84
|
+
this.progress.value = 1;
|
|
85
|
+
renderer.setRenderTarget(destination);
|
|
86
|
+
if (!this.overlay)
|
|
87
|
+
renderer.clear();
|
|
88
|
+
this.quad.render(renderer);
|
|
89
|
+
this.frames += 1;
|
|
90
|
+
this.complete = this.progress.value === 1;
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
renderer.setRenderTarget(destination);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
dispose() {
|
|
97
|
+
this.low?.dispose();
|
|
98
|
+
this.high?.dispose();
|
|
99
|
+
this.material?.dispose();
|
|
100
|
+
this.low = this.high = undefined;
|
|
101
|
+
this.material = undefined;
|
|
102
|
+
this.quad = undefined;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=SpatialElementRefinement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpatialElementRefinement.js","sourceRoot":"","sources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IAAI,GAAG,SAAS,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;IACvB,CAAC;CACD","sourcesContent":["import * as THREE from 'three/webgpu';\nimport { mix, texture, uniform } from 'three/tsl';\nimport { easeInOutSine, ASYNC_REVEAL_DURATION } from '../catalog/transitionTiming.js';\n\n// Bound temporary attachments independently of viewport size and device pixel ratio.\nconst MAX_REFINEMENT_PIXELS = 512 * 1024;\nexport function getRefinementSize(width: number, height: number) {\n\tconst scale = Math.min(1, Math.sqrt(MAX_REFINEMENT_PIXELS / (width * height)));\n\treturn {\n\t\twidth: Math.max(1, Math.floor(width * scale)),\n\t\theight: Math.max(1, Math.floor(height * scale))\n\t};\n}\n\n/** Separate scene captures preserve authored alpha without sorting two translucent element meshes. */\nexport class SpatialElementRefinement {\n\tgetRenderTargets() {\n\t\treturn [this.low, this.high].filter((target): target is THREE.RenderTarget => Boolean(target));\n\t}\n\tconstructor(private readonly overlay = false) {}\n\tprivate low?: THREE.RenderTarget;\n\tprivate high?: THREE.RenderTarget;\n\tprivate material?: THREE.NodeMaterial;\n\tprivate quad?: THREE.QuadMesh;\n\tprivate readonly progress = uniform(0);\n\tprivate lastFrame?: number;\n\tprivate linearProgress = 0;\n\tcomplete = false;\n\tframes = 0;\n\tget presentedProgress() {\n\t\treturn this.progress.value;\n\t}\n\trestart() {\n\t\tthis.lastFrame = undefined;\n\t\tthis.linearProgress = 0;\n\t\tthis.progress.value = 0;\n\t\tthis.complete = false;\n\t\tthis.frames = 0;\n\t}\n\tget targetCount() {\n\t\treturn Number(Boolean(this.low)) + Number(Boolean(this.high));\n\t}\n\n\trender(\n\t\trenderer: THREE.WebGPURenderer,\n\t\tdraw: (high: boolean) => void,\n\t\treducedMotion: boolean,\n\t\tprogress?: number\n\t) {\n\t\tconst destination = renderer.getRenderTarget();\n\t\tif (!destination && !this.overlay)\n\t\t\tthrow new Error('SpatialElement refinement requires an owned scene capture');\n\t\tconst size = destination ?? renderer.getDrawingBufferSize(new THREE.Vector2());\n\t\tconst targetWidth = size.width;\n\t\tconst targetHeight = size.height;\n\t\tif (!this.low || !this.high) {\n\t\t\tthis.low =\n\t\t\t\tdestination?.clone() ??\n\t\t\t\tnew THREE.RenderTarget(targetWidth, targetHeight, {\n\t\t\t\t\ttype: THREE.HalfFloatType,\n\t\t\t\t\tsamples: 4\n\t\t\t\t});\n\t\t\tthis.high = this.low.clone();\n\t\t\tthis.material = new THREE.NodeMaterial();\n\t\t\tthis.material.fragmentNode = mix(\n\t\t\t\ttexture(this.low.texture),\n\t\t\t\ttexture(this.high.texture),\n\t\t\t\tthis.progress\n\t\t\t);\n\t\t\tthis.material.depthTest = false;\n\t\t\tthis.material.depthWrite = false;\n\t\t\tthis.material.blending = this.overlay ? THREE.NormalBlending : THREE.NoBlending;\n\t\t\tthis.material.transparent = this.overlay;\n\t\t\tthis.material.premultipliedAlpha = this.overlay;\n\t\t\tthis.material.toneMapped = false;\n\t\t\tthis.quad = new THREE.QuadMesh(this.material);\n\t\t}\n\t\tconst { width, height } = getRefinementSize(targetWidth, targetHeight);\n\t\tthis.low.setSize(width, height);\n\t\tthis.high.setSize(width, height);\n\t\ttry {\n\t\t\t// High first: its first actual render must succeed before it becomes visible.\n\t\t\trenderer.setRenderTarget(this.high);\n\t\t\tdraw(true);\n\t\t\trenderer.setRenderTarget(this.low);\n\t\t\tdraw(false);\n\t\t\tconst now = performance.now();\n\t\t\tif (this.lastFrame !== undefined)\n\t\t\t\tthis.linearProgress = Math.min(\n\t\t\t\t\t1,\n\t\t\t\t\tthis.linearProgress + Math.min(50, now - this.lastFrame) / ASYNC_REVEAL_DURATION\n\t\t\t\t);\n\t\t\tthis.progress.value = progress ?? easeInOutSine(this.linearProgress);\n\t\t\tthis.lastFrame = now;\n\t\t\tif (reducedMotion) this.progress.value = 1;\n\t\t\trenderer.setRenderTarget(destination);\n\t\t\tif (!this.overlay) renderer.clear();\n\t\t\tthis.quad!.render(renderer);\n\t\t\tthis.frames += 1;\n\t\t\tthis.complete = this.progress.value === 1;\n\t\t} finally {\n\t\t\trenderer.setRenderTarget(destination);\n\t\t}\n\t}\n\n\tdispose() {\n\t\tthis.low?.dispose();\n\t\tthis.high?.dispose();\n\t\tthis.material?.dispose();\n\t\tthis.low = this.high = undefined;\n\t\tthis.material = undefined;\n\t\tthis.quad = undefined;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import type { CatalogGeometryEndpoint, CatalogGeometryDestination } from '../catalog/catalogGeometryRequest.js';
|
|
2
|
+
import type { CatalogParticipantEndpoint, CatalogParticipantPair } from '../catalog/catalogJourney.js';
|
|
3
|
+
import { type TransitionMode } from '../catalog/transitionTiming.js';
|
|
4
|
+
import * as THREE from 'three/webgpu';
|
|
5
|
+
import { SpatialElementAssetManager } from '../catalog/assets/SpatialElementAssetManager.js';
|
|
6
|
+
import { SpatialElementEntityStore } from '../catalog/spatialElementAssets.js';
|
|
7
|
+
import { type CatalogTransitionPresentation } from '../catalog/catalogPresentation.js';
|
|
8
|
+
import type { SpatialListItem, SpatialStageConfig } from '../spatial-element/types.js';
|
|
9
|
+
import { type CssProjectionQuad } from './minimap/MinimapProjection.js';
|
|
10
|
+
import type { StageExperienceOptions, StageVisualTestView } from './stageTypes.js';
|
|
11
|
+
export type { BackgroundSettings, StageCameraSettings, StageExperienceOptions, StageInteractionTheme, StageMinimapOptions, StageModelSettings, StagePanelSurface, StagePanelTarget, StageVisualTestView, StageViewportTarget, StageZoomFocusState } from './stageTypes.js';
|
|
12
|
+
/** Shared spatial state for both WebGPU glass and DOM-backed panel surfaces. */
|
|
13
|
+
/**
|
|
14
|
+
* Coordinates the WebGPU element scene, glass panels, accessible CSS3D content,
|
|
15
|
+
* pointer interaction, camera controls, and optional element minimaps.
|
|
16
|
+
*
|
|
17
|
+
* Rendering helpers and deterministic calculations live in focused modules; this
|
|
18
|
+
* class remains the public lifecycle facade consumed by the Svelte component.
|
|
19
|
+
*/
|
|
20
|
+
export declare class StageExperience {
|
|
21
|
+
private readonly container;
|
|
22
|
+
captureGeometry(source: CatalogGeometryEndpoint): boolean;
|
|
23
|
+
prepareGeometryDestination(destination: CatalogGeometryDestination): boolean;
|
|
24
|
+
private readonly pipeline;
|
|
25
|
+
private backgroundSettings;
|
|
26
|
+
private pageBackground;
|
|
27
|
+
private hdr;
|
|
28
|
+
private glb;
|
|
29
|
+
private lodPair?;
|
|
30
|
+
private get lowModel();
|
|
31
|
+
private get referenceBounds();
|
|
32
|
+
private get highInstance();
|
|
33
|
+
private get highPose();
|
|
34
|
+
private get refinement();
|
|
35
|
+
private get refinementState();
|
|
36
|
+
private get refinementFrames();
|
|
37
|
+
private modelSettings;
|
|
38
|
+
private cameraSettings;
|
|
39
|
+
private excludedMeshNames;
|
|
40
|
+
private readonly interactionTheme;
|
|
41
|
+
private readonly pageBinding;
|
|
42
|
+
private get panelTargets();
|
|
43
|
+
private get viewportTarget();
|
|
44
|
+
private readonly panels;
|
|
45
|
+
private readonly minimapController;
|
|
46
|
+
private readonly interaction;
|
|
47
|
+
private readonly spaceMouseEnabled;
|
|
48
|
+
private fallbackPanelOptions;
|
|
49
|
+
private readonly catalog;
|
|
50
|
+
private catalogLayer?;
|
|
51
|
+
private catalogHandoff;
|
|
52
|
+
private catalogMotionComplete;
|
|
53
|
+
private catalogLayerAnimating;
|
|
54
|
+
private catalogPresentation;
|
|
55
|
+
private pageModelReady;
|
|
56
|
+
private readonly preparationGate;
|
|
57
|
+
/** Optional High build/warm must not compete with required Low destination binding. */
|
|
58
|
+
private readonly detailPreparationGate;
|
|
59
|
+
readonly assets: SpatialElementAssetManager;
|
|
60
|
+
private readonly presentation;
|
|
61
|
+
private environments;
|
|
62
|
+
private preparation;
|
|
63
|
+
private get pagePreparation();
|
|
64
|
+
private get catalogMode();
|
|
65
|
+
private get catalogBlend();
|
|
66
|
+
private get returnBlend();
|
|
67
|
+
private spatialCapture?;
|
|
68
|
+
private exitingMinimaps;
|
|
69
|
+
private adoptedForward;
|
|
70
|
+
private returnSpatialElement?;
|
|
71
|
+
private contentSecondaries;
|
|
72
|
+
private returnProjection?;
|
|
73
|
+
private returnProgress;
|
|
74
|
+
private outgoingBackground;
|
|
75
|
+
private catalogDockTarget;
|
|
76
|
+
private get deferDetailPreparation();
|
|
77
|
+
private heroIsPresented;
|
|
78
|
+
private get backgroundPending();
|
|
79
|
+
private get catalogBackgroundPrepared();
|
|
80
|
+
private get backgroundApplied();
|
|
81
|
+
readonly spatialElements: SpatialElementEntityStore;
|
|
82
|
+
private get assetInstance();
|
|
83
|
+
private get loadedModelKey();
|
|
84
|
+
private readonly scene;
|
|
85
|
+
private readonly backgroundScene;
|
|
86
|
+
private readonly tintScene;
|
|
87
|
+
private readonly panelScene;
|
|
88
|
+
private get minimapScene();
|
|
89
|
+
private readonly panelContentScene;
|
|
90
|
+
private readonly camera;
|
|
91
|
+
private readonly tintCamera;
|
|
92
|
+
private readonly panelCamera;
|
|
93
|
+
private readonly renderer;
|
|
94
|
+
private readonly backgroundCanvasTarget;
|
|
95
|
+
private readonly backgroundCanvas;
|
|
96
|
+
private readonly cssRenderer;
|
|
97
|
+
private readonly flatPanelLayer;
|
|
98
|
+
private readonly nativePanelLayer;
|
|
99
|
+
private get panelRuntimes();
|
|
100
|
+
private get minimaps();
|
|
101
|
+
private readonly resize;
|
|
102
|
+
private readonly render;
|
|
103
|
+
private readonly visibilityChange;
|
|
104
|
+
private readonly pointerMove;
|
|
105
|
+
private readonly pointerLeave;
|
|
106
|
+
private readonly pointerDown;
|
|
107
|
+
private readonly pointerUp;
|
|
108
|
+
private readonly wheel;
|
|
109
|
+
private readonly scroll;
|
|
110
|
+
private readonly finishScroll;
|
|
111
|
+
private readonly requestPanelSync;
|
|
112
|
+
private readonly requestPanelVisualSync;
|
|
113
|
+
private get pointer();
|
|
114
|
+
private readonly onZoomFocusChange?;
|
|
115
|
+
private readonly viewportFrame;
|
|
116
|
+
private readonly viewportLayoutSize;
|
|
117
|
+
private readonly fittedViewportMetrics;
|
|
118
|
+
private readonly modelBounds;
|
|
119
|
+
private get controls();
|
|
120
|
+
private get spaceMouseMoving();
|
|
121
|
+
private environmentTarget?;
|
|
122
|
+
private get model();
|
|
123
|
+
private get modelHover();
|
|
124
|
+
private get modelInteractionActive();
|
|
125
|
+
private tintGeometry?;
|
|
126
|
+
private disposed;
|
|
127
|
+
private tintMaterial?;
|
|
128
|
+
private readonly catalogBackgroundReveal;
|
|
129
|
+
private stopScrollFrames?;
|
|
130
|
+
private renderRequestId;
|
|
131
|
+
private renderInvalidated;
|
|
132
|
+
private animationActive;
|
|
133
|
+
private scrollActive;
|
|
134
|
+
private scrollEndTimer;
|
|
135
|
+
private lastInteractionTime;
|
|
136
|
+
private layoutDirty;
|
|
137
|
+
private panelMeasurementsDirty;
|
|
138
|
+
private viewportMeasurementDirty;
|
|
139
|
+
private stageViewportVisible;
|
|
140
|
+
private get visiblePanelCount();
|
|
141
|
+
private get visibleMinimapCount();
|
|
142
|
+
private get focusCloseDistance();
|
|
143
|
+
private modelRadius;
|
|
144
|
+
private panelFocus;
|
|
145
|
+
private panelUiFocus;
|
|
146
|
+
private minimapFocus;
|
|
147
|
+
private currentScrollX;
|
|
148
|
+
private currentScrollY;
|
|
149
|
+
private lastScrollY;
|
|
150
|
+
private lastReportedZoomFocus;
|
|
151
|
+
private get zoomResetTargetDistance();
|
|
152
|
+
private get wheelZoomTargetDistance();
|
|
153
|
+
private get initialCameraPosition();
|
|
154
|
+
private get initialControlsTarget();
|
|
155
|
+
private readonly initialCameraWorldQuaternion;
|
|
156
|
+
private readonly initialModelWorldQuaternion;
|
|
157
|
+
private get initialCameraFov();
|
|
158
|
+
private get initialViewCaptured();
|
|
159
|
+
private get viewResetActive();
|
|
160
|
+
/**
|
|
161
|
+
* Creates a stage lifecycle facade for one container.
|
|
162
|
+
*
|
|
163
|
+
* @param container - Element that receives the WebGPU and CSS3D renderer layers.
|
|
164
|
+
* @param options - Scene assets, panel registrations, viewport anchor, and callbacks.
|
|
165
|
+
*/
|
|
166
|
+
constructor(container: HTMLElement, options?: StageExperienceOptions);
|
|
167
|
+
/** Loads GPU resources and assets, creates panels, and starts the render loop. */
|
|
168
|
+
init(): Promise<void>;
|
|
169
|
+
/** Releases listeners, DOM layers, scene resources, controls, and GPU allocations. */
|
|
170
|
+
dispose(): void;
|
|
171
|
+
/** Page DOM is a replaceable binding, not the owner of the device or element cache. */
|
|
172
|
+
releasePage(): void;
|
|
173
|
+
/** A failed page binding owns no model or panels; the device/cache remain reusable. */
|
|
174
|
+
discardFailedPage(): void;
|
|
175
|
+
private rememberDomHome;
|
|
176
|
+
resolvePanelSurface(element: HTMLElement): HTMLElement;
|
|
177
|
+
capturePanelSurface(element: HTMLElement): import("../catalog/catalogSurfaceCapture.js").CatalogSurfaceCapture;
|
|
178
|
+
/** Project authored DOM depth inside the actual CSS3D object, without flattening its type. */
|
|
179
|
+
capturePanelElement(element: HTMLElement): {
|
|
180
|
+
width: number;
|
|
181
|
+
height: number;
|
|
182
|
+
corners: CssProjectionQuad;
|
|
183
|
+
} | undefined;
|
|
184
|
+
updatePage(options: StageExperienceOptions): Promise<void>;
|
|
185
|
+
setCatalogSpatialElements(brandId: string, items: SpatialListItem[]): Promise<void>;
|
|
186
|
+
setCatalogTransitionPresentation(state: CatalogTransitionPresentation): void;
|
|
187
|
+
/** Reports actual applied GPU alpha for browser verification without layout or style reads. */
|
|
188
|
+
getCatalogPresentation(): {
|
|
189
|
+
mode: TransitionMode | null;
|
|
190
|
+
exitingMinimaps: {
|
|
191
|
+
opacity: number;
|
|
192
|
+
frames: number;
|
|
193
|
+
progress: number;
|
|
194
|
+
highWeight: number;
|
|
195
|
+
projection: THREE.Matrix4Tuple;
|
|
196
|
+
disposed: boolean;
|
|
197
|
+
}[];
|
|
198
|
+
preparation: {
|
|
199
|
+
background: "loading" | "ready" | "failed";
|
|
200
|
+
high: "unavailable" | "loading" | "ready" | "failed" | "adopted";
|
|
201
|
+
timings: {
|
|
202
|
+
buildMs: number;
|
|
203
|
+
gpuWarmMs: number;
|
|
204
|
+
} | undefined;
|
|
205
|
+
key: string;
|
|
206
|
+
} | null;
|
|
207
|
+
channels: {
|
|
208
|
+
active: boolean;
|
|
209
|
+
enterOpacity: number;
|
|
210
|
+
exitOpacity: number;
|
|
211
|
+
sharedOpacity: number;
|
|
212
|
+
backgroundOpacity?: number;
|
|
213
|
+
geometryOpacity?: number;
|
|
214
|
+
};
|
|
215
|
+
backgroundReveal: number;
|
|
216
|
+
backgroundPrepared: boolean;
|
|
217
|
+
handoffPoint: {
|
|
218
|
+
x: number;
|
|
219
|
+
y: number;
|
|
220
|
+
} | null;
|
|
221
|
+
representations: {
|
|
222
|
+
retainedBlendTargets: number;
|
|
223
|
+
state: "unavailable" | "high" | "loading" | "failed" | "decoded" | "refining";
|
|
224
|
+
hero: string | null;
|
|
225
|
+
minimap: string | null;
|
|
226
|
+
frames: number;
|
|
227
|
+
temporaryTargets: number;
|
|
228
|
+
heroTriangles: number;
|
|
229
|
+
minimapTriangles: number[];
|
|
230
|
+
lowUrl: string;
|
|
231
|
+
highUrl: string | null;
|
|
232
|
+
};
|
|
233
|
+
model: {
|
|
234
|
+
loadedKey: string | null;
|
|
235
|
+
ready: boolean;
|
|
236
|
+
handoff: boolean;
|
|
237
|
+
};
|
|
238
|
+
panels: {
|
|
239
|
+
group: import("../catalog/catalogPresentation.js").CatalogTransitionGroup | null;
|
|
240
|
+
surface: import("./stageTypes.js").StagePanelSurface;
|
|
241
|
+
transitionOpacity: number;
|
|
242
|
+
glassOpacity: number | null;
|
|
243
|
+
visible: boolean;
|
|
244
|
+
}[];
|
|
245
|
+
minimaps: {
|
|
246
|
+
group: import("../catalog/catalogPresentation.js").CatalogTransitionGroup | null;
|
|
247
|
+
transitionOpacity: number;
|
|
248
|
+
modelOpacity: number;
|
|
249
|
+
materialOpacities: number[];
|
|
250
|
+
ringOpacity: number;
|
|
251
|
+
compositeOpacity: number;
|
|
252
|
+
visible: boolean;
|
|
253
|
+
}[];
|
|
254
|
+
};
|
|
255
|
+
/** Exercises the actual WebGPU loss callback; exposed only by the opt-in test controller. */
|
|
256
|
+
loseDeviceForTest(): void;
|
|
257
|
+
private getPanelTransitionOpacity;
|
|
258
|
+
private captureCatalogGeometry;
|
|
259
|
+
/** Content-to-content motion owns only the prepared Low representation. */
|
|
260
|
+
captureContentGeometry(spatialElementId: string, secondary?: CatalogParticipantEndpoint[]): boolean;
|
|
261
|
+
prepareContentParticipants(pairs: CatalogParticipantPair[]): CatalogParticipantPair[];
|
|
262
|
+
/** Rebase matching neighbours from their submitted pose; release unmatched owners once. */
|
|
263
|
+
adoptContentParticipants(pairs: CatalogParticipantPair[]): void;
|
|
264
|
+
promoteContentParticipant(source: CatalogParticipantEndpoint): boolean;
|
|
265
|
+
getCatalogGeometryPoint(): {
|
|
266
|
+
x: number;
|
|
267
|
+
y: number;
|
|
268
|
+
} | null;
|
|
269
|
+
/** Lease the last submitted element frame before another page binding can release it. */
|
|
270
|
+
adoptCatalogPresentation(destination: CatalogGeometryDestination): boolean;
|
|
271
|
+
/** Transfer already prepared hero resources before releasePage/cancelHighRequest can dispose them. */
|
|
272
|
+
captureHeroPresentation(): boolean;
|
|
273
|
+
getSpatialCapture(): {
|
|
274
|
+
secondary: {
|
|
275
|
+
frames: number;
|
|
276
|
+
progress: number;
|
|
277
|
+
highWeight: number;
|
|
278
|
+
projection: THREE.Matrix4Tuple;
|
|
279
|
+
disposed: boolean;
|
|
280
|
+
spatialElementId: string;
|
|
281
|
+
occurrence: string | undefined;
|
|
282
|
+
}[];
|
|
283
|
+
frames: number;
|
|
284
|
+
progress: number;
|
|
285
|
+
highWeight: number;
|
|
286
|
+
projection: THREE.Matrix4Tuple;
|
|
287
|
+
disposed: boolean;
|
|
288
|
+
} | null;
|
|
289
|
+
private captureReturnGeometry;
|
|
290
|
+
getDockProjection(): {
|
|
291
|
+
environmentIntensity: number;
|
|
292
|
+
viewportClip?: {
|
|
293
|
+
left: number;
|
|
294
|
+
top: number;
|
|
295
|
+
width: number;
|
|
296
|
+
height: number;
|
|
297
|
+
};
|
|
298
|
+
fog?: THREE.Fog | THREE.FogExp2 | null;
|
|
299
|
+
model: THREE.Matrix4;
|
|
300
|
+
camera: THREE.Matrix4;
|
|
301
|
+
clip: THREE.Matrix4;
|
|
302
|
+
} | undefined;
|
|
303
|
+
private captureDockPresentation;
|
|
304
|
+
private prepareCatalogDestination;
|
|
305
|
+
private prepareReturnDestination;
|
|
306
|
+
/** Retain unshared rail geometry until its exit fade completes, independently of the page. */
|
|
307
|
+
private captureExitingMinimaps;
|
|
308
|
+
releaseSpatialCapture(): void;
|
|
309
|
+
setCatalogGeometryProgress(progress: number): void;
|
|
310
|
+
/** Commit GPU and DOM motion in the same browser frame, not on consecutive RAFs. */
|
|
311
|
+
flushCatalogFrame(): void;
|
|
312
|
+
finishCatalogGeometry(): void;
|
|
313
|
+
private releaseModel;
|
|
314
|
+
/** Smoothly restores the initial fitted camera position and orbit target. */
|
|
315
|
+
resetView(): void;
|
|
316
|
+
/** @deprecated Use {@link resetView} to restore the complete fitted pose. */
|
|
317
|
+
resetZoom(): void;
|
|
318
|
+
/**
|
|
319
|
+
* Applies an exact camera pose for screenshot tests.
|
|
320
|
+
*
|
|
321
|
+
* This bypasses OrbitControls damping so a visual test can capture a known
|
|
322
|
+
* state. It is only called by the query-gated
|
|
323
|
+
* test controller installed by the Svelte stage component.
|
|
324
|
+
*
|
|
325
|
+
* @param view - Normalized zoom, orbit offsets, and optional target translation.
|
|
326
|
+
*/
|
|
327
|
+
setVisualTestView(view?: StageVisualTestView): void;
|
|
328
|
+
/** Applies the camera/target dolly produced by a real SpaceMouse zoom transaction. */
|
|
329
|
+
setVisualTestSpaceMouseZoom(zoom?: number): void;
|
|
330
|
+
/** Repeats SpaceMouse navigation transactions while synthetic frames are rendered. */
|
|
331
|
+
driveVisualTestSpaceMouseZoom(zoom?: number, frames?: number): void;
|
|
332
|
+
/** Ends the synthetic SpaceMouse gesture used by browser regression tests. */
|
|
333
|
+
stopVisualTestSpaceMouseMotion(): void;
|
|
334
|
+
/** Returns the live rendered minimap bounds rather than its hidden DOM fallback bounds. */
|
|
335
|
+
getVisualTestMinimapRect(): {
|
|
336
|
+
x: number;
|
|
337
|
+
y: number;
|
|
338
|
+
width: number;
|
|
339
|
+
height: number;
|
|
340
|
+
} | null;
|
|
341
|
+
/** Returns the main element's projected bounds for query-gated layout regressions. */
|
|
342
|
+
getVisualTestModelRect(): {
|
|
343
|
+
x: number;
|
|
344
|
+
y: number;
|
|
345
|
+
width: number;
|
|
346
|
+
height: number;
|
|
347
|
+
} | null;
|
|
348
|
+
/** Returns the projected element bounds used by the dock's header-top anchor. */
|
|
349
|
+
getVisualTestMinimapModelRect(): {
|
|
350
|
+
x: number;
|
|
351
|
+
y: number;
|
|
352
|
+
width: number;
|
|
353
|
+
height: number;
|
|
354
|
+
} | null;
|
|
355
|
+
/** Returns minimap orientation endpoints for query-gated browser regressions. */
|
|
356
|
+
getVisualTestMinimapOrientation(): {
|
|
357
|
+
rest: [number, number, number, number];
|
|
358
|
+
display: [number, number, number, number];
|
|
359
|
+
live: [number, number, number, number];
|
|
360
|
+
docked: [number, number, number, number] | null;
|
|
361
|
+
dockProgress: number;
|
|
362
|
+
} | null;
|
|
363
|
+
/** Returns overlay capture submissions for query-gated performance regression tests. */
|
|
364
|
+
getVisualTestMinimapRenderStats(): {
|
|
365
|
+
overlayCapturePasses: number;
|
|
366
|
+
depthNear: number;
|
|
367
|
+
depthFar: number;
|
|
368
|
+
viewportRingInForeground: boolean;
|
|
369
|
+
};
|
|
370
|
+
/** Returns Low-band and glass-compositor counters without scheduling rendering. */
|
|
371
|
+
getCarouselStats(): {
|
|
372
|
+
instances: number;
|
|
373
|
+
detachedInstances: number;
|
|
374
|
+
visible: number;
|
|
375
|
+
passes: number;
|
|
376
|
+
glass: {
|
|
377
|
+
panels: number;
|
|
378
|
+
targets: number;
|
|
379
|
+
passes: number;
|
|
380
|
+
resizes: number;
|
|
381
|
+
};
|
|
382
|
+
actors: {
|
|
383
|
+
spatialElementId: string;
|
|
384
|
+
band: "front" | "rear" | undefined;
|
|
385
|
+
clip: {
|
|
386
|
+
left: number;
|
|
387
|
+
top: number;
|
|
388
|
+
width: number;
|
|
389
|
+
height: number;
|
|
390
|
+
} | undefined;
|
|
391
|
+
opacity: number;
|
|
392
|
+
materialOpacity: number;
|
|
393
|
+
depthWrite: boolean;
|
|
394
|
+
}[];
|
|
395
|
+
} | null;
|
|
396
|
+
/** Returns render-target lifecycle counters for query-gated performance tests. */
|
|
397
|
+
getVisualTestRenderTargetStats(): {
|
|
398
|
+
canvases: {
|
|
399
|
+
band: string;
|
|
400
|
+
width: number;
|
|
401
|
+
height: number;
|
|
402
|
+
colorAttachments: number;
|
|
403
|
+
depthAttachments: number;
|
|
404
|
+
}[];
|
|
405
|
+
creations: number;
|
|
406
|
+
resizes: number;
|
|
407
|
+
warmups: number;
|
|
408
|
+
activeScale: number;
|
|
409
|
+
liveTargets: number;
|
|
410
|
+
targets: {
|
|
411
|
+
owner: string;
|
|
412
|
+
id: string;
|
|
413
|
+
width: number;
|
|
414
|
+
height: number;
|
|
415
|
+
samples: number;
|
|
416
|
+
depth: boolean;
|
|
417
|
+
colorAttachments: number;
|
|
418
|
+
colorType: THREE.TextureDataType;
|
|
419
|
+
}[];
|
|
420
|
+
};
|
|
421
|
+
/** Returns live visibility and submitted-pass counters for culling regressions. */
|
|
422
|
+
getVisualTestVisibilityStats(): {
|
|
423
|
+
stageViewportVisible: boolean;
|
|
424
|
+
visiblePanels: number;
|
|
425
|
+
visibleMinimaps: number;
|
|
426
|
+
stageModelRenderPasses: number;
|
|
427
|
+
panelBlurRenderPasses: number;
|
|
428
|
+
panelSceneRenderPasses: number;
|
|
429
|
+
minimapSceneRenderPasses: number;
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* Advances the complete stage by a fixed number of synthetic 60 Hz frames.
|
|
433
|
+
*
|
|
434
|
+
* Headless browsers can throttle `requestAnimationFrame` even while WebGPU is
|
|
435
|
+
* active. Visual regression tests use this method to settle damping, panel
|
|
436
|
+
* layout, minimap composition, and GPU submissions without relying on wall
|
|
437
|
+
* clock timing. The method is only reachable through the query-gated visual
|
|
438
|
+
* test controller installed by {@link Stage}.
|
|
439
|
+
*
|
|
440
|
+
* @param frames - Number of frames to advance, clamped to a practical limit.
|
|
441
|
+
*/
|
|
442
|
+
advanceVisualTestFrames(frames?: number): void;
|
|
443
|
+
/**
|
|
444
|
+
* Attaches accessible HTML content to an imperative panel.
|
|
445
|
+
*
|
|
446
|
+
* @param element - DOM subtree rendered by the CSS3D layer.
|
|
447
|
+
* @param panelIndex - Index of the panel that owns the content.
|
|
448
|
+
* @param inset - Padding, in panel-local pixels, around the content.
|
|
449
|
+
* @returns The CSS3D object that tracks the panel.
|
|
450
|
+
*/
|
|
451
|
+
private attachPanelContent;
|
|
452
|
+
/** Attaches a complete CSS surface and its content to the shared panel transform. */
|
|
453
|
+
private attachPanelSurface;
|
|
454
|
+
private updateContentElement;
|
|
455
|
+
private updateSurfaceElement;
|
|
456
|
+
/** Marks the scene as dirty and schedules a browser frame if none is pending. */
|
|
457
|
+
private requestRender;
|
|
458
|
+
private scheduleRender;
|
|
459
|
+
private configureCssRenderer;
|
|
460
|
+
private configureFlatPanelLayer;
|
|
461
|
+
private configureNativePanelLayer;
|
|
462
|
+
private loadEnvironment;
|
|
463
|
+
private applyEnvironment;
|
|
464
|
+
prefetchSpatialElement(stage: SpatialStageConfig): void;
|
|
465
|
+
isCatalogBackgroundPrepared(): boolean;
|
|
466
|
+
/** Freeze readiness only after Kit has supplied and bound the complete destination DOM. */
|
|
467
|
+
beginCatalogMotion(): TransitionMode;
|
|
468
|
+
private warmPreparedHigh;
|
|
469
|
+
private adoptPreparedHigh;
|
|
470
|
+
private advancePreparedPage;
|
|
471
|
+
private createBackgroundTint;
|
|
472
|
+
private createLights;
|
|
473
|
+
private startHighRequest;
|
|
474
|
+
private loadModel;
|
|
475
|
+
private fitModelCamera;
|
|
476
|
+
private initializeSpaceMouse;
|
|
477
|
+
private applySpaceMouseNavigationUpdate;
|
|
478
|
+
private setSpaceMouseMoving;
|
|
479
|
+
private isSpatialElementMesh;
|
|
480
|
+
private hideExcludedMeshes;
|
|
481
|
+
private collectModelPickTargets;
|
|
482
|
+
private isInteractionMesh;
|
|
483
|
+
private createPanels;
|
|
484
|
+
private createPanelProjectionRoot;
|
|
485
|
+
private setPanelProjectionTransform;
|
|
486
|
+
private createMinimap;
|
|
487
|
+
private observePanelTargets;
|
|
488
|
+
private syncPanelLayouts;
|
|
489
|
+
private replacePanel;
|
|
490
|
+
private getMeasuredPanelOptions;
|
|
491
|
+
private measureStageRect;
|
|
492
|
+
private resolveStageRect;
|
|
493
|
+
private isPanelTargetVisible;
|
|
494
|
+
private resizeRenderer;
|
|
495
|
+
/**
|
|
496
|
+
* Forces WebGPU to allocate and bind both quality levels before input starts.
|
|
497
|
+
* `RenderTarget` construction and `setSize()` only configure descriptors; the
|
|
498
|
+
* backend textures, blur intermediates, pipelines, and texture bindings are
|
|
499
|
+
* materialized by these real offscreen/canvas render passes.
|
|
500
|
+
*/
|
|
501
|
+
private updateViewportFrame;
|
|
502
|
+
private getViewportScale;
|
|
503
|
+
private getSpatialElementCameraFitDistance;
|
|
504
|
+
private rememberFittedViewportMetrics;
|
|
505
|
+
private refitCameraForViewport;
|
|
506
|
+
private updateStageCameraProjection;
|
|
507
|
+
private handlePointerMove;
|
|
508
|
+
private handlePointerDown;
|
|
509
|
+
private handlePointerUp;
|
|
510
|
+
private handleWheel;
|
|
511
|
+
private handleScrollFrame;
|
|
512
|
+
private requestScrollZoomReset;
|
|
513
|
+
private clearZoomReset;
|
|
514
|
+
private clearWheelZoom;
|
|
515
|
+
private getEffectiveCameraDistance;
|
|
516
|
+
private handlePointerLeave;
|
|
517
|
+
private updateControlsAvailability;
|
|
518
|
+
private reportZoomFocus;
|
|
519
|
+
private getZoomFocusFactor;
|
|
520
|
+
private getZoomReferenceTarget;
|
|
521
|
+
private getProjectedMinimapModelRect;
|
|
522
|
+
private updateMinimapOverlayVisibility;
|
|
523
|
+
private setMinimapDisplayModelOpacity;
|
|
524
|
+
private updatePanelPointerInteraction;
|
|
525
|
+
/**
|
|
526
|
+
* Switches settled, screen-aligned panels out of every transformed ancestor.
|
|
527
|
+
* Two stable frames prevent mode churn while the damped pose snaps back to rest.
|
|
528
|
+
*/
|
|
529
|
+
private updatePanelDomRenderModes;
|
|
530
|
+
private renderFlatPanelSurfaces;
|
|
531
|
+
private renderFrame;
|
|
532
|
+
/** Draws only spatial UI into the transparent canvas above the page DOM. */
|
|
533
|
+
/** Renders every glass surface below the DOM while preserving minimap screen projection. */
|
|
534
|
+
private renderStage;
|
|
535
|
+
}
|
|
536
|
+
//# sourceMappingURL=StageExperience.d.ts.map
|