@spatial-elements/core 0.1.0-beta.1 → 1.0.0-beta.10
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/README.md +17 -9
- package/dist/catalog/CarouselDeviceCamera.d.ts +20 -0
- package/dist/catalog/CarouselDeviceCamera.d.ts.map +1 -0
- package/dist/catalog/CarouselDeviceCamera.js +58 -0
- package/dist/catalog/CarouselDeviceCamera.js.map +1 -0
- package/dist/catalog/CarouselGlassCompositor.d.ts +14 -3
- package/dist/catalog/CarouselGlassCompositor.d.ts.map +1 -1
- package/dist/catalog/CarouselGlassCompositor.js +164 -28
- package/dist/catalog/CarouselGlassCompositor.js.map +1 -1
- package/dist/catalog/CarouselGround.d.ts +43 -0
- package/dist/catalog/CarouselGround.d.ts.map +1 -0
- package/dist/catalog/CarouselGround.js +270 -0
- package/dist/catalog/CarouselGround.js.map +1 -0
- package/dist/catalog/CarouselSectionSurfaces.d.ts +10 -0
- package/dist/catalog/CarouselSectionSurfaces.d.ts.map +1 -0
- package/dist/catalog/CarouselSectionSurfaces.js +55 -0
- package/dist/catalog/CarouselSectionSurfaces.js.map +1 -0
- package/dist/catalog/CatalogDepthBlur.d.ts +45 -0
- package/dist/catalog/CatalogDepthBlur.d.ts.map +1 -0
- package/dist/catalog/CatalogDepthBlur.js +190 -0
- package/dist/catalog/CatalogDepthBlur.js.map +1 -0
- package/dist/catalog/CatalogEndpointRegistry.d.ts +2 -0
- package/dist/catalog/CatalogEndpointRegistry.d.ts.map +1 -1
- package/dist/catalog/CatalogEndpointRegistry.js +2 -0
- package/dist/catalog/CatalogEndpointRegistry.js.map +1 -1
- package/dist/catalog/CatalogGeometryFade.d.ts +5 -1
- package/dist/catalog/CatalogGeometryFade.d.ts.map +1 -1
- package/dist/catalog/CatalogGeometryFade.js +45 -9
- package/dist/catalog/CatalogGeometryFade.js.map +1 -1
- package/dist/catalog/CatalogModelOutline.d.ts +33 -0
- package/dist/catalog/CatalogModelOutline.d.ts.map +1 -0
- package/dist/catalog/CatalogModelOutline.js +143 -0
- package/dist/catalog/CatalogModelOutline.js.map +1 -0
- package/dist/catalog/CatalogNavigationRegistry.d.ts +44 -0
- package/dist/catalog/CatalogNavigationRegistry.d.ts.map +1 -0
- package/dist/catalog/CatalogNavigationRegistry.js +66 -0
- package/dist/catalog/CatalogNavigationRegistry.js.map +1 -0
- package/dist/catalog/CatalogPreparation.d.ts +3 -3
- package/dist/catalog/CatalogPreparation.d.ts.map +1 -1
- package/dist/catalog/CatalogPreparation.js +10 -7
- package/dist/catalog/CatalogPreparation.js.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.d.ts +175 -5
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.js +739 -121
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
- package/dist/catalog/CatalogTransition.d.ts +4 -2
- package/dist/catalog/CatalogTransition.d.ts.map +1 -1
- package/dist/catalog/CatalogTransition.js +206 -90
- package/dist/catalog/CatalogTransition.js.map +1 -1
- package/dist/catalog/CatalogWarmOutputContext.d.ts +39 -0
- package/dist/catalog/CatalogWarmOutputContext.d.ts.map +1 -0
- package/dist/catalog/CatalogWarmOutputContext.js +159 -0
- package/dist/catalog/CatalogWarmOutputContext.js.map +1 -0
- package/dist/catalog/EarlyNavigationCoordinator.d.ts +35 -0
- package/dist/catalog/EarlyNavigationCoordinator.d.ts.map +1 -0
- package/dist/catalog/EarlyNavigationCoordinator.js +103 -0
- package/dist/catalog/EarlyNavigationCoordinator.js.map +1 -0
- package/dist/catalog/NavigationFeedback.d.ts +12 -0
- package/dist/catalog/NavigationFeedback.d.ts.map +1 -0
- package/dist/catalog/NavigationFeedback.js +40 -0
- package/dist/catalog/NavigationFeedback.js.map +1 -0
- package/dist/catalog/PreparationGate.d.ts +4 -0
- package/dist/catalog/PreparationGate.d.ts.map +1 -1
- package/dist/catalog/PreparationGate.js +1 -0
- package/dist/catalog/PreparationGate.js.map +1 -1
- package/dist/catalog/SourceDomClipping.d.ts +8 -0
- package/dist/catalog/SourceDomClipping.d.ts.map +1 -0
- package/dist/catalog/SourceDomClipping.js +74 -0
- package/dist/catalog/SourceDomClipping.js.map +1 -0
- package/dist/catalog/SourceDomMotion.d.ts +28 -0
- package/dist/catalog/SourceDomMotion.d.ts.map +1 -0
- package/dist/catalog/SourceDomMotion.js +111 -0
- package/dist/catalog/SourceDomMotion.js.map +1 -0
- package/dist/catalog/SpatialGeometryCapture.d.ts +9 -0
- package/dist/catalog/SpatialGeometryCapture.d.ts.map +1 -1
- package/dist/catalog/SpatialGeometryCapture.js +11 -1
- package/dist/catalog/SpatialGeometryCapture.js.map +1 -1
- package/dist/catalog/SpatialPageRegistry.d.ts +18 -0
- package/dist/catalog/SpatialPageRegistry.d.ts.map +1 -0
- package/dist/catalog/SpatialPageRegistry.js +21 -0
- package/dist/catalog/SpatialPageRegistry.js.map +1 -0
- package/dist/catalog/StagedCatalogTransition.d.ts +74 -0
- package/dist/catalog/StagedCatalogTransition.d.ts.map +1 -0
- package/dist/catalog/StagedCatalogTransition.js +270 -0
- package/dist/catalog/StagedCatalogTransition.js.map +1 -0
- package/dist/catalog/cardModelFit.d.ts +7 -0
- package/dist/catalog/cardModelFit.d.ts.map +1 -0
- package/dist/catalog/cardModelFit.js +16 -0
- package/dist/catalog/cardModelFit.js.map +1 -0
- package/dist/catalog/cardProjection.d.ts +39 -0
- package/dist/catalog/cardProjection.d.ts.map +1 -0
- package/dist/catalog/cardProjection.js +110 -0
- package/dist/catalog/cardProjection.js.map +1 -0
- package/dist/catalog/carouselMotion.d.ts +74 -0
- package/dist/catalog/carouselMotion.d.ts.map +1 -0
- package/dist/catalog/carouselMotion.js +185 -0
- package/dist/catalog/carouselMotion.js.map +1 -0
- package/dist/catalog/carouselPanelProjection.d.ts.map +1 -1
- package/dist/catalog/carouselPanelProjection.js +48 -11
- package/dist/catalog/carouselPanelProjection.js.map +1 -1
- package/dist/catalog/carouselProximity.d.ts +11 -0
- package/dist/catalog/carouselProximity.d.ts.map +1 -0
- package/dist/catalog/carouselProximity.js +13 -0
- package/dist/catalog/carouselProximity.js.map +1 -0
- package/dist/catalog/carouselSupport.d.ts +4 -0
- package/dist/catalog/carouselSupport.d.ts.map +1 -0
- package/dist/catalog/carouselSupport.js +30 -0
- package/dist/catalog/carouselSupport.js.map +1 -0
- package/dist/catalog/catalogActivationFocus.d.ts +5 -0
- package/dist/catalog/catalogActivationFocus.d.ts.map +1 -0
- package/dist/catalog/catalogActivationFocus.js +39 -0
- package/dist/catalog/catalogActivationFocus.js.map +1 -0
- package/dist/catalog/catalogDomSnapshot.d.ts +18 -0
- package/dist/catalog/catalogDomSnapshot.d.ts.map +1 -0
- package/dist/catalog/catalogDomSnapshot.js +51 -0
- package/dist/catalog/catalogDomSnapshot.js.map +1 -0
- package/dist/catalog/catalogJourney.d.ts +4 -1
- package/dist/catalog/catalogJourney.d.ts.map +1 -1
- package/dist/catalog/catalogJourney.js +7 -15
- package/dist/catalog/catalogJourney.js.map +1 -1
- package/dist/catalog/catalogPage.d.ts +7 -3
- package/dist/catalog/catalogPage.d.ts.map +1 -1
- package/dist/catalog/catalogPage.js.map +1 -1
- package/dist/catalog/catalogPose.d.ts +54 -6
- package/dist/catalog/catalogPose.d.ts.map +1 -1
- package/dist/catalog/catalogPose.js +100 -23
- package/dist/catalog/catalogPose.js.map +1 -1
- package/dist/catalog/catalogRecipes.d.ts +3 -2
- package/dist/catalog/catalogRecipes.d.ts.map +1 -1
- package/dist/catalog/catalogRecipes.js +10 -25
- package/dist/catalog/catalogRecipes.js.map +1 -1
- package/dist/catalog/catalogTransitionViewport.d.ts +9 -0
- package/dist/catalog/catalogTransitionViewport.d.ts.map +1 -0
- package/dist/catalog/catalogTransitionViewport.js +13 -0
- package/dist/catalog/catalogTransitionViewport.js.map +1 -0
- package/dist/catalog/catalogViewLink.d.ts +2 -0
- package/dist/catalog/catalogViewLink.d.ts.map +1 -1
- package/dist/catalog/catalogViewLink.js +10 -2
- package/dist/catalog/catalogViewLink.js.map +1 -1
- package/dist/catalog/deviceYaw.d.ts +21 -0
- package/dist/catalog/deviceYaw.d.ts.map +1 -0
- package/dist/catalog/deviceYaw.js +87 -0
- package/dist/catalog/deviceYaw.js.map +1 -0
- package/dist/catalog/listDeviceOrientation.d.ts +17 -0
- package/dist/catalog/listDeviceOrientation.d.ts.map +1 -0
- package/dist/catalog/listDeviceOrientation.js +262 -0
- package/dist/catalog/listDeviceOrientation.js.map +1 -0
- package/dist/catalog/spatialElementAssets.d.ts +5 -5
- package/dist/catalog/spatialElementAssets.d.ts.map +1 -1
- package/dist/catalog/spatialElementAssets.js.map +1 -1
- package/dist/catalog/spatialElementLodPair.d.ts +2 -1
- package/dist/catalog/spatialElementLodPair.d.ts.map +1 -1
- package/dist/catalog/spatialElementLodPair.js.map +1 -1
- package/dist/catalog/stagedDetailGeometry.d.ts +37 -0
- package/dist/catalog/stagedDetailGeometry.d.ts.map +1 -0
- package/dist/catalog/stagedDetailGeometry.js +55 -0
- package/dist/catalog/stagedDetailGeometry.js.map +1 -0
- package/dist/catalog/stagedDockGeometry.d.ts +66 -0
- package/dist/catalog/stagedDockGeometry.d.ts.map +1 -0
- package/dist/catalog/stagedDockGeometry.js +66 -0
- package/dist/catalog/stagedDockGeometry.js.map +1 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/spatial-element/ResponsiveViewportMetrics.d.ts +18 -0
- package/dist/spatial-element/ResponsiveViewportMetrics.d.ts.map +1 -0
- package/dist/spatial-element/ResponsiveViewportMetrics.js +68 -0
- package/dist/spatial-element/ResponsiveViewportMetrics.js.map +1 -0
- package/dist/spatial-element/SectionSurfaceRegistry.d.ts +2 -0
- package/dist/spatial-element/SectionSurfaceRegistry.d.ts.map +1 -0
- package/dist/spatial-element/SectionSurfaceRegistry.js +2 -0
- package/dist/spatial-element/SectionSurfaceRegistry.js.map +1 -0
- package/dist/spatial-element/SpatialElementDockController.d.ts +22 -10
- package/dist/spatial-element/SpatialElementDockController.d.ts.map +1 -1
- package/dist/spatial-element/SpatialElementDockController.js +228 -96
- package/dist/spatial-element/SpatialElementDockController.js.map +1 -1
- package/dist/spatial-element/SpatialElementPaneController.d.ts +67 -0
- package/dist/spatial-element/SpatialElementPaneController.d.ts.map +1 -0
- package/dist/spatial-element/SpatialElementPaneController.js +246 -0
- package/dist/spatial-element/SpatialElementPaneController.js.map +1 -0
- package/dist/spatial-element/activeDetailSection.d.ts +8 -0
- package/dist/spatial-element/activeDetailSection.d.ts.map +1 -0
- package/dist/spatial-element/activeDetailSection.js +19 -0
- package/dist/spatial-element/activeDetailSection.js.map +1 -0
- package/dist/spatial-element/layoutTokens.json +228 -0
- package/dist/spatial-element/messages.d.ts +34 -0
- package/dist/spatial-element/messages.d.ts.map +1 -0
- package/dist/spatial-element/messages.js +34 -0
- package/dist/spatial-element/messages.js.map +1 -0
- package/dist/spatial-element/responsiveLayout.d.ts +1353 -0
- package/dist/spatial-element/responsiveLayout.d.ts.map +1 -0
- package/dist/spatial-element/responsiveLayout.js +210 -0
- package/dist/spatial-element/responsiveLayout.js.map +1 -0
- package/dist/spatial-element/sectionBackground.d.ts +3 -0
- package/dist/spatial-element/sectionBackground.d.ts.map +1 -0
- package/dist/spatial-element/sectionBackground.js +2 -0
- package/dist/spatial-element/sectionBackground.js.map +1 -0
- package/dist/spatial-element/spatialElement.d.ts +17 -12
- package/dist/spatial-element/spatialElement.d.ts.map +1 -1
- package/dist/spatial-element/spatialElement.js +33 -6
- package/dist/spatial-element/spatialElement.js.map +1 -1
- package/dist/spatial-element/spatialElementDock.d.ts +15 -0
- package/dist/spatial-element/spatialElementDock.d.ts.map +1 -1
- package/dist/spatial-element/spatialElementDock.js +22 -0
- package/dist/spatial-element/spatialElementDock.js.map +1 -1
- package/dist/spatial-element/spatialElementGeometry.d.ts +22 -0
- package/dist/spatial-element/spatialElementGeometry.d.ts.map +1 -0
- package/dist/spatial-element/spatialElementGeometry.js +40 -0
- package/dist/spatial-element/spatialElementGeometry.js.map +1 -0
- package/dist/spatial-element/spatialElementMedia.d.ts +16 -0
- package/dist/spatial-element/spatialElementMedia.d.ts.map +1 -0
- package/dist/spatial-element/spatialElementMedia.js +29 -0
- package/dist/spatial-element/spatialElementMedia.js.map +1 -0
- package/dist/spatial-element/spatialElementScene.d.ts +16 -0
- package/dist/spatial-element/spatialElementScene.d.ts.map +1 -0
- package/dist/spatial-element/spatialElementScene.js +22 -0
- package/dist/spatial-element/spatialElementScene.js.map +1 -0
- package/dist/spatial-element/spatialElementSectionRegistry.d.ts +6 -25
- package/dist/spatial-element/spatialElementSectionRegistry.d.ts.map +1 -1
- package/dist/spatial-element/spatialElementSectionRegistry.js +6 -63
- package/dist/spatial-element/spatialElementSectionRegistry.js.map +1 -1
- package/dist/spatial-element/spatialTheme.d.ts +27 -0
- package/dist/spatial-element/spatialTheme.d.ts.map +1 -0
- package/dist/spatial-element/spatialTheme.js +83 -0
- package/dist/spatial-element/spatialTheme.js.map +1 -0
- package/dist/spatial-element/types.d.ts +117 -36
- package/dist/spatial-element/types.d.ts.map +1 -1
- package/dist/spatial-element/types.js.map +1 -1
- package/dist/stage/BackgroundLayerOutput.d.ts +76 -0
- package/dist/stage/BackgroundLayerOutput.d.ts.map +1 -0
- package/dist/stage/BackgroundLayerOutput.js +333 -0
- package/dist/stage/BackgroundLayerOutput.js.map +1 -0
- package/dist/stage/DeviceGeometryMotion.d.ts +13 -0
- package/dist/stage/DeviceGeometryMotion.d.ts.map +1 -0
- package/dist/stage/DeviceGeometryMotion.js +37 -0
- package/dist/stage/DeviceGeometryMotion.js.map +1 -0
- package/dist/stage/LiquidGlassPanel.d.ts +7 -0
- package/dist/stage/LiquidGlassPanel.d.ts.map +1 -1
- package/dist/stage/LiquidGlassPanel.js +46 -5
- package/dist/stage/LiquidGlassPanel.js.map +1 -1
- package/dist/stage/MinimapController.d.ts +4 -1
- package/dist/stage/MinimapController.d.ts.map +1 -1
- package/dist/stage/MinimapController.js +57 -66
- package/dist/stage/MinimapController.js.map +1 -1
- package/dist/stage/ModelPointerPreview.d.ts +22 -0
- package/dist/stage/ModelPointerPreview.d.ts.map +1 -0
- package/dist/stage/ModelPointerPreview.js +71 -0
- package/dist/stage/ModelPointerPreview.js.map +1 -0
- package/dist/stage/PageBindingController.d.ts +10 -0
- package/dist/stage/PageBindingController.d.ts.map +1 -1
- package/dist/stage/PageBindingController.js +45 -5
- package/dist/stage/PageBindingController.js.map +1 -1
- package/dist/stage/PanelPresentationController.d.ts +21 -1
- package/dist/stage/PanelPresentationController.d.ts.map +1 -1
- package/dist/stage/PanelPresentationController.js +190 -31
- package/dist/stage/PanelPresentationController.js.map +1 -1
- package/dist/stage/SpatialElementInteractionController.d.ts +19 -1
- package/dist/stage/SpatialElementInteractionController.d.ts.map +1 -1
- package/dist/stage/SpatialElementInteractionController.js +134 -13
- package/dist/stage/SpatialElementInteractionController.js.map +1 -1
- package/dist/stage/SpatialElementPresentationController.d.ts +14 -2
- package/dist/stage/SpatialElementPresentationController.d.ts.map +1 -1
- package/dist/stage/SpatialElementPresentationController.js +47 -2
- package/dist/stage/SpatialElementPresentationController.js.map +1 -1
- package/dist/stage/SpatialElementRefinement.d.ts +34 -1
- package/dist/stage/SpatialElementRefinement.d.ts.map +1 -1
- package/dist/stage/SpatialElementRefinement.js +175 -37
- package/dist/stage/SpatialElementRefinement.js.map +1 -1
- package/dist/stage/StageExperience.d.ts +263 -10
- package/dist/stage/StageExperience.d.ts.map +1 -1
- package/dist/stage/StageExperience.js +655 -124
- package/dist/stage/StageExperience.js.map +1 -1
- package/dist/stage/StageFullscreenController.d.ts +17 -0
- package/dist/stage/StageFullscreenController.d.ts.map +1 -0
- package/dist/stage/StageFullscreenController.js +90 -0
- package/dist/stage/StageFullscreenController.js.map +1 -0
- package/dist/stage/StagePanelRuntime.d.ts +2 -1
- package/dist/stage/StagePanelRuntime.d.ts.map +1 -1
- package/dist/stage/StagePanelRuntime.js.map +1 -1
- package/dist/stage/StageRenderPipeline.d.ts +90 -2
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
- package/dist/stage/StageRenderPipeline.js +494 -119
- package/dist/stage/StageRenderPipeline.js.map +1 -1
- package/dist/stage/VirtualScrollController.d.ts +7 -0
- package/dist/stage/VirtualScrollController.d.ts.map +1 -1
- package/dist/stage/VirtualScrollController.js +63 -6
- package/dist/stage/VirtualScrollController.js.map +1 -1
- package/dist/stage/inertLease.d.ts +2 -0
- package/dist/stage/inertLease.d.ts.map +1 -0
- package/dist/stage/inertLease.js +18 -0
- package/dist/stage/inertLease.js.map +1 -0
- package/dist/stage/interactionGuidance.d.ts +22 -0
- package/dist/stage/interactionGuidance.d.ts.map +1 -0
- package/dist/stage/interactionGuidance.js +53 -0
- package/dist/stage/interactionGuidance.js.map +1 -0
- package/dist/stage/interactionOutline.d.ts +14 -0
- package/dist/stage/interactionOutline.d.ts.map +1 -0
- package/dist/stage/interactionOutline.js +59 -0
- package/dist/stage/interactionOutline.js.map +1 -0
- package/dist/stage/minimap/MinimapGeometry.d.ts.map +1 -1
- package/dist/stage/minimap/MinimapGeometry.js +29 -0
- package/dist/stage/minimap/MinimapGeometry.js.map +1 -1
- package/dist/stage/minimap/MinimapModel.d.ts +2 -1
- package/dist/stage/minimap/MinimapModel.d.ts.map +1 -1
- package/dist/stage/minimap/MinimapModel.js +34 -4
- package/dist/stage/minimap/MinimapModel.js.map +1 -1
- package/dist/stage/minimap/MinimapModelGeometry.d.ts +21 -0
- package/dist/stage/minimap/MinimapModelGeometry.d.ts.map +1 -0
- package/dist/stage/minimap/MinimapModelGeometry.js +68 -0
- package/dist/stage/minimap/MinimapModelGeometry.js.map +1 -0
- package/dist/stage/minimap/MinimapProjection.d.ts +7 -0
- package/dist/stage/minimap/MinimapProjection.d.ts.map +1 -1
- package/dist/stage/minimap/MinimapProjection.js +14 -13
- package/dist/stage/minimap/MinimapProjection.js.map +1 -1
- package/dist/stage/minimap/MinimapState.d.ts +3 -8
- package/dist/stage/minimap/MinimapState.d.ts.map +1 -1
- package/dist/stage/minimap/MinimapState.js.map +1 -1
- package/dist/stage/mouseHover.d.ts +9 -0
- package/dist/stage/mouseHover.d.ts.map +1 -0
- package/dist/stage/mouseHover.js +55 -0
- package/dist/stage/mouseHover.js.map +1 -0
- package/dist/stage/panelContext.d.ts +27 -2
- package/dist/stage/panelContext.d.ts.map +1 -1
- package/dist/stage/panelContext.js.map +1 -1
- package/dist/stage/renderSettings.d.ts +10 -0
- package/dist/stage/renderSettings.d.ts.map +1 -0
- package/dist/stage/renderSettings.js +27 -0
- package/dist/stage/renderSettings.js.map +1 -0
- package/dist/stage/renderTargetInventory.d.ts +1 -1
- package/dist/stage/renderTargetInventory.js +1 -1
- package/dist/stage/renderTargetInventory.js.map +1 -1
- package/dist/stage/rendererState.d.ts +2 -0
- package/dist/stage/rendererState.d.ts.map +1 -1
- package/dist/stage/rendererState.js +13 -0
- package/dist/stage/rendererState.js.map +1 -1
- package/dist/stage/sceneEndpointEligibility.d.ts +20 -0
- package/dist/stage/sceneEndpointEligibility.d.ts.map +1 -0
- package/dist/stage/sceneEndpointEligibility.js +363 -0
- package/dist/stage/sceneEndpointEligibility.js.map +1 -0
- package/dist/stage/scrollFrame.d.ts +2 -0
- package/dist/stage/scrollFrame.d.ts.map +1 -1
- package/dist/stage/scrollFrame.js +18 -5
- package/dist/stage/scrollFrame.js.map +1 -1
- package/dist/stage/spatialElementFrame.d.ts.map +1 -1
- package/dist/stage/spatialElementFrame.js +5 -1
- package/dist/stage/spatialElementFrame.js.map +1 -1
- package/dist/stage/stageConstants.d.ts +3 -3
- package/dist/stage/stageConstants.d.ts.map +1 -1
- package/dist/stage/stageConstants.js +6 -6
- package/dist/stage/stageConstants.js.map +1 -1
- package/dist/stage/stageDom.d.ts +2 -0
- package/dist/stage/stageDom.d.ts.map +1 -1
- package/dist/stage/stageDom.js +10 -1
- package/dist/stage/stageDom.js.map +1 -1
- package/dist/stage/stageMath.d.ts +9 -10
- package/dist/stage/stageMath.d.ts.map +1 -1
- package/dist/stage/stageMath.js +23 -21
- package/dist/stage/stageMath.js.map +1 -1
- package/dist/stage/stageTypes.d.ts +30 -3
- package/dist/stage/stageTypes.d.ts.map +1 -1
- package/dist/stage/stageTypes.js.map +1 -1
- package/dist/stage/stageVisualTest.d.ts +24 -1
- package/dist/stage/stageVisualTest.d.ts.map +1 -1
- package/dist/stage/stageVisualTest.js.map +1 -1
- package/logo.svg +188 -0
- package/package.json +7 -5
|
@@ -1,27 +1,16 @@
|
|
|
1
|
+
import type { SectionDefinition, SectionBackground, ContentPageData as PageContentData } from '@page-sections/core';
|
|
2
|
+
export type { SectionBackground, SectionBackgroundColor } from '@page-sections/core';
|
|
1
3
|
import type { VerifiedSpatialElementAssetManifest } from '../catalog/spatialElementAssets.js';
|
|
2
|
-
import type {
|
|
4
|
+
import type { SpatialElementGeometry } from './spatialElementGeometry.js';
|
|
3
5
|
import type { BackgroundSettings, StageCameraSettings, StageInteractionTheme, StageModelSettings } from '../stage/stageTypes.js';
|
|
4
6
|
import type { StagePanelMinimapOptions, StagePanelShape, StagePanelTheme } from '../stage/panelContext.js';
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
glb: string;
|
|
13
|
-
/** SpatialElement pose and non-spatial-element geometry exclusions applied after loading the GLB. */
|
|
14
|
-
model?: StageModelSettings;
|
|
15
|
-
/** Initial camera orbit; distance and element framing remain automatic. */
|
|
16
|
-
camera?: StageCameraSettings;
|
|
17
|
-
/** Accessible fallback image shown before enhancement or without JavaScript. */
|
|
18
|
-
fallbackImage?: string;
|
|
19
|
-
/** Actual pixel dimensions of the fallback asset, independent of element dimensions. */
|
|
20
|
-
fallbackImageSize?: readonly [number, number];
|
|
21
|
-
}
|
|
22
|
-
/** Compact element data used by a brand catalog without loading a detail document in the layout. */
|
|
23
|
-
export interface SpatialListItem {
|
|
24
|
-
/** Runtime-only pose provider installed by a spatial section, never serialized in route data. */
|
|
7
|
+
/**
|
|
8
|
+
* Category-card projection created by {@link getSpatialListItems}.
|
|
9
|
+
* Includes the element's assets automatically; pass these items to SpatialCardGridSection or SpatialCarouselSection.
|
|
10
|
+
* Detail-only media and breadcrumbs are omitted. No catalog data belongs in the layout.
|
|
11
|
+
*/
|
|
12
|
+
export interface SpatialListItem extends Partial<Pick<SpatialElementData, 'geometry' | 'hdr' | 'background' | 'model' | 'camera' | 'minimap' | 'assetManifest' | 'fallbackImage' | 'fallbackImageSize'>> {
|
|
13
|
+
/** @internal Runtime-only pose provider installed by a section, never serialized in route data. */
|
|
25
14
|
pose?: import('../catalog/catalogPose.js').CatalogPoseProvider;
|
|
26
15
|
/** Optional full summary projection, sourced from the same document as the DETAIL. */
|
|
27
16
|
summary?: {
|
|
@@ -31,19 +20,26 @@ export interface SpatialListItem {
|
|
|
31
20
|
sectionLink?: {
|
|
32
21
|
href: string;
|
|
33
22
|
label: string;
|
|
23
|
+
/** Assert that this anchor opens the fully docked content view (3XL: pane header). */
|
|
24
|
+
targetPresentation?: 'dock';
|
|
34
25
|
};
|
|
35
26
|
};
|
|
36
27
|
/** Stable optional key when the same element occurs twice within a section. */
|
|
37
28
|
itemKey?: string;
|
|
38
|
-
/**
|
|
29
|
+
/** @internal Presentation identity assigned by a section; assets retain element identity. */
|
|
39
30
|
occurrence?: string;
|
|
31
|
+
/** Stable element identity, shared with the detail document. */
|
|
40
32
|
id: string;
|
|
33
|
+
/** Ordinary link to the detail page. */
|
|
41
34
|
href: string;
|
|
35
|
+
/** Optional assertion for a fragment link opening fully docked detail content (3XL: pane header). */
|
|
36
|
+
targetPresentation?: 'dock';
|
|
37
|
+
/** Short label above the title; the helper supplies an empty string when omitted. */
|
|
42
38
|
eyebrow: string;
|
|
39
|
+
/** Visible card title. */
|
|
43
40
|
title: string;
|
|
41
|
+
/** Plain-text feature labels for compact card presentation. */
|
|
44
42
|
features: string[];
|
|
45
|
-
/** Temporary asset metadata for the catalog renderer while manifests are introduced. */
|
|
46
|
-
stage?: SpatialStageConfig;
|
|
47
43
|
}
|
|
48
44
|
/** Shared CSS-glass controls for regular element sections. */
|
|
49
45
|
export interface SpatialSectionTheme {
|
|
@@ -53,6 +49,16 @@ export interface SpatialSectionTheme {
|
|
|
53
49
|
/** CSS backdrop blur radius in pixels. */
|
|
54
50
|
backdropBlur: number;
|
|
55
51
|
}
|
|
52
|
+
/** CSS-pixel radii for the two layout surface roles. */
|
|
53
|
+
export interface SpatialThemeRadii {
|
|
54
|
+
control: number;
|
|
55
|
+
panel: number;
|
|
56
|
+
}
|
|
57
|
+
/** Opaque section colors, independent of the flat page color and glass materials. */
|
|
58
|
+
export interface SpatialSectionBackgrounds {
|
|
59
|
+
standard: string;
|
|
60
|
+
muted: string;
|
|
61
|
+
}
|
|
56
62
|
/** CSS material used only by the fixed element header and its docked subnavigation. */
|
|
57
63
|
export interface SpatialDockedPanelTheme {
|
|
58
64
|
/** Gaussian CSS backdrop blur radius in pixels. */
|
|
@@ -66,16 +72,31 @@ export interface SpatialDockedPanelTheme {
|
|
|
66
72
|
}
|
|
67
73
|
/** Shared visual language supplied by a brand layout to element pages beneath it. */
|
|
68
74
|
export interface SpatialTheme {
|
|
75
|
+
/** Optional presentation overrides for the element's HDR backdrop; lighting is unchanged. */
|
|
76
|
+
sceneBackground?: Partial<BackgroundSettings>;
|
|
77
|
+
/** Stable namespace shared by pages and transitions, e.g. `shop`. Not an element ID. */
|
|
69
78
|
id: string;
|
|
79
|
+
/** Human-readable brand name used in accessible labels. */
|
|
70
80
|
name: string;
|
|
71
81
|
/** Opaque CSS/Three.js color behind content and the independently revealed HDR stage. */
|
|
72
82
|
background: string;
|
|
83
|
+
/** Optional for hand-authored legacy themes; createSpatialTheme resolves both roles. */
|
|
84
|
+
radii?: SpatialThemeRadii;
|
|
85
|
+
/** Optional for hand-authored legacy themes; createSpatialTheme supplies both colors. */
|
|
86
|
+
sectionBackgrounds?: SpatialSectionBackgrounds;
|
|
87
|
+
/** Shared minimap appearance; element-specific framing belongs in SpatialElementData.minimap. */
|
|
73
88
|
minimapTheme: SpatialMinimapTheme;
|
|
89
|
+
/** Hover/selection outline appearance. */
|
|
74
90
|
interactionTheme: Partial<StageInteractionTheme>;
|
|
91
|
+
/** Panel corner radius and content padding, in CSS pixels. */
|
|
75
92
|
panelShape: StagePanelShape;
|
|
93
|
+
/** Default panel material. `frosted` uses CSS blur; `glass` also uses GPU refraction. */
|
|
76
94
|
panelTheme: StagePanelTheme;
|
|
95
|
+
/** Appearance of the compact header and tabs shown after scrolling past the hero. */
|
|
77
96
|
dockedPanelTheme: SpatialDockedPanelTheme;
|
|
97
|
+
/** Appearance of ordinary HTML content sections. */
|
|
78
98
|
sectionTheme: SpatialSectionTheme;
|
|
99
|
+
/** Semantic text, action and navigation colors. */
|
|
79
100
|
colors: {
|
|
80
101
|
ink: string;
|
|
81
102
|
body: string;
|
|
@@ -108,7 +129,9 @@ export type SpatialElementMediaItem = {
|
|
|
108
129
|
id: string;
|
|
109
130
|
kind: 'minimap';
|
|
110
131
|
label: string;
|
|
111
|
-
}
|
|
132
|
+
}
|
|
133
|
+
/** @deprecated A drawing needs a real source. Use kind: 'image' instead. */
|
|
134
|
+
| {
|
|
112
135
|
id: string;
|
|
113
136
|
kind: 'drawing';
|
|
114
137
|
label: string;
|
|
@@ -118,6 +141,29 @@ export type SpatialElementMediaItem = {
|
|
|
118
141
|
label: string;
|
|
119
142
|
src: string;
|
|
120
143
|
alt: string;
|
|
144
|
+
/** Smaller image for the media selector. The full view always uses src. */
|
|
145
|
+
thumbnail?: string;
|
|
146
|
+
/** Image framing in the selector and stage. Defaults to contain. */
|
|
147
|
+
fit?: 'contain' | 'cover';
|
|
148
|
+
} | {
|
|
149
|
+
id: string;
|
|
150
|
+
kind: 'video';
|
|
151
|
+
label: string;
|
|
152
|
+
src: string;
|
|
153
|
+
poster?: string;
|
|
154
|
+
/** Optional WebVTT caption tracks. Native controls remain available. */
|
|
155
|
+
captions?: {
|
|
156
|
+
src: string;
|
|
157
|
+
language: string;
|
|
158
|
+
label: string;
|
|
159
|
+
default?: boolean;
|
|
160
|
+
}[];
|
|
161
|
+
} | {
|
|
162
|
+
id: string;
|
|
163
|
+
kind: 'youtube';
|
|
164
|
+
label: string;
|
|
165
|
+
videoId: string;
|
|
166
|
+
poster?: string;
|
|
121
167
|
};
|
|
122
168
|
/** Optional CSS presentation for a regular HTML element section. */
|
|
123
169
|
export interface SpatialElementSectionStyle {
|
|
@@ -132,30 +178,65 @@ export interface SpatialElementSectionStyle {
|
|
|
132
178
|
width?: string;
|
|
133
179
|
}
|
|
134
180
|
/** Metadata supplied to a composable spatial-element `Section`. */
|
|
135
|
-
export interface SpatialElementSectionDefinition {
|
|
181
|
+
export interface SpatialElementSectionDefinition extends Omit<SectionDefinition, 'style'> {
|
|
136
182
|
id: string;
|
|
137
183
|
title: string;
|
|
184
|
+
/** Optional visible heading, separate from the navigation/accessibility title. */
|
|
185
|
+
headline?: string;
|
|
186
|
+
/** Semantic section background; legacy style remains available during migration. */
|
|
187
|
+
background?: SectionBackground;
|
|
138
188
|
style?: SpatialElementSectionStyle;
|
|
139
189
|
}
|
|
140
190
|
/** Minimal section metadata consumed by generated element navigation. */
|
|
141
191
|
export type SpatialElementSectionNavigationItem = Pick<SpatialElementSectionDefinition, 'id' | 'title'>;
|
|
142
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* Serializable element content AND its 3D presentation. Supply the same source data to
|
|
194
|
+
* getSpatialListItems on a category page and SpatialElementPage on the detail page.
|
|
195
|
+
* Only id, title, geometry and hdr are required. Layout-wide appearance belongs in SpatialTheme.
|
|
196
|
+
*/
|
|
143
197
|
export interface SpatialElementData {
|
|
198
|
+
/** Stable element identity within the shell's theme namespace; also used by findSpatialElement. */
|
|
144
199
|
id: string;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
200
|
+
/** Optional identity assertion. When supplied, must match the enclosing theme.id. */
|
|
201
|
+
brandId?: string;
|
|
202
|
+
/** Document title. Defaults to title. */
|
|
203
|
+
pageTitle?: string;
|
|
204
|
+
/** Short category/series label displayed above the title. Defaults to an empty string. */
|
|
205
|
+
eyebrow?: string;
|
|
206
|
+
/** Visible element name. */
|
|
148
207
|
title: string;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
208
|
+
/** Summary bullets. Defaults to an empty list. */
|
|
209
|
+
features?: SpatialElementFeature[];
|
|
210
|
+
/** Optional primary action; omitted actions render no button. */
|
|
211
|
+
action?: SpatialElementAction;
|
|
212
|
+
/** Required Low/High model sources. Identical URLs share one load; both exports must share coordinates. */
|
|
213
|
+
geometry: SpatialElementGeometry;
|
|
214
|
+
/** Detail lighting and background HDR. Category lighting is explicitly set on ContentPage.hdr. */
|
|
215
|
+
hdr: string;
|
|
216
|
+
/** HDR background blur/tint. Does not change the theme's flat page background or model lighting. */
|
|
217
|
+
background?: BackgroundSettings;
|
|
218
|
+
/** Imported model pose, excluded meshes and material replacements. Rotations are in radians. */
|
|
219
|
+
model?: StageModelSettings;
|
|
220
|
+
/** Initial orbit in degrees and optional fit controls. Distance is fitted automatically. */
|
|
221
|
+
camera?: StageCameraSettings;
|
|
222
|
+
/** Advanced verified resource manifest. Omit for the normal GLB/LOD workflow. */
|
|
223
|
+
assetManifest?: VerifiedSpatialElementAssetManifest;
|
|
224
|
+
/** Poster URL displayed during loading, without JavaScript, or when WebGPU is unavailable. */
|
|
225
|
+
fallbackImage?: string;
|
|
226
|
+
/** Actual poster pixel dimensions [width, height], not physical model dimensions. */
|
|
227
|
+
fallbackImageSize?: readonly [number, number];
|
|
228
|
+
/** Navigation trail. Entries without href are plain text; defaults to an empty list. */
|
|
229
|
+
breadcrumbs?: SpatialElementBreadcrumb[];
|
|
230
|
+
/** Media rail entries. Defaults to one interactive 3D minimap; [] hides the rail's entries. */
|
|
231
|
+
media?: SpatialElementMediaItem[];
|
|
232
|
+
/** Element-specific minimap fit/hover/docked pose. Colors come from the theme. */
|
|
154
233
|
minimap?: Omit<StagePanelMinimapOptions, keyof SpatialMinimapTheme>;
|
|
155
234
|
}
|
|
156
235
|
/** Brand-wide minimap appearance; framing and model pose remain spatial-element-specific. */
|
|
157
236
|
export type SpatialMinimapTheme = Pick<StagePanelMinimapOptions, 'expandedHeight' | 'overlayColor' | 'overlayOpacity' | 'overlayBlur' | 'contextColor' | 'contextOpacity' | 'viewportColor'>;
|
|
158
|
-
|
|
237
|
+
/** Category/content page metadata; only title is required. */
|
|
238
|
+
export interface ContentPageData extends PageContentData {
|
|
239
|
+
/** Browser document title; defaults to title. */
|
|
159
240
|
pageTitle?: string;
|
|
160
241
|
title: string;
|
|
161
242
|
eyebrow?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/spatial-element/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/spatial-element/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAA0B,eAAe,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC5I,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EACX,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACX,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,MAAM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"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/spatial-element/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { VerifiedSpatialElementAssetManifest } from '../catalog/spatialElementAssets.js';\nimport type { SpatialElementLodPair } from '../catalog/spatialElementLodPair.js';\nimport type {\n\tBackgroundSettings,\n\tStageCameraSettings,\n\tStageInteractionTheme,\n\tStageModelSettings\n} from '../stage/stageTypes.js';\nimport type {\n\tStagePanelMinimapOptions,\n\tStagePanelShape,\n\tStagePanelTheme\n} from '../stage/panelContext.js';\n\n/** Scene assets and environment settings required by a element stage. */\nexport interface SpatialStageConfig {\n\tdracoDecoderPath?: string;\n\tassetManifest?: VerifiedSpatialElementAssetManifest;\n\tlodPair?: SpatialElementLodPair;\n\tbackground: BackgroundSettings;\n\thdr: string;\n\tglb: string;\n\t/** SpatialElement pose and non-spatial-element geometry exclusions applied after loading the GLB. */\n\tmodel?: StageModelSettings;\n\t/** Initial camera orbit; distance and element framing remain automatic. */\n\tcamera?: StageCameraSettings;\n\t/** Accessible fallback image shown before enhancement or without JavaScript. */\n\tfallbackImage?: string;\n\t/** Actual pixel dimensions of the fallback asset, independent of element dimensions. */\n\tfallbackImageSize?: readonly [number, number];\n}\n\n/** Compact element data used by a brand catalog without loading a detail document in the layout. */\nexport interface SpatialListItem {\n\t/** Runtime-only pose provider installed by a spatial section, never serialized in route data. */\n\tpose?: import('../catalog/catalogPose.js').CatalogPoseProvider;\n\t/** Optional full summary projection, sourced from the same document as the DETAIL. */\n\tsummary?: {\n\t\tfeatures: SpatialElementFeature[];\n\t\taction?: SpatialElementAction;\n\t\t/** Optional authored link to an existing element content section. */\n\t\tsectionLink?: { href: string; label: string };\n\t};\n\t/** Stable optional key when the same element occurs twice within a section. */\n\titemKey?: string;\n\t/** Internal presentation identity; assets retain element identity. */\n\toccurrence?: string;\n\tid: string;\n\thref: string;\n\teyebrow: string;\n\ttitle: string;\n\tfeatures: string[];\n\t/** Temporary asset metadata for the catalog renderer while manifests are introduced. */\n\tstage?: SpatialStageConfig;\n}\n\n/** Shared CSS-glass controls for regular element sections. */\nexport interface SpatialSectionTheme {\n\ttint: string;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n}\n\n/** CSS material used only by the fixed element header and its docked subnavigation. */\nexport interface SpatialDockedPanelTheme {\n\t/** Gaussian CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n\t/** Surface tint, using the same color representation as a stage panel. */\n\ttint: NonNullable<StagePanelTheme['tint']>;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** Normalized shadow intensity from zero to one. */\n\tshadowIntensity: number;\n}\n\n/** Shared visual language supplied by a brand layout to element pages beneath it. */\nexport interface SpatialTheme {\n\tid: string;\n\tname: string;\n\t/** Opaque CSS/Three.js color behind content and the independently revealed HDR stage. */\n\tbackground: string;\n\tminimapTheme: SpatialMinimapTheme;\n\tinteractionTheme: Partial<StageInteractionTheme>;\n\tpanelShape: StagePanelShape;\n\tpanelTheme: StagePanelTheme;\n\tdockedPanelTheme: SpatialDockedPanelTheme;\n\tsectionTheme: SpatialSectionTheme;\n\tcolors: {\n\t\tink: string;\n\t\tbody: string;\n\t\taccent: string;\n\t\tonAccent: string;\n\t\ttabBackground: string;\n\t};\n}\n\n/** A single line in the spatial-element-summary feature list. */\nexport interface SpatialElementFeature {\n\tlabel: string;\n\t/** Optional short marker displayed before the feature text. */\n\tmarker?: string;\n}\n\n/** Primary conversion action displayed in the element summary panel. */\nexport interface SpatialElementAction {\n\tlabel: string;\n\t/** Stable behavior identity for shared presentation; never supplies an event handler. */\n\tsemanticId?: string;\n\thref?: string;\n\tariaLabel?: string;\n}\n\n/** A breadcrumb link or terminal breadcrumb label. */\nexport interface SpatialElementBreadcrumb {\n\tlabel: string;\n\thref?: string;\n}\n\n/** Media entries rendered in the element rail. */\nexport type SpatialElementMediaItem =\n\t| { id: string; kind: 'minimap'; label: string }\n\t| { id: string; kind: 'drawing'; label: string }\n\t| { id: string; kind: 'image'; label: string; src: string; alt: string };\n\n/** Optional CSS presentation for a regular HTML element section. */\nexport interface SpatialElementSectionStyle {\n\t/** Overrides the brand section tint. */\n\ttint?: string;\n\t/** Overrides the brand section tint opacity from zero to one. */\n\ttintOpacity?: number;\n\t/** Overrides the brand section backdrop blur radius in pixels. */\n\tbackdropBlur?: number;\n\ttextColor?: string;\n\t/** CSS max-width such as `920px`, `72rem`, or `100%`. */\n\twidth?: string;\n}\n\n/** Metadata supplied to a composable spatial-element `Section`. */\nexport interface SpatialElementSectionDefinition {\n\tid: string;\n\ttitle: string;\n\tstyle?: SpatialElementSectionStyle;\n}\n\n/** Minimal section metadata consumed by generated element navigation. */\nexport type SpatialElementSectionNavigationItem = Pick<SpatialElementSectionDefinition, 'id' | 'title'>;\n\n/** Complete serializable spatial-element document supplied by a dynamic element route. */\nexport interface SpatialElementData {\n\tid: string;\n\tbrandId: string;\n\tpageTitle: string;\n\teyebrow: string;\n\ttitle: string;\n\tfeatures: SpatialElementFeature[];\n\taction: SpatialElementAction;\n\tstage: SpatialStageConfig;\n\tbreadcrumbs: SpatialElementBreadcrumb[];\n\tmedia: SpatialElementMediaItem[];\n\tminimap?: Omit<StagePanelMinimapOptions, keyof SpatialMinimapTheme>;\n}\n\n/** Brand-wide minimap appearance; framing and model pose remain spatial-element-specific. */\nexport type SpatialMinimapTheme = Pick<\n\tStagePanelMinimapOptions,\n\t| 'expandedHeight'\n\t| 'overlayColor'\n\t| 'overlayOpacity'\n\t| 'overlayBlur'\n\t| 'contextColor'\n\t| 'contextOpacity'\n\t| 'viewportColor'\n>;\n\nexport interface ContentPageData {\n\tpageTitle?: string;\n\ttitle: string;\n\teyebrow?: string;\n\tintro?: string;\n\tbreadcrumbs?: SpatialElementBreadcrumb[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/spatial-element/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SectionDefinition, SectionBackground, SectionBackgroundColor, ContentPageData as PageContentData } from '@page-sections/core';\nexport type { SectionBackground, SectionBackgroundColor } from '@page-sections/core';\nimport type { VerifiedSpatialElementAssetManifest } from '../catalog/spatialElementAssets.js';\nimport type { SpatialElementGeometry } from './spatialElementGeometry.js';\nimport type {\n\tBackgroundSettings,\n\tStageCameraSettings,\n\tStageInteractionTheme,\n\tStageModelSettings\n} from '../stage/stageTypes.js';\nimport type {\n\tStagePanelMinimapOptions,\n\tStagePanelShape,\n\tStagePanelTheme\n} from '../stage/panelContext.js';\n\n/**\n * Category-card projection created by {@link getSpatialListItems}.\n * Includes the element's assets automatically; pass these items to SpatialCardGridSection or SpatialCarouselSection.\n * Detail-only media and breadcrumbs are omitted. No catalog data belongs in the layout.\n */\nexport interface SpatialListItem extends Partial<\n\tPick<\n\t\tSpatialElementData,\n\t\t| 'geometry'\n\t\t| 'hdr'\n\t\t| 'background'\n\t\t| 'model'\n\t\t| 'camera'\n\t\t| 'minimap'\n\t\t| 'assetManifest'\n\t\t| 'fallbackImage'\n\t\t| 'fallbackImageSize'\n\t>\n> {\n\t/** @internal Runtime-only pose provider installed by a section, never serialized in route data. */\n\tpose?: import('../catalog/catalogPose.js').CatalogPoseProvider;\n\t/** Optional full summary projection, sourced from the same document as the DETAIL. */\n\tsummary?: {\n\t\tfeatures: SpatialElementFeature[];\n\t\taction?: SpatialElementAction;\n\t\t/** Optional authored link to an existing element content section. */\n\t\tsectionLink?: { href: string; label: string;\n\t\t\t/** Assert that this anchor opens the fully docked content view (3XL: pane header). */\n\t\t\ttargetPresentation?: 'dock' };\n\t};\n\t/** Stable optional key when the same element occurs twice within a section. */\n\titemKey?: string;\n\t/** @internal Presentation identity assigned by a section; assets retain element identity. */\n\toccurrence?: string;\n\t/** Stable element identity, shared with the detail document. */\n\tid: string;\n\t/** Ordinary link to the detail page. */\n\thref: string;\n\t/** Optional assertion for a fragment link opening fully docked detail content (3XL: pane header). */\n\ttargetPresentation?: 'dock';\n\t/** Short label above the title; the helper supplies an empty string when omitted. */\n\teyebrow: string;\n\t/** Visible card title. */\n\ttitle: string;\n\t/** Plain-text feature labels for compact card presentation. */\n\tfeatures: string[];\n}\n\n/** Shared CSS-glass controls for regular element sections. */\nexport interface SpatialSectionTheme {\n\ttint: string;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n}\n\n/** CSS-pixel radii for the two layout surface roles. */\nexport interface SpatialThemeRadii {\n\tcontrol: number;\n\tpanel: number;\n}\n\n/** Opaque section colors, independent of the flat page color and glass materials. */\nexport interface SpatialSectionBackgrounds {\n\tstandard: string;\n\tmuted: string;\n}\n\n/** CSS material used only by the fixed element header and its docked subnavigation. */\nexport interface SpatialDockedPanelTheme {\n\t/** Gaussian CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n\t/** Surface tint, using the same color representation as a stage panel. */\n\ttint: NonNullable<StagePanelTheme['tint']>;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** Normalized shadow intensity from zero to one. */\n\tshadowIntensity: number;\n}\n\n/** Shared visual language supplied by a brand layout to element pages beneath it. */\nexport interface SpatialTheme {\n\t/** Optional presentation overrides for the element's HDR backdrop; lighting is unchanged. */\n\tsceneBackground?: Partial<BackgroundSettings>;\n\t/** Stable namespace shared by pages and transitions, e.g. `shop`. Not an element ID. */\n\tid: string;\n\t/** Human-readable brand name used in accessible labels. */\n\tname: string;\n\t/** Opaque CSS/Three.js color behind content and the independently revealed HDR stage. */\n\tbackground: string;\n\t/** Optional for hand-authored legacy themes; createSpatialTheme resolves both roles. */\n\tradii?: SpatialThemeRadii;\n\t/** Optional for hand-authored legacy themes; createSpatialTheme supplies both colors. */\n\tsectionBackgrounds?: SpatialSectionBackgrounds;\n\t/** Shared minimap appearance; element-specific framing belongs in SpatialElementData.minimap. */\n\tminimapTheme: SpatialMinimapTheme;\n\t/** Hover/selection outline appearance. */\n\tinteractionTheme: Partial<StageInteractionTheme>;\n\t/** Panel corner radius and content padding, in CSS pixels. */\n\tpanelShape: StagePanelShape;\n\t/** Default panel material. `frosted` uses CSS blur; `glass` also uses GPU refraction. */\n\tpanelTheme: StagePanelTheme;\n\t/** Appearance of the compact header and tabs shown after scrolling past the hero. */\n\tdockedPanelTheme: SpatialDockedPanelTheme;\n\t/** Appearance of ordinary HTML content sections. */\n\tsectionTheme: SpatialSectionTheme;\n\t/** Semantic text, action and navigation colors. */\n\tcolors: {\n\t\tink: string;\n\t\tbody: string;\n\t\taccent: string;\n\t\tonAccent: string;\n\t\ttabBackground: string;\n\t};\n}\n\n/** A single line in the spatial-element-summary feature list. */\nexport interface SpatialElementFeature {\n\tlabel: string;\n\t/** Optional short marker displayed before the feature text. */\n\tmarker?: string;\n}\n\n/** Primary conversion action displayed in the element summary panel. */\nexport interface SpatialElementAction {\n\tlabel: string;\n\t/** Stable behavior identity for shared presentation; never supplies an event handler. */\n\tsemanticId?: string;\n\thref?: string;\n\tariaLabel?: string;\n}\n\n/** A breadcrumb link or terminal breadcrumb label. */\nexport interface SpatialElementBreadcrumb {\n\tlabel: string;\n\thref?: string;\n}\n\n/** Media entries rendered in the element rail. */\nexport type SpatialElementMediaItem =\n\t| { id: string; kind: 'minimap'; label: string }\n\t/** @deprecated A drawing needs a real source. Use kind: 'image' instead. */\n\t| { id: string; kind: 'drawing'; label: string }\n\t| {\n\t\tid: string; kind: 'image'; label: string; src: string; alt: string;\n\t\t/** Smaller image for the media selector. The full view always uses src. */\n\t\tthumbnail?: string;\n\t\t/** Image framing in the selector and stage. Defaults to contain. */\n\t\tfit?: 'contain' | 'cover';\n\t}\n\t| {\n\t\tid: string; kind: 'video'; label: string; src: string; poster?: string;\n\t\t/** Optional WebVTT caption tracks. Native controls remain available. */\n\t\tcaptions?: { src: string; language: string; label: string; default?: boolean }[];\n\t}\n\t| { id: string; kind: 'youtube'; label: string; videoId: string; poster?: string };\n\n/** Optional CSS presentation for a regular HTML element section. */\nexport interface SpatialElementSectionStyle {\n\t/** Overrides the brand section tint. */\n\ttint?: string;\n\t/** Overrides the brand section tint opacity from zero to one. */\n\ttintOpacity?: number;\n\t/** Overrides the brand section backdrop blur radius in pixels. */\n\tbackdropBlur?: number;\n\ttextColor?: string;\n\t/** CSS max-width such as `920px`, `72rem`, or `100%`. */\n\twidth?: string;\n}\n\n/** Metadata supplied to a composable spatial-element `Section`. */\nexport interface SpatialElementSectionDefinition extends Omit<SectionDefinition, 'style'> {\n\tid: string;\n\ttitle: string;\n\t/** Optional visible heading, separate from the navigation/accessibility title. */\n\theadline?: string;\n\t/** Semantic section background; legacy style remains available during migration. */\n\tbackground?: SectionBackground;\n\tstyle?: SpatialElementSectionStyle;\n}\n\n/** Minimal section metadata consumed by generated element navigation. */\nexport type SpatialElementSectionNavigationItem = Pick<\n\tSpatialElementSectionDefinition,\n\t'id' | 'title'\n>;\n\n/**\n * Serializable element content AND its 3D presentation. Supply the same source data to\n * getSpatialListItems on a category page and SpatialElementPage on the detail page.\n * Only id, title, geometry and hdr are required. Layout-wide appearance belongs in SpatialTheme.\n */\nexport interface SpatialElementData {\n\t/** Stable element identity within the shell's theme namespace; also used by findSpatialElement. */\n\tid: string;\n\t/** Optional identity assertion. When supplied, must match the enclosing theme.id. */\n\tbrandId?: string;\n\t/** Document title. Defaults to title. */\n\tpageTitle?: string;\n\t/** Short category/series label displayed above the title. Defaults to an empty string. */\n\teyebrow?: string;\n\t/** Visible element name. */\n\ttitle: string;\n\t/** Summary bullets. Defaults to an empty list. */\n\tfeatures?: SpatialElementFeature[];\n\t/** Optional primary action; omitted actions render no button. */\n\taction?: SpatialElementAction;\n\t/** Required Low/High model sources. Identical URLs share one load; both exports must share coordinates. */\n\tgeometry: SpatialElementGeometry;\n\t/** Detail lighting and background HDR. Category lighting is explicitly set on ContentPage.hdr. */\n\thdr: string;\n\t/** HDR background blur/tint. Does not change the theme's flat page background or model lighting. */\n\tbackground?: BackgroundSettings;\n\t/** Imported model pose, excluded meshes and material replacements. Rotations are in radians. */\n\tmodel?: StageModelSettings;\n\t/** Initial orbit in degrees and optional fit controls. Distance is fitted automatically. */\n\tcamera?: StageCameraSettings;\n\t/** Advanced verified resource manifest. Omit for the normal GLB/LOD workflow. */\n\tassetManifest?: VerifiedSpatialElementAssetManifest;\n\t/** Poster URL displayed during loading, without JavaScript, or when WebGPU is unavailable. */\n\tfallbackImage?: string;\n\t/** Actual poster pixel dimensions [width, height], not physical model dimensions. */\n\tfallbackImageSize?: readonly [number, number];\n\t/** Navigation trail. Entries without href are plain text; defaults to an empty list. */\n\tbreadcrumbs?: SpatialElementBreadcrumb[];\n\t/** Media rail entries. Defaults to one interactive 3D minimap; [] hides the rail's entries. */\n\tmedia?: SpatialElementMediaItem[];\n\t/** Element-specific minimap fit/hover/docked pose. Colors come from the theme. */\n\tminimap?: Omit<StagePanelMinimapOptions, keyof SpatialMinimapTheme>;\n}\n\n/** Brand-wide minimap appearance; framing and model pose remain spatial-element-specific. */\nexport type SpatialMinimapTheme = Pick<\n\tStagePanelMinimapOptions,\n\t| 'expandedHeight'\n\t| 'overlayColor'\n\t| 'overlayOpacity'\n\t| 'overlayBlur'\n\t| 'contextColor'\n\t| 'contextOpacity'\n\t| 'viewportColor'\n>;\n\n/** Category/content page metadata; only title is required. */\nexport interface ContentPageData extends PageContentData {\n\t/** Browser document title; defaults to title. */\n\tpageTitle?: string;\n\ttitle: string;\n\teyebrow?: string;\n\tintro?: string;\n\tbreadcrumbs?: SpatialElementBreadcrumb[];\n}\n"]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
export interface BackgroundOutputScratch {
|
|
3
|
+
/** Borrowed storage. Only BackgroundLayerOutput may resize or dispose it. */
|
|
4
|
+
readonly target: THREE.RenderTarget;
|
|
5
|
+
readonly generation: number;
|
|
6
|
+
isCurrent(): boolean;
|
|
7
|
+
/** Synchronous submission only. No Canvas publication or asynchronous callback. */
|
|
8
|
+
borrow(draw: () => void): boolean;
|
|
9
|
+
}
|
|
10
|
+
type Mode = 'explicit' | 'fallback' | 'disposed';
|
|
11
|
+
/** Internal output owner; callers must select it before the first Background Canvas draw.
|
|
12
|
+
* Scene/blur inputs and the Canvas are borrowed, never owned. No Stage integration yet.
|
|
13
|
+
*/
|
|
14
|
+
export declare class BackgroundLayerOutput {
|
|
15
|
+
private readonly renderer;
|
|
16
|
+
private readonly canvas;
|
|
17
|
+
private mode;
|
|
18
|
+
private generation;
|
|
19
|
+
private contentsValid;
|
|
20
|
+
private busy;
|
|
21
|
+
private resizing;
|
|
22
|
+
private publications;
|
|
23
|
+
private borrows;
|
|
24
|
+
private readonly target;
|
|
25
|
+
private readonly outputTexture;
|
|
26
|
+
private readonly output;
|
|
27
|
+
private readonly size;
|
|
28
|
+
private readonly css;
|
|
29
|
+
private readonly viewport;
|
|
30
|
+
private readonly exposure;
|
|
31
|
+
private readonly onResize;
|
|
32
|
+
private readonly onCanvasDispose;
|
|
33
|
+
private readonly onTargetDispose;
|
|
34
|
+
private constructor();
|
|
35
|
+
/** No draw, clear, compile or access to Three's private framebuffer cache. */
|
|
36
|
+
static create(renderer: THREE.WebGPURenderer, canvas: THREE.CanvasTarget): BackgroundLayerOutput | undefined;
|
|
37
|
+
/** The display is the existing opaque, depth-independent fullscreen QuadMesh. */
|
|
38
|
+
compose(display: Pick<THREE.QuadMesh, 'render'>, panels: () => void, publish?: boolean): boolean;
|
|
39
|
+
clearTransparent(publish?: boolean): boolean;
|
|
40
|
+
/** Only a fully rebuilt target may be published. Never used for hidden warming. */
|
|
41
|
+
publish(): boolean;
|
|
42
|
+
/** The handle is an owner/generation capability, not a copy or a second target. */
|
|
43
|
+
captureScratch(): BackgroundOutputScratch | undefined;
|
|
44
|
+
/** Resize only to the actual Canvas. Holding an outgoing Canvas is the caller's job. */
|
|
45
|
+
resize(): boolean;
|
|
46
|
+
/** Terminal for this owner. The Stage must not later recreate an explicit owner. */
|
|
47
|
+
selectFallback(): void;
|
|
48
|
+
dispose(): void;
|
|
49
|
+
getRenderTargets(): readonly THREE.RenderTarget[];
|
|
50
|
+
getStats(): {
|
|
51
|
+
mode: Mode;
|
|
52
|
+
generation: number;
|
|
53
|
+
contentsValid: boolean;
|
|
54
|
+
busy: boolean;
|
|
55
|
+
publications: number;
|
|
56
|
+
borrows: number;
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
samples: number;
|
|
60
|
+
};
|
|
61
|
+
private rebuild;
|
|
62
|
+
private borrow;
|
|
63
|
+
private bindTarget;
|
|
64
|
+
private publishCurrent;
|
|
65
|
+
private assertDestination;
|
|
66
|
+
private assertIdle;
|
|
67
|
+
private current;
|
|
68
|
+
private usable;
|
|
69
|
+
private profileCurrent;
|
|
70
|
+
private profileMatches;
|
|
71
|
+
private release;
|
|
72
|
+
/** No await may escape this scope, including a failing public RenderPipeline.render(). */
|
|
73
|
+
private withState;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=BackgroundLayerOutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundLayerOutput.d.ts","sourceRoot":"","sources":["../../src/stage/BackgroundLayerOutput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC,MAAM,WAAW,uBAAuB;IACvC,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,SAAS,IAAI,OAAO,CAAC;IACrB,mFAAmF;IACnF,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC;CAClC;AAED,KAAK,IAAI,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAcjD;;GAEG;AACH,qBAAa,qBAAqB;IAmBb,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAC5C,OAAO,CAAC,QAAQ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