@spatial-elements/core 0.1.0-beta.2 → 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 +16 -13
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpatialElementPaneController.js","sourceRoot":"","sources":["../../src/spatial-element/SpatialElementPaneController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA8B,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClJ,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC7J,OAAO,EAAE,gBAAgB,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAEjG,oFAAoF;AACpF,MAAM,UAAU,4BAA4B,CAAC,IAA6D,EACzG,QAA2C,EAAE,KAAa;IAC1D,MAAM,QAAQ,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,GAAG,CAAC;QACjE,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;IACrD,MAAM,OAAO,GAAG,EAAE,KAA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E,CAAC,IAAI,QAAQ,CAAC,CAAC;QAC1F,IAAI,IAAI,CAAC,GAAG,IAAI,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM;YAAE,OAAO;QAC5D,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3J,CAAC,CAAC;CACF","sourcesContent":["import { resolveDetailLayout, type ResponsiveLayoutInput } from './responsiveLayout.js';\nimport { STAGE_PANEL_LAYOUT_EVENT } from '../stage/panelContext.js';\nimport { getStageVisualScrollPosition, STAGE_SCROLL_PRIORITY, subscribeStageScrollFrame, syncStageScrollToNative } from '../stage/scrollFrame.js';\nimport { getPanelFocusBlur, getPanelFocusOffset, getPanelFocusOpacity, getPanelFocusPerspectiveOffset, getPerspectiveDistance } from '../stage/stageMath.js';\nimport { PANEL_CAMERA_FOV, PANEL_FOCUS_PERSPECTIVE_MAX_SCALE } from '../stage/stageConstants.js';\n\n/** The native pane uses the same focus curve and camera-facing motion as panels. */\nexport function resolvePaneFocusPresentation(rect: { x: number; y: number; width: number; height: number },\n\tviewport: { width: number; height: number }, focus: number) {\n\tconst position = { x: rect.x + rect.width / 2 - viewport.width / 2,\n\t\ty: viewport.height / 2 - rect.y - rect.height / 2 };\n\tconst options = { width: rect.width, height: rect.height, position };\n\tconst offset = getPanelFocusOffset(options, focus, viewport.width, viewport.height);\n\tconst distance = getPerspectiveDistance(viewport.height, PANEL_CAMERA_FOV);\n\tconst perspective = getPanelFocusPerspectiveOffset({ x: position.x + offset.x, y: position.y + offset.y }, offset.z, distance);\n\treturn { x: offset.x + perspective.x, y: -offset.y - perspective.y,\n\t\tscale: Math.min(PANEL_FOCUS_PERSPECTIVE_MAX_SCALE, Math.max(1, distance / Math.max(distance - offset.z, 1))),\n\t\topacity: getPanelFocusOpacity(focus), blur: getPanelFocusBlur(focus, options),\n\t\tpivotY: rect.y + rect.height / 2 };\n}\n\n/** One document coordinate system; clipping changes paint and hit testing only. */\nexport function resolvePaneScrollClip(bodyTop: number, bodyHeight: number, viewportTop: number, viewportBottom: number, scrollY: number) {\n\treturn {\n\t\ttop: Math.max(0, scrollY + viewportTop - bodyTop),\n\t\tbottom: Math.max(0, bodyTop + bodyHeight - scrollY - viewportBottom)\n\t};\n}\n\n/** Keeps fixed 3XL regions and the ordinary document body on the Stage scroll clock. */\nexport class SpatialElementPaneController {\n\tprivate body?: HTMLElement;\n\tprivate stage?: HTMLElement;\n\tprivate regions: HTMLElement[] = [];\n\tprivate hiddenRegions: HTMLElement[] = [];\n\tprivate observer?: ResizeObserver;\n\tprivate stageObserver?: MutationObserver;\n\tprivate stopScroll?: () => void;\n\tprivate frame = 0;\n\tprivate layout?: ReturnType<typeof resolveDetailLayout>;\n\tprivate metricKey = '';\n\tprivate bodyTop = 0;\n\tprivate bodyHeight = 0;\n\tprivate scrollY = 0;\n\tprivate hidden = false;\n\tprivate focus = 0;\n\tprivate focusPose = { x: 0, y: 0, scale: 1, opacity: 1, blur: 0, pivotY: 0 };\n\tprivate savedScroll?: { x: number; y: number };\n\tprivate actionBottom = Infinity;\n\tprivate sectionPositions: { element: HTMLElement; top: number }[] = [];\n\tprivate restoreAnchor?: { element: HTMLElement; offset: number };\n\tprivate resizeAnchor?: { element: HTMLElement; offset: number };\n\tprivate readingTop = 0;\n\tprivate started = false;\n\n\tconstructor(private readonly root: HTMLElement,\n\t\tprivate readonly readMetrics: () => ResponsiveLayoutInput | undefined,\n\t\tprivate readonly onMode: (split: boolean) => void) {}\n\n\tstart() {\n\t\tif (this.started) return;\n\t\tthis.started = true;\n\t\tthis.stage = this.root.closest<HTMLElement>('.stage') ?? undefined;\n\t\tthis.body = this.root.querySelector<HTMLElement>('[data-spatial-detail-pane-body]') ?? undefined;\n\t\tthis.regions = Array.from(this.root.querySelectorAll<HTMLElement>('[data-spatial-detail-fixed]'));\n\t\tthis.hiddenRegions = Array.from(this.root.querySelectorAll<HTMLElement>('[data-spatial-detail-pane-body], [data-spatial-detail-pane-header], [data-spatial-detail-pane-submenu-shell]'));\n\t\tthis.scrollY = getStageVisualScrollPosition().scrollY;\n\t\tthis.observer = new ResizeObserver(this.schedule);\n\t\tif (this.body) this.observer.observe(this.body);\n\t\tthis.stageObserver = new MutationObserver(this.schedule);\n\t\tif (this.stage) this.stageObserver.observe(this.stage, { attributes: true, attributeFilter: ['class'] });\n\t\twindow.addEventListener(STAGE_PANEL_LAYOUT_EVENT, this.schedule);\n\t\twindow.addEventListener('resize', this.handleResize, { passive: true });\n\t\tthis.root.addEventListener('focusin', this.handleFocus);\n\t\tthis.stopScroll = subscribeStageScrollFrame(frame => {\n\t\t\tthis.scrollY = frame.scrollY;\n\t\t\tthis.paint();\n\t\t}, STAGE_SCROLL_PRIORITY.virtualDocument + 2);\n\t\tthis.update();\n\t}\n\n\tsetHidden(hidden: boolean) {\n\t\tif (this.hidden === hidden) return;\n\t\tthis.hidden = hidden;\n\t\tif (hidden && this.layout?.composition === 'split') this.savedScroll = { x: window.scrollX, y: window.scrollY };\n\t\tthis.root.toggleAttribute('data-spatial-detail-pane-hidden', hidden);\n\t\tfor (const region of this.hiddenRegions) region.inert = hidden && this.layout?.composition === 'split';\n\t\tif (!hidden && this.savedScroll) {\n\t\t\twindow.scrollTo({ left: this.savedScroll.x, top: this.savedScroll.y, behavior: 'instant' });\n\t\t\tsyncStageScrollToNative();\n\t\t\tthis.savedScroll = undefined;\n\t\t}\n\t}\n\n\tsetFocus(focus: number, fullscreen = false) {\n\t\tthis.focus = fullscreen ? 1 : Math.max(0, Math.min(1, Number.isFinite(focus) ? focus : 0));\n\t\tthis.paintFocus();\n\t}\n\n\tdestroy() {\n\t\tthis.started = false;\n\t\tthis.stopScroll?.();\n\t\tthis.observer?.disconnect();\n\t\tthis.stageObserver?.disconnect();\n\t\tcancelAnimationFrame(this.frame);\n\t\twindow.removeEventListener(STAGE_PANEL_LAYOUT_EVENT, this.schedule);\n\t\twindow.removeEventListener('resize', this.handleResize);\n\t\tthis.root.removeEventListener('focusin', this.handleFocus);\n\t\tfor (const region of this.regions) region.removeAttribute('data-stage-fixed-region');\n\t}\n\n\tprivate readonly schedule = () => {\n\t\tif (!this.started || this.frame) return;\n\t\tthis.frame = requestAnimationFrame(() => { this.frame = 0; this.update(); });\n\t};\n\n\tprivate readAnchor() {\n\t\tconst anchor = this.sectionPositions.filter(item => item.top <= this.scrollY + this.readingTop + 1).at(-1);\n\t\treturn anchor ? { element: anchor.element, offset: this.scrollY + this.readingTop - anchor.top } : undefined;\n\t}\n\n\tprivate readonly handleResize = () => {\n\t\t// CSS reflows before the shared viewport probe's next frame. Preserve the\n\t\t// last stable document anchor now, before any observer can cache new boxes\n\t\t// against old metrics. Keep it across consecutive breakpoint crossings.\n\t\tthis.resizeAnchor ??= this.restoreAnchor ?? this.readAnchor();\n\t\tthis.schedule();\n\t};\n\n\tprivate update() {\n\t\tconst metrics = this.readMetrics();\n\t\tif (!metrics || !this.body) return;\n\t\tif (!this.stage?.classList.contains('stage-virtual-scroll-active')) this.scrollY = window.scrollY;\n\t\tconst key = JSON.stringify(metrics);\n\t\tconst metricsChanged = key !== this.metricKey;\n\t\tif (key !== this.metricKey) {\n\t\t\tconst previous = this.layout;\n\t\t\tconst next = resolveDetailLayout(metrics);\n\t\t\tif (previous && previous.composition !== next.composition && this.scrollY > 1) {\n\t\t\t\tthis.restoreAnchor = this.resizeAnchor ?? this.restoreAnchor ?? this.readAnchor();\n\t\t\t}\n\t\t\tif (!this.restoreAnchor) this.resizeAnchor = undefined;\n\t\t\tthis.metricKey = key;\n\t\t\tthis.layout = next;\n\t\t\tconst split = next.composition === 'split';\n\t\t\tthis.root.toggleAttribute('data-spatial-detail-pane', split);\n\t\t\tthis.root.toggleAttribute('data-spatial-detail-flow', next.shortHeightFallback);\n\t\t\tfor (const region of this.regions) region.toggleAttribute('data-stage-fixed-region', split);\n\t\t\tfor (const region of this.hiddenRegions) region.inert = split && this.hidden;\n\t\t\tthis.onMode(split);\n\t\t\t// The framework flushes the native summary ownership before its new box is measured.\n\t\t\tthis.schedule();\n\t\t}\n\t\tconst rect = this.body.getBoundingClientRect();\n\t\t// A breakpoint can remove the paint transform before this resize callback.\n\t\tif (this.layout?.composition !== 'split') this.focusPose = { x: 0, y: 0, scale: 1, opacity: 1, blur: 0, pivotY: 0 };\n\t\tconst bodyHeightChanged = Math.abs(this.bodyHeight - rect.height / this.focusPose.scale) > 0.5;\n\t\tthis.bodyTop = this.neutralY(rect.top) + this.scrollY;\n\t\tthis.bodyHeight = rect.height / this.focusPose.scale;\n\t\tthis.sectionPositions = Array.from(this.body.querySelectorAll<HTMLElement>('[data-spatial-element-tab-target]'))\n\t\t\t.map(element => ({ element, top: this.neutralY(element.getBoundingClientRect().top) + this.scrollY }));\n\t\tconst action = this.body.querySelector<HTMLElement>('[data-catalog-rich-shared=\"primary-action\"]');\n\t\tthis.actionBottom = action ? this.neutralY(action.getBoundingClientRect().bottom) + this.scrollY : Infinity;\n\t\tthis.readingTop = this.layout?.pane?.body.y ?? (Number.parseFloat(getComputedStyle(this.root).getPropertyValue('--spatial-element-section-scroll-offset')) || 0);\n\t\tconst summaryReady = this.layout?.composition !== 'split' || Boolean(this.body.querySelector('[data-spatial-summary-root]'));\n\t\tif (!metricsChanged && !bodyHeightChanged && summaryReady && this.restoreAnchor && this.restoreAnchor.element.isConnected) {\n\t\t\tconst anchor = this.restoreAnchor;\n\t\t\tthis.restoreAnchor = undefined;\n\t\t\tthis.resizeAnchor = undefined;\n\t\t\tconst y = Math.max(0, this.neutralY(anchor.element.getBoundingClientRect().top) + this.scrollY + anchor.offset - this.readingTop);\n\t\t\twindow.scrollTo({ top: y, behavior: 'instant' });\n\t\t\tsyncStageScrollToNative();\n\t\t\tthis.scrollY = getStageVisualScrollPosition().scrollY;\n\t\t}\n\t\tif (this.restoreAnchor) this.schedule();\n\t\tthis.paint();\n\t}\n\n\tprivate paint() {\n\t\tthis.paintFocus();\n\t\tconst pane = this.layout?.pane;\n\t\tif (!pane || !this.body) {\n\t\t\tthis.root.removeAttribute('data-spatial-detail-pane-clipped');\n\t\t\tthis.body?.style.removeProperty('clip-path');\n\t\t\tthis.root.style.removeProperty('--spatial-pane-fixed-compensation');\n\t\t\treturn;\n\t\t}\n\t\tconst enhanced = this.stage?.classList.contains('stage-virtual-scroll-active');\n\t\tthis.root.style.setProperty('--spatial-pane-fixed-compensation', `${enhanced ? this.scrollY : 0}px`);\n\t\tconst clip = resolvePaneScrollClip(this.bodyTop, this.bodyHeight, pane.body.y, pane.body.y + pane.body.height, this.scrollY);\n\t\tthis.body.style.clipPath = `inset(${clip.top}px 0 ${clip.bottom}px 0 round 0 0 var(--spatial-element-panel-radius) var(--spatial-element-panel-radius))`;\n\t\tthis.root.toggleAttribute('data-spatial-detail-pane-clipped', true);\n\t\tthis.root.toggleAttribute('data-spatial-detail-pane-action', this.actionBottom - this.scrollY <= pane.body.y);\n\t}\n\n\t/** Measurements remain in document coordinates while the pane moves in paint. */\n\tprivate neutralY(y: number) {\n\t\tconst { scale, pivotY, y: offset } = this.focusPose;\n\t\treturn pivotY + (y - pivotY - offset) / scale;\n\t}\n\n\tprivate paintFocus() {\n\t\tconst pane = this.layout?.pane;\n\t\tconst metrics = this.readMetrics();\n\t\tthis.focusPose = pane && metrics ? resolvePaneFocusPresentation(pane.surface, metrics, this.focus)\n\t\t\t: { x: 0, y: 0, scale: 1, opacity: 1, blur: 0, pivotY: 0 };\n\t\tconst pose = this.focusPose;\n\t\tthis.root.toggleAttribute('data-spatial-detail-pane-zooming', Boolean(pane && this.focus > 0.001));\n\t\tthis.setHidden(Boolean(pane && pose.opacity < 0.12));\n\t\tconst values = { '--spatial-pane-focus-x': `${pose.x}px`, '--spatial-pane-focus-y': `${pose.y}px`,\n\t\t\t'--spatial-pane-focus-scale': String(pose.scale), '--spatial-pane-focus-opacity': String(pose.opacity),\n\t\t\t'--spatial-pane-focus-blur': `${pose.blur}px` };\n\t\tfor (const [name, value] of Object.entries(values)) {\n\t\t\tif (this.root.style.getPropertyValue(name) !== value) this.root.style.setProperty(name, value);\n\t\t}\n\t\tif (!pane || !this.body) return;\n\t\tthis.body.style.setProperty('--spatial-pane-focus-origin-y', `${pose.pivotY - this.bodyTop + this.scrollY}px`);\n\t\tfor (const region of this.regions) {\n\t\t\tconst top = region.hasAttribute('data-spatial-detail-pane-submenu-shell') ? this.layout!.submenu!.y\n\t\t\t\t: region.hasAttribute('data-spatial-detail-pane-header') || region.hasAttribute('data-spatial-detail-pane-surface') ? pane.surface.y : undefined;\n\t\t\tif (top !== undefined) region.style.setProperty('--spatial-pane-focus-origin-y', `${pose.pivotY - top}px`);\n\t\t}\n\t}\n\n\tprivate readonly handleFocus = (event: FocusEvent) => {\n\t\t// VirtualScrollController owns the enhanced path; native DOM uses identical bounds.\n\t\tif (!this.layout?.pane || this.hidden || this.stage?.classList.contains('stage-virtual-scroll-active')) return;\n\t\tconst target = event.target;\n\t\tif (!(target instanceof HTMLElement) || !this.body?.contains(target)) return;\n\t\tconst rect = target.getBoundingClientRect();\n\t\tconst viewport = this.layout.pane.body;\n\t\tconst bottom = Math.min(viewport.y + viewport.height, this.layout.submenu?.y ?? Infinity);\n\t\tif (rect.top >= viewport.y && rect.bottom <= bottom) return;\n\t\twindow.scrollTo({ top: Math.max(0, window.scrollY + rect.top - viewport.y - Math.max(0, (bottom - viewport.y - rect.height) / 2)), behavior: 'instant' });\n\t};\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface DetailSectionBounds {
|
|
2
|
+
id: string;
|
|
3
|
+
top: number;
|
|
4
|
+
bottom: number;
|
|
5
|
+
}
|
|
6
|
+
/** Both flow detail and the clipped 3XL pane use the document's scroll clock. */
|
|
7
|
+
export declare function resolveActiveDetailSection(sections: readonly DetailSectionBounds[], readingTop: number, readingBottom: number, scrollY: number, maxScrollY: number, overviewId?: string): string;
|
|
8
|
+
//# sourceMappingURL=activeDetailSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activeDetailSection.d.ts","sourceRoot":"","sources":["../../src/spatial-element/activeDetailSection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CACf;AAED,iFAAiF;AACjF,wBAAgB,0BAA0B,CACzC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,EACxC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,SAAa,UAevB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Both flow detail and the clipped 3XL pane use the document's scroll clock. */
|
|
2
|
+
export function resolveActiveDetailSection(sections, readingTop, readingBottom, scrollY, maxScrollY, overviewId = 'overview') {
|
|
3
|
+
const activationLine = readingTop + Math.max(readingBottom - readingTop, 0) * 0.25;
|
|
4
|
+
let activeId = overviewId;
|
|
5
|
+
for (const section of sections) {
|
|
6
|
+
if (section.top > activationLine + 1)
|
|
7
|
+
break;
|
|
8
|
+
activeId = section.id;
|
|
9
|
+
}
|
|
10
|
+
const last = sections.at(-1);
|
|
11
|
+
// A short final section may never reach the activation line. Select it at
|
|
12
|
+
// the real document end only once it is visible in the reading region.
|
|
13
|
+
// A page without scroll range must keep its ordinary initial selection.
|
|
14
|
+
if (last && maxScrollY > 1 && scrollY >= maxScrollY - 1 &&
|
|
15
|
+
last.top < readingBottom && last.bottom > readingTop)
|
|
16
|
+
return last.id;
|
|
17
|
+
return activeId;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=activeDetailSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activeDetailSection.js","sourceRoot":"","sources":["../../src/spatial-element/activeDetailSection.ts"],"names":[],"mappings":"AAMA,iFAAiF;AACjF,MAAM,UAAU,0BAA0B,CACzC,QAAwC,EACxC,UAAkB,EAClB,aAAqB,EACrB,OAAe,EACf,UAAkB,EAClB,UAAU,GAAG,UAAU;IAEvB,MAAM,cAAc,GAAG,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,GAAG,UAAU,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IACnF,IAAI,QAAQ,GAAG,UAAU,CAAC;IAC1B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAChC,IAAI,OAAO,CAAC,GAAG,GAAG,cAAc,GAAG,CAAC;YAAE,MAAM;QAC5C,QAAQ,GAAG,OAAO,CAAC,EAAE,CAAC;IACvB,CAAC;IACD,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7B,0EAA0E;IAC1E,uEAAuE;IACvE,wEAAwE;IACxE,IAAI,IAAI,IAAI,UAAU,GAAG,CAAC,IAAI,OAAO,IAAI,UAAU,GAAG,CAAC;QACtD,IAAI,CAAC,GAAG,GAAG,aAAa,IAAI,IAAI,CAAC,MAAM,GAAG,UAAU;QAAE,OAAO,IAAI,CAAC,EAAE,CAAC;IACtE,OAAO,QAAQ,CAAC;AACjB,CAAC","sourcesContent":["export interface DetailSectionBounds {\n\tid: string;\n\ttop: number;\n\tbottom: number;\n}\n\n/** Both flow detail and the clipped 3XL pane use the document's scroll clock. */\nexport function resolveActiveDetailSection(\n\tsections: readonly DetailSectionBounds[],\n\treadingTop: number,\n\treadingBottom: number,\n\tscrollY: number,\n\tmaxScrollY: number,\n\toverviewId = 'overview'\n) {\n\tconst activationLine = readingTop + Math.max(readingBottom - readingTop, 0) * 0.25;\n\tlet activeId = overviewId;\n\tfor (const section of sections) {\n\t\tif (section.top > activationLine + 1) break;\n\t\tactiveId = section.id;\n\t}\n\tconst last = sections.at(-1);\n\t// A short final section may never reach the activation line. Select it at\n\t// the real document end only once it is visible in the reading region.\n\t// A page without scroll range must keep its ordinary initial selection.\n\tif (last && maxScrollY > 1 && scrollY >= maxScrollY - 1 &&\n\t\tlast.top < readingBottom && last.bottom > readingTop) return last.id;\n\treturn activeId;\n}\n"]}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pane": {
|
|
3
|
+
"centerGap": 8,
|
|
4
|
+
"rightInset": 20,
|
|
5
|
+
"top": 96,
|
|
6
|
+
"bottom": 16,
|
|
7
|
+
"submenuHeight": 44,
|
|
8
|
+
"headerHeight": 86,
|
|
9
|
+
"minUsableHeight": 512
|
|
10
|
+
},
|
|
11
|
+
"stageControls": {
|
|
12
|
+
"buttonSize": 40,
|
|
13
|
+
"groupButtons": 2,
|
|
14
|
+
"gap": 8
|
|
15
|
+
},
|
|
16
|
+
"hero": {
|
|
17
|
+
"xs": {
|
|
18
|
+
"minHeight": 150,
|
|
19
|
+
"heightOffset": 214,
|
|
20
|
+
"maxHeight": 400,
|
|
21
|
+
"railSize": 80,
|
|
22
|
+
"railGap": 8,
|
|
23
|
+
"railInset": 8,
|
|
24
|
+
"railStageGap": 8,
|
|
25
|
+
"summaryColumns": 4,
|
|
26
|
+
"summaryInset": 8,
|
|
27
|
+
"summaryGap": 8,
|
|
28
|
+
"dockHeight": 76,
|
|
29
|
+
"submenuHeight": 0,
|
|
30
|
+
"submenuGap": 0,
|
|
31
|
+
"submenuAfterGap": 0,
|
|
32
|
+
"submenuLeft": 8,
|
|
33
|
+
"submenuRight": 8,
|
|
34
|
+
"zoomMinimap": 112,
|
|
35
|
+
"zoomInset": 8
|
|
36
|
+
},
|
|
37
|
+
"s": {
|
|
38
|
+
"minHeight": 150,
|
|
39
|
+
"heightOffset": 214,
|
|
40
|
+
"maxHeight": 500,
|
|
41
|
+
"railSize": 80,
|
|
42
|
+
"railGap": 8,
|
|
43
|
+
"railInset": 8,
|
|
44
|
+
"railStageGap": 8,
|
|
45
|
+
"summaryColumns": 6,
|
|
46
|
+
"summaryInset": 8,
|
|
47
|
+
"summaryGap": 8,
|
|
48
|
+
"dockHeight": 76,
|
|
49
|
+
"submenuHeight": 0,
|
|
50
|
+
"submenuGap": 0,
|
|
51
|
+
"submenuAfterGap": 0,
|
|
52
|
+
"submenuLeft": 8,
|
|
53
|
+
"submenuRight": 8,
|
|
54
|
+
"zoomMinimap": 112,
|
|
55
|
+
"zoomInset": 8
|
|
56
|
+
},
|
|
57
|
+
"m": {
|
|
58
|
+
"minHeight": 300,
|
|
59
|
+
"heightOffset": 180,
|
|
60
|
+
"maxHeight": 500,
|
|
61
|
+
"railSize": 80,
|
|
62
|
+
"railGap": 12,
|
|
63
|
+
"railInset": 8,
|
|
64
|
+
"railStageGap": 8,
|
|
65
|
+
"summaryColumns": 3,
|
|
66
|
+
"summaryInset": 8,
|
|
67
|
+
"summaryGap": 8,
|
|
68
|
+
"dockHeight": 80,
|
|
69
|
+
"submenuHeight": 40,
|
|
70
|
+
"submenuGap": 8,
|
|
71
|
+
"submenuAfterGap": 8,
|
|
72
|
+
"submenuLeft": 8,
|
|
73
|
+
"submenuRight": 8,
|
|
74
|
+
"zoomMinimap": 168,
|
|
75
|
+
"zoomInset": 8
|
|
76
|
+
},
|
|
77
|
+
"l": {
|
|
78
|
+
"minHeight": 340,
|
|
79
|
+
"heightOffset": 194,
|
|
80
|
+
"maxHeight": 600,
|
|
81
|
+
"railSize": 80,
|
|
82
|
+
"railGap": 16,
|
|
83
|
+
"railInset": 8,
|
|
84
|
+
"railStageGap": 8,
|
|
85
|
+
"summaryColumns": 4,
|
|
86
|
+
"summaryInset": 24,
|
|
87
|
+
"summaryGap": 8,
|
|
88
|
+
"dockHeight": 86,
|
|
89
|
+
"submenuHeight": 44,
|
|
90
|
+
"submenuGap": 8,
|
|
91
|
+
"submenuAfterGap": 8,
|
|
92
|
+
"submenuLeft": 8,
|
|
93
|
+
"submenuRight": 24,
|
|
94
|
+
"zoomMinimap": 178,
|
|
95
|
+
"zoomInset": 8
|
|
96
|
+
},
|
|
97
|
+
"xl": {
|
|
98
|
+
"minHeight": 400,
|
|
99
|
+
"heightOffset": 236,
|
|
100
|
+
"maxHeight": 700,
|
|
101
|
+
"railSize": 112,
|
|
102
|
+
"railGap": 16,
|
|
103
|
+
"railInset": 12,
|
|
104
|
+
"railStageGap": 12,
|
|
105
|
+
"summaryColumns": 4,
|
|
106
|
+
"summaryInset": 12,
|
|
107
|
+
"summaryGap": 8,
|
|
108
|
+
"dockHeight": 86,
|
|
109
|
+
"submenuHeight": 44,
|
|
110
|
+
"submenuGap": 12,
|
|
111
|
+
"submenuAfterGap": 12,
|
|
112
|
+
"submenuLeft": 0,
|
|
113
|
+
"submenuRight": 0,
|
|
114
|
+
"zoomMinimap": 220,
|
|
115
|
+
"zoomInset": 12
|
|
116
|
+
},
|
|
117
|
+
"2xl": {
|
|
118
|
+
"minHeight": 400,
|
|
119
|
+
"heightOffset": 216,
|
|
120
|
+
"maxHeight": 800,
|
|
121
|
+
"railSize": 138,
|
|
122
|
+
"railWidthRatio": 0.07,
|
|
123
|
+
"railMinInset": 8,
|
|
124
|
+
"railGap": 24,
|
|
125
|
+
"railInset": 0,
|
|
126
|
+
"railStageGap": 24,
|
|
127
|
+
"summaryColumns": 4,
|
|
128
|
+
"summaryInset": 0,
|
|
129
|
+
"summaryGap": 24,
|
|
130
|
+
"dockHeight": 86,
|
|
131
|
+
"submenuHeight": 44,
|
|
132
|
+
"submenuGap": 12,
|
|
133
|
+
"submenuAfterGap": 12,
|
|
134
|
+
"submenuLeft": 0,
|
|
135
|
+
"submenuRight": 0,
|
|
136
|
+
"zoomMinimap": 242,
|
|
137
|
+
"zoomInset": 16
|
|
138
|
+
},
|
|
139
|
+
"3xl": {
|
|
140
|
+
"minHeight": 400,
|
|
141
|
+
"heightOffset": 112,
|
|
142
|
+
"maxHeight": 800,
|
|
143
|
+
"railSize": 138,
|
|
144
|
+
"railGap": 24,
|
|
145
|
+
"railInset": 28,
|
|
146
|
+
"railStageGap": 12,
|
|
147
|
+
"summaryColumns": 4,
|
|
148
|
+
"summaryInset": 0,
|
|
149
|
+
"summaryGap": 16,
|
|
150
|
+
"dockHeight": 86,
|
|
151
|
+
"submenuHeight": 44,
|
|
152
|
+
"submenuGap": 0,
|
|
153
|
+
"submenuAfterGap": 0,
|
|
154
|
+
"submenuLeft": 0,
|
|
155
|
+
"submenuRight": 0,
|
|
156
|
+
"zoomMinimap": 242,
|
|
157
|
+
"zoomInset": 28
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"carousel": {
|
|
161
|
+
"dotsHeight": 32,
|
|
162
|
+
"nextPreviewHeight": 28,
|
|
163
|
+
"compactTitleHeight": 40,
|
|
164
|
+
"compactEyebrowHeight": 66,
|
|
165
|
+
"layouts": {
|
|
166
|
+
"xs": {
|
|
167
|
+
"minHeight": 150,
|
|
168
|
+
"maxHeight": 300,
|
|
169
|
+
"sideAllowance": 36,
|
|
170
|
+
"fitStartColumn": 1,
|
|
171
|
+
"fitColumns": 4,
|
|
172
|
+
"summaryStartColumn": 1,
|
|
173
|
+
"summaryColumns": 4,
|
|
174
|
+
"dotsGap": 0
|
|
175
|
+
},
|
|
176
|
+
"s": {
|
|
177
|
+
"minHeight": 150,
|
|
178
|
+
"maxHeight": 400,
|
|
179
|
+
"sideAllowance": 72,
|
|
180
|
+
"fitStartColumn": 1,
|
|
181
|
+
"fitColumns": 6,
|
|
182
|
+
"summaryStartColumn": 1,
|
|
183
|
+
"summaryColumns": 6,
|
|
184
|
+
"dotsGap": 0
|
|
185
|
+
},
|
|
186
|
+
"m": {
|
|
187
|
+
"minHeight": 300,
|
|
188
|
+
"maxHeight": 500,
|
|
189
|
+
"sideAllowance": 0,
|
|
190
|
+
"fitStartColumn": 2,
|
|
191
|
+
"fitColumns": 3,
|
|
192
|
+
"summaryStartColumn": 5,
|
|
193
|
+
"summaryColumns": 3,
|
|
194
|
+
"dotsGap": 12
|
|
195
|
+
},
|
|
196
|
+
"l": {
|
|
197
|
+
"minHeight": 340,
|
|
198
|
+
"maxHeight": 600,
|
|
199
|
+
"sideAllowance": 0,
|
|
200
|
+
"fitStartColumn": 3,
|
|
201
|
+
"fitColumns": 5,
|
|
202
|
+
"summaryStartColumn": 8,
|
|
203
|
+
"summaryColumns": 4,
|
|
204
|
+
"dotsGap": 16
|
|
205
|
+
},
|
|
206
|
+
"xl": {
|
|
207
|
+
"minHeight": 400,
|
|
208
|
+
"maxHeight": 700,
|
|
209
|
+
"sideAllowance": 0,
|
|
210
|
+
"fitStartColumn": 2,
|
|
211
|
+
"fitColumns": 5,
|
|
212
|
+
"summaryStartColumn": 7,
|
|
213
|
+
"summaryColumns": 4,
|
|
214
|
+
"dotsGap": 16
|
|
215
|
+
},
|
|
216
|
+
"2xl": {
|
|
217
|
+
"minHeight": 400,
|
|
218
|
+
"maxHeight": 800,
|
|
219
|
+
"sideAllowance": 0,
|
|
220
|
+
"fitStartColumn": 2,
|
|
221
|
+
"fitColumns": 6,
|
|
222
|
+
"summaryStartColumn": 8,
|
|
223
|
+
"summaryColumns": 4,
|
|
224
|
+
"dotsGap": 16
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Package-owned interface copy. Product content remains part of SpatialElementData. */
|
|
2
|
+
export interface SpatialMessages {
|
|
3
|
+
controls: {
|
|
4
|
+
help: string;
|
|
5
|
+
closeHelp: string;
|
|
6
|
+
detailView: string;
|
|
7
|
+
fullscreen: string;
|
|
8
|
+
};
|
|
9
|
+
interactionHelp: {
|
|
10
|
+
title: string;
|
|
11
|
+
rotate: string;
|
|
12
|
+
zoom: string;
|
|
13
|
+
pan: string;
|
|
14
|
+
mouseRotate: string;
|
|
15
|
+
mouseZoom: string;
|
|
16
|
+
mousePan: string;
|
|
17
|
+
/** Plain text; {spacemouse} inserts the external SpaceMouse link. */
|
|
18
|
+
mouseNavigationHint: string;
|
|
19
|
+
touchRotate: string;
|
|
20
|
+
touchZoom: string;
|
|
21
|
+
touchPan: string;
|
|
22
|
+
touchHint: string;
|
|
23
|
+
touchScrollHint: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Override individual strings; omitted groups/keys use the English defaults. */
|
|
27
|
+
export type SpatialMessagesInput = {
|
|
28
|
+
[K in keyof SpatialMessages]?: Partial<SpatialMessages[K]>;
|
|
29
|
+
};
|
|
30
|
+
export declare const defaultSpatialMessages: Readonly<{
|
|
31
|
+
[K in keyof SpatialMessages]: Readonly<SpatialMessages[K]>;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function resolveSpatialMessages(input?: SpatialMessagesInput): SpatialMessages;
|
|
34
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/spatial-element/messages.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,eAAe,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,qEAAqE;QACrE,mBAAmB,EAAE,MAAM,CAAC;QAC5B,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;KACxB,CAAC;CACF;AAED,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG;KAAG,CAAC,IAAI,MAAM,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAElG,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC;KAC5C,CAAC,IAAI,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAC1D,CAiBC,CAAC;AAEH,wBAAgB,sBAAsB,CAAC,KAAK,GAAE,oBAAyB,GAAG,eAAe,CAaxF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const defaultSpatialMessages = Object.freeze({
|
|
2
|
+
controls: Object.freeze({ help: '3D controls', closeHelp: 'Close help', detailView: 'Detail view', fullscreen: 'Fullscreen' }),
|
|
3
|
+
interactionHelp: Object.freeze({
|
|
4
|
+
title: 'Explore in 3D',
|
|
5
|
+
rotate: 'Rotate',
|
|
6
|
+
zoom: 'Zoom',
|
|
7
|
+
pan: 'Pan',
|
|
8
|
+
mouseRotate: 'Drag with the left mouse button',
|
|
9
|
+
mouseZoom: 'Use the scroll wheel',
|
|
10
|
+
mousePan: 'Drag with the right mouse button',
|
|
11
|
+
mouseNavigationHint: 'Alternatively, use a {spacemouse} to navigate.',
|
|
12
|
+
touchRotate: 'Drag with one finger',
|
|
13
|
+
touchZoom: 'Pinch with two fingers',
|
|
14
|
+
touchPan: 'Drag with two fingers',
|
|
15
|
+
touchHint: '3D · Drag with one finger to rotate',
|
|
16
|
+
touchScrollHint: 'Touch outside the model to scroll the page.'
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
export function resolveSpatialMessages(input = {}) {
|
|
20
|
+
const merge = (defaults, overrides) => {
|
|
21
|
+
const result = { ...defaults };
|
|
22
|
+
for (const key of Object.keys(defaults)) {
|
|
23
|
+
const value = overrides?.[key];
|
|
24
|
+
if (typeof value === 'string')
|
|
25
|
+
result[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
controls: merge(defaultSpatialMessages.controls, input.controls),
|
|
31
|
+
interactionHelp: merge(defaultSpatialMessages.interactionHelp, input.interactionHelp)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/spatial-element/messages.ts"],"names":[],"mappings":"AA6BA,MAAM,CAAC,MAAM,sBAAsB,GAE9B,MAAM,CAAC,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC;IAC9H,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC;QAC9B,KAAK,EAAE,eAAe;QACtB,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,KAAK;QACV,WAAW,EAAE,iCAAiC;QAC9C,SAAS,EAAE,sBAAsB;QACjC,QAAQ,EAAE,kCAAkC;QAC5C,mBAAmB,EAAE,gDAAgD;QACrE,WAAW,EAAE,sBAAsB;QACnC,SAAS,EAAE,wBAAwB;QACnC,QAAQ,EAAE,uBAAuB;QACjC,SAAS,EAAE,qCAAqC;QAChD,eAAe,EAAE,6CAA6C;KAC9D,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CAAC,QAA8B,EAAE;IACtE,MAAM,KAAK,GAAG,CAAmB,QAAW,EAAE,SAAsB,EAAK,EAAE;QAC1E,MAAM,MAAM,GAAG,EAAE,GAAG,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAgB,EAAE,CAAC;YACxD,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,OAAO,KAAK,KAAK,QAAQ;gBAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAmB,CAAC;QAClE,CAAC;QACD,OAAO,MAAM,CAAC;IACf,CAAC,CAAC;IACF,OAAO;QACN,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QAChE,eAAe,EAAE,KAAK,CAAC,sBAAsB,CAAC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;KACrF,CAAC;AACH,CAAC","sourcesContent":["/** Package-owned interface copy. Product content remains part of SpatialElementData. */\nexport interface SpatialMessages {\n\tcontrols: {\n\t\thelp: string;\n\t\tcloseHelp: string;\n\t\tdetailView: string;\n\t\tfullscreen: string;\n\t};\n\tinteractionHelp: {\n\t\ttitle: string;\n\t\trotate: string;\n\t\tzoom: string;\n\t\tpan: string;\n\t\tmouseRotate: string;\n\t\tmouseZoom: string;\n\t\tmousePan: string;\n\t\t/** Plain text; {spacemouse} inserts the external SpaceMouse link. */\n\t\tmouseNavigationHint: string;\n\t\ttouchRotate: string;\n\t\ttouchZoom: string;\n\t\ttouchPan: string;\n\t\ttouchHint: string;\n\t\ttouchScrollHint: string;\n\t};\n}\n\n/** Override individual strings; omitted groups/keys use the English defaults. */\nexport type SpatialMessagesInput = { [K in keyof SpatialMessages]?: Partial<SpatialMessages[K]> };\n\nexport const defaultSpatialMessages: Readonly<{\n\t[K in keyof SpatialMessages]: Readonly<SpatialMessages[K]>;\n}> = Object.freeze({\n\tcontrols: Object.freeze({ help: '3D controls', closeHelp: 'Close help', detailView: 'Detail view', fullscreen: 'Fullscreen' }),\n\tinteractionHelp: Object.freeze({\n\t\ttitle: 'Explore in 3D',\n\t\trotate: 'Rotate',\n\t\tzoom: 'Zoom',\n\t\tpan: 'Pan',\n\t\tmouseRotate: 'Drag with the left mouse button',\n\t\tmouseZoom: 'Use the scroll wheel',\n\t\tmousePan: 'Drag with the right mouse button',\n\t\tmouseNavigationHint: 'Alternatively, use a {spacemouse} to navigate.',\n\t\ttouchRotate: 'Drag with one finger',\n\t\ttouchZoom: 'Pinch with two fingers',\n\t\ttouchPan: 'Drag with two fingers',\n\t\ttouchHint: '3D · Drag with one finger to rotate',\n\t\ttouchScrollHint: 'Touch outside the model to scroll the page.'\n\t})\n});\n\nexport function resolveSpatialMessages(input: SpatialMessagesInput = {}): SpatialMessages {\n\tconst merge = <T extends object>(defaults: T, overrides?: Partial<T>): T => {\n\t\tconst result = { ...defaults };\n\t\tfor (const key of Object.keys(defaults) as (keyof T)[]) {\n\t\t\tconst value = overrides?.[key];\n\t\t\tif (typeof value === 'string') result[key] = value as T[keyof T];\n\t\t}\n\t\treturn result;\n\t};\n\treturn {\n\t\tcontrols: merge(defaultSpatialMessages.controls, input.controls),\n\t\tinteractionHelp: merge(defaultSpatialMessages.interactionHelp, input.interactionHelp)\n\t};\n}\n"]}
|