@spatial-elements/core 1.0.0-beta.6 → 1.0.0-beta.8
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/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 +8 -2
- package/dist/catalog/CarouselGlassCompositor.d.ts.map +1 -1
- package/dist/catalog/CarouselGlassCompositor.js +69 -12
- package/dist/catalog/CarouselGlassCompositor.js.map +1 -1
- package/dist/catalog/CarouselGround.d.ts +22 -1
- package/dist/catalog/CarouselGround.d.ts.map +1 -1
- package/dist/catalog/CarouselGround.js +185 -24
- package/dist/catalog/CarouselGround.js.map +1 -1
- package/dist/catalog/CatalogDepthBlur.d.ts +20 -1
- package/dist/catalog/CatalogDepthBlur.d.ts.map +1 -1
- package/dist/catalog/CatalogDepthBlur.js +126 -23
- package/dist/catalog/CatalogDepthBlur.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 +39 -7
- package/dist/catalog/CatalogGeometryFade.js.map +1 -1
- package/dist/catalog/CatalogModelOutline.d.ts +3 -1
- package/dist/catalog/CatalogModelOutline.d.ts.map +1 -1
- package/dist/catalog/CatalogModelOutline.js +11 -2
- package/dist/catalog/CatalogModelOutline.js.map +1 -1
- package/dist/catalog/CatalogPreparation.d.ts.map +1 -1
- package/dist/catalog/CatalogPreparation.js +8 -6
- package/dist/catalog/CatalogPreparation.js.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.d.ts +144 -3
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.js +554 -103
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
- package/dist/catalog/CatalogTransition.d.ts +4 -0
- package/dist/catalog/CatalogTransition.d.ts.map +1 -1
- package/dist/catalog/CatalogTransition.js +109 -27
- 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/SpatialPageRegistry.d.ts +1 -0
- package/dist/catalog/SpatialPageRegistry.d.ts.map +1 -1
- package/dist/catalog/SpatialPageRegistry.js.map +1 -1
- 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/cardProjection.d.ts +31 -0
- package/dist/catalog/cardProjection.d.ts.map +1 -1
- package/dist/catalog/cardProjection.js +63 -4
- package/dist/catalog/cardProjection.js.map +1 -1
- 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/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/catalogJourney.d.ts +2 -0
- package/dist/catalog/catalogJourney.d.ts.map +1 -1
- package/dist/catalog/catalogJourney.js.map +1 -1
- package/dist/catalog/catalogPose.d.ts +18 -0
- package/dist/catalog/catalogPose.d.ts.map +1 -1
- package/dist/catalog/catalogPose.js +26 -5
- package/dist/catalog/catalogPose.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/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 +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -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 +24 -0
- package/dist/spatial-element/SectionSurfaceRegistry.d.ts.map +1 -0
- package/dist/spatial-element/SectionSurfaceRegistry.js +48 -0
- package/dist/spatial-element/SectionSurfaceRegistry.js.map +1 -0
- package/dist/spatial-element/SpatialElementDockController.d.ts +19 -9
- package/dist/spatial-element/SpatialElementDockController.d.ts.map +1 -1
- package/dist/spatial-element/SpatialElementDockController.js +189 -93
- 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 +245 -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 +53 -0
- package/dist/spatial-element/responsiveLayout.d.ts +1389 -0
- package/dist/spatial-element/responsiveLayout.d.ts.map +1 -0
- package/dist/spatial-element/responsiveLayout.js +265 -0
- package/dist/spatial-element/responsiveLayout.js.map +1 -0
- package/dist/spatial-element/sectionBackground.d.ts +29 -0
- package/dist/spatial-element/sectionBackground.d.ts.map +1 -0
- package/dist/spatial-element/sectionBackground.js +66 -0
- package/dist/spatial-element/sectionBackground.js.map +1 -0
- package/dist/spatial-element/spatialElement.d.ts +1 -0
- package/dist/spatial-element/spatialElement.d.ts.map +1 -1
- package/dist/spatial-element/spatialElement.js +1 -0
- 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/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/spatialTheme.d.ts +12 -1
- package/dist/spatial-element/spatialTheme.d.ts.map +1 -1
- package/dist/spatial-element/spatialTheme.js +30 -1
- package/dist/spatial-element/spatialTheme.js.map +1 -1
- package/dist/spatial-element/types.d.ts +50 -2
- 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 +3 -0
- package/dist/stage/LiquidGlassPanel.d.ts.map +1 -1
- package/dist/stage/LiquidGlassPanel.js +27 -2
- package/dist/stage/LiquidGlassPanel.js.map +1 -1
- package/dist/stage/MinimapController.d.ts +1 -0
- package/dist/stage/MinimapController.d.ts.map +1 -1
- package/dist/stage/MinimapController.js +35 -47
- package/dist/stage/MinimapController.js.map +1 -1
- package/dist/stage/PageBindingController.d.ts +4 -0
- package/dist/stage/PageBindingController.d.ts.map +1 -1
- package/dist/stage/PageBindingController.js +12 -4
- package/dist/stage/PageBindingController.js.map +1 -1
- package/dist/stage/PanelPresentationController.d.ts +17 -0
- package/dist/stage/PanelPresentationController.d.ts.map +1 -1
- package/dist/stage/PanelPresentationController.js +83 -22
- package/dist/stage/PanelPresentationController.js.map +1 -1
- package/dist/stage/SpatialElementInteractionController.d.ts +7 -0
- package/dist/stage/SpatialElementInteractionController.d.ts.map +1 -1
- package/dist/stage/SpatialElementInteractionController.js +9 -0
- 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 +183 -5
- package/dist/stage/StageExperience.d.ts.map +1 -1
- package/dist/stage/StageExperience.js +421 -57
- package/dist/stage/StageExperience.js.map +1 -1
- package/dist/stage/StageRenderPipeline.d.ts +76 -1
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
- package/dist/stage/StageRenderPipeline.js +424 -47
- 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 +57 -4
- package/dist/stage/VirtualScrollController.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/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/panelContext.d.ts +7 -0
- package/dist/stage/panelContext.d.ts.map +1 -1
- package/dist/stage/panelContext.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/stageDom.d.ts.map +1 -1
- package/dist/stage/stageDom.js +6 -1
- package/dist/stage/stageDom.js.map +1 -1
- package/dist/stage/stageMath.d.ts +3 -3
- package/dist/stage/stageMath.d.ts.map +1 -1
- package/dist/stage/stageMath.js +11 -10
- package/dist/stage/stageMath.js.map +1 -1
- package/dist/stage/stageTypes.d.ts +8 -1
- package/dist/stage/stageTypes.d.ts.map +1 -1
- package/dist/stage/stageTypes.js.map +1 -1
- package/dist/stage/stageVisualTest.d.ts +19 -0
- package/dist/stage/stageVisualTest.d.ts.map +1 -1
- package/dist/stage/stageVisualTest.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelContext.js","sourceRoot":"","sources":["../../src/stage/panelContext.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjD,uFAAuF;AACvF,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,+FAA+F;AAC/F,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC","sourcesContent":["\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\nimport type { StageMinimapDockedView, StagePanelSurface } from './stageTypes.js';\n\nexport const STAGE_CONTEXT_KEY = Symbol('stage');\n\n/** Notifies an active stage that externally positioned panel frames changed layout. */\nexport const STAGE_PANEL_LAYOUT_EVENT = 'stage:panel-layout';\n\n/** Notifies an active stage that an external panel visual changed without affecting layout. */\nexport const STAGE_PANEL_VISUAL_EVENT = 'stage:panel-visual';\n\nexport interface StagePanelPose {\n\twidth: number;\n\theight: number;\n\tposition: { x: number; y: number };\n}\n\nexport interface StagePanelShape {\n\tradius: number;\n\tcontentInset?: number;\n}\n\nexport type StagePanelTheme = Omit<\n\tLiquidGlassPanelOptions,\n\t'width' | 'height' | 'position' | 'radius'\n> & {\n\t/** Semantic surface style. Defaults to the WebGPU-backed `glass` mode. */\n\tsurface?: StagePanelSurface;\n};\n\n\n\nexport interface StagePanelMinimapOptions {\n\texpandedHeight?: number;\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\toverlayColor?: string | number;\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\tcontextColor?: string | number;\n\tcontextOpacity?: number;\n\tviewportColor?: string | number;\n}\n\nexport interface StagePanelRegistration {\n\tgetContentInset(): number;\n\tgetElement(): HTMLElement | undefined;\n\tgetFrameElement(): HTMLElement | undefined;\n\tgetSurfaceElement(): HTMLElement | undefined;\n\tgetPointerReactive(): boolean | 'lift';\n\tgetFocusReactive?(): boolean | 'top-right';\n\t/** Neighbouring panel frame that shares a corner control's exit path. */\n\tgetFocusAnchor?(): HTMLElement | undefined;\n\tgetNativeContent?(): boolean;\n\t/** Runs synchronously before the native panel surface is measured and drawn. */\n\tupdateNativeLayout?(): void;\n\tgetVisible?(): boolean;\n\tgetMinimapOptions(): StagePanelMinimapOptions | undefined;\n\tgetOptions(): LiquidGlassPanelOptions;\n\tgetSurface(): StagePanelSurface;\n\t/** Returns the opacity of the panel surface without affecting panel content. */\n\tgetSurfaceOpacity(): number;\n\t/** Returns a transient presentation scale applied to a rendered minimap model. */\n\tgetMinimapModelScale(): number;\n\t/** Returns the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress(): number;\n\t/** Returns the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop(): number | undefined;\n}\n\nexport interface StageViewportRegistration {\n\tgetElement(): HTMLElement | undefined;\n}\n\nexport interface StageContext {\n\t/** Reactive in framework adapters; false during SSR and until the GPU has painted. */\n\tisEnhanced?(): boolean;\n\tprefetchSpatialElement?(stage: import('../spatial-element/spatialElementScene.js').SpatialElementScene): void;\n\tregisterPanel(panel: StagePanelRegistration): () => void;\n\t/** Refresh appearance from registered getters without rebinding the page or its camera. */\n\tupdatePanelAppearance?(): void;\n\tregisterViewport(viewport: StageViewportRegistration): () => void;\n\t/** Restores the element camera to its initial fitted pose. */\n\tresetView(): void;\n\t/** True for both native fullscreen and its viewport fallback. */\n\tisFullscreen?(): boolean;\n\t/** Current camera zoom focus, from the fitted detail view (0) to close-up (1). */\n\tgetZoomFocus?(): number;\n\tsetFullscreen?(fullscreen: boolean): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"panelContext.js","sourceRoot":"","sources":["../../src/stage/panelContext.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjD,uFAAuF;AACvF,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,+FAA+F;AAC/F,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC","sourcesContent":["\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\nimport type { StageMinimapDockedView, StagePanelSurface } from './stageTypes.js';\n\nexport const STAGE_CONTEXT_KEY = Symbol('stage');\n\n/** Notifies an active stage that externally positioned panel frames changed layout. */\nexport const STAGE_PANEL_LAYOUT_EVENT = 'stage:panel-layout';\n\n/** Notifies an active stage that an external panel visual changed without affecting layout. */\nexport const STAGE_PANEL_VISUAL_EVENT = 'stage:panel-visual';\n\nexport interface StagePanelPose {\n\twidth: number;\n\theight: number;\n\tposition: { x: number; y: number };\n}\n\nexport interface StagePanelShape {\n\tradius: number;\n\tcontentInset?: number;\n}\n\nexport type StagePanelTheme = Omit<\n\tLiquidGlassPanelOptions,\n\t'width' | 'height' | 'position' | 'radius'\n> & {\n\t/** Semantic surface style. Defaults to the WebGPU-backed `glass` mode. */\n\tsurface?: StagePanelSurface;\n};\n\n\n\nexport interface StagePanelMinimapOptions {\n\texpandedHeight?: number;\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\toverlayColor?: string | number;\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\tcontextColor?: string | number;\n\tcontextOpacity?: number;\n\tviewportColor?: string | number;\n}\n\nexport interface StagePanelRegistration {\n\tgetContentInset(): number;\n\tgetElement(): HTMLElement | undefined;\n\tgetFrameElement(): HTMLElement | undefined;\n\tgetSurfaceElement(): HTMLElement | undefined;\n\tgetPointerReactive(): boolean | 'lift';\n\tgetFocusReactive?(): boolean | 'top-right';\n\t/** Neighbouring panel frame that shares a corner control's exit path. */\n\tgetFocusAnchor?(): HTMLElement | undefined;\n\tgetNativeContent?(): boolean;\n\t/** Runs synchronously before the native panel surface is measured and drawn. */\n\tupdateNativeLayout?(): void;\n\tgetVisible?(): boolean;\n\tgetMinimapOptions(): StagePanelMinimapOptions | undefined;\n\tgetOptions(): LiquidGlassPanelOptions;\n\tgetSurface(): StagePanelSurface;\n\t/** Returns the opacity of the panel surface without affecting panel content. */\n\tgetSurfaceOpacity(): number;\n\t/** Returns a transient presentation scale applied to a rendered minimap model. */\n\tgetMinimapModelScale(): number;\n\t/** Returns the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress(): number;\n\t/** Returns the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop(): number | undefined;\n\tgetMinimapModelLeft?(): number | undefined;\n}\n\nexport interface StageViewportRegistration {\n\tgetElement(): HTMLElement | undefined;\n}\n\nexport interface StageContext {\n\t/** Detail-page ownership; stale route cleanup cannot reset a newer media selection. */\n\tregisterDetailMedia?(read: () => import('../spatial-element/types.js').SpatialElementMediaItem['kind']): () => void;\n\t/** Cached browser layout metrics; unavailable during SSR. */\n\tgetLayoutMetrics?(mode?: 'stable' | 'visible'): import('../spatial-element/responsiveLayout.js').ResponsiveLayoutInput | undefined;\n\t/** Reactive in framework adapters; false during SSR and until the GPU has painted. */\n\tisEnhanced?(): boolean;\n\tprefetchSpatialElement?(stage: import('../spatial-element/spatialElementScene.js').SpatialElementScene): void;\n\tregisterPanel(panel: StagePanelRegistration): () => void;\n\t/** Refresh appearance from registered getters without rebinding the page or its camera. */\n\tupdatePanelAppearance?(): void;\n\tregisterViewport(viewport: StageViewportRegistration): () => void;\n\t/** Restores the element camera to its initial fitted pose. */\n\tresetView(): void;\n\t/** True for both native fullscreen and its viewport fallback. */\n\tisFullscreen?(): boolean;\n\t/** Current camera zoom focus, from the fitted detail view (0) to close-up (1). */\n\tgetZoomFocus?(): number;\n\t/** Damped UI focus shared by panels and the document-scrolled detail pane. */\n\tgetZoomUiFocus?(): number;\n\tsetFullscreen?(fullscreen: boolean): void;\n}\n"]}
|
|
@@ -4,6 +4,8 @@ type RendererStatePort = Pick<WebGPURenderer, 'getCanvasTarget' | 'setCanvasTarg
|
|
|
4
4
|
setViewport(value: Vector4): void;
|
|
5
5
|
setScissor(value: Vector4): void;
|
|
6
6
|
};
|
|
7
|
+
/** A cached uniform attachment must be complete on WebGPU and its WebGL fallback. */
|
|
8
|
+
export declare function clearFullTarget(renderer: Pick<WebGPURenderer, 'getScissorTest' | 'setScissorTest' | 'clear'>): void;
|
|
7
9
|
/** A pass borrows renderer state; failures must not poison the next output band. */
|
|
8
10
|
export declare function withRendererState<T>(renderer: RendererStatePort, draw: () => T): T;
|
|
9
11
|
/** Restore borrowed scene visibility even if a WebGPU pass throws. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendererState.d.ts","sourceRoot":"","sources":["../../src/stage/rendererState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,KAAK,iBAAiB,GAAG,IAAI,CAC5B,cAAc,EACZ,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,CAClB,GAAG;IAAE,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,CAA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,4 +1,17 @@
|
|
|
1
1
|
import { Color, Vector4 } from 'three/webgpu';
|
|
2
|
+
/** A cached uniform attachment must be complete on WebGPU and its WebGL fallback. */
|
|
3
|
+
export function clearFullTarget(renderer) {
|
|
4
|
+
const scissorTest = renderer.getScissorTest();
|
|
5
|
+
if (scissorTest)
|
|
6
|
+
renderer.setScissorTest(false);
|
|
7
|
+
try {
|
|
8
|
+
renderer.clear();
|
|
9
|
+
}
|
|
10
|
+
finally {
|
|
11
|
+
if (scissorTest)
|
|
12
|
+
renderer.setScissorTest(true);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
2
15
|
/** A pass borrows renderer state; failures must not poison the next output band. */
|
|
3
16
|
export function withRendererState(renderer, draw) {
|
|
4
17
|
const canvas = renderer.getCanvasTarget();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendererState.js","sourceRoot":"","sources":["../../src/stage/rendererState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAkB9C,oFAAoF;AACpF,MAAM,UAAU,iBAAiB,CAAI,QAA2B,EAAE,IAAa;IAC9E,MAAM,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;IAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;IAC1C,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,EAAE,CAAC;IACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC;IACnD,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC9C,IAAI,CAAC;QACJ,OAAO,IAAI,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACV,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACjC,QAAQ,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACrC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC/B,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC7B,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;AACF,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,cAAc,CAAI,KAAsC,EAAE,IAAa;IACtF,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClD,IAAI,CAAC;QACJ,OAAO,IAAI,EAAE,CAAC;IACf,CAAC;YAAS,CAAC;QACV,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC","sourcesContent":["import { Color, Vector4 } from 'three/webgpu';\nimport type { WebGPURenderer } from 'three/webgpu';\n\ntype RendererStatePort = Pick<\n\tWebGPURenderer,\n\t| 'getCanvasTarget'\n\t| 'setCanvasTarget'\n\t| 'getRenderTarget'\n\t| 'setRenderTarget'\n\t| 'getClearColor'\n\t| 'getClearAlpha'\n\t| 'setClearColor'\n\t| 'getViewport'\n\t| 'getScissor'\n\t| 'getScissorTest'\n\t| 'setScissorTest'\n> & { setViewport(value: Vector4): void; setScissor(value: Vector4): void };\n\n/** A pass borrows renderer state; failures must not poison the next output band. */\nexport function withRendererState<T>(renderer: RendererStatePort, draw: () => T): T {\n\tconst canvas = renderer.getCanvasTarget();\n\tconst target = renderer.getRenderTarget();\n\tconst color = renderer.getClearColor(new Color());\n\tconst alpha = renderer.getClearAlpha();\n\tconst viewport = renderer.getViewport(new Vector4());\n\tconst scissor = renderer.getScissor(new Vector4());\n\tconst scissorTest = renderer.getScissorTest();\n\ttry {\n\t\treturn draw();\n\t} finally {\n\t\trenderer.setCanvasTarget(canvas);\n\t\trenderer.setRenderTarget(target);\n\t\trenderer.setClearColor(color, alpha);\n\t\trenderer.setViewport(viewport);\n\t\trenderer.setScissor(scissor);\n\t\trenderer.setScissorTest(scissorTest);\n\t}\n}\n\n/** Restore borrowed scene visibility even if a WebGPU pass throws. */\nexport function withVisibility<T>(nodes: readonly { visible: boolean }[], draw: () => T): T {\n\tconst visible = nodes.map((node) => node.visible);\n\ttry {\n\t\treturn draw();\n\t} finally {\n\t\tnodes.forEach((node, index) => {\n\t\t\tnode.visible = visible[index];\n\t\t});\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"rendererState.js","sourceRoot":"","sources":["../../src/stage/rendererState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAkB9C,qFAAqF;AACrF,MAAM,UAAU,eAAe,CAAC,QAA6E;IAC5G,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC9C,IAAI,WAAW;QAAE,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAChD,IAAI,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IAAC,CAAC;YACjB,CAAC;QAAC,IAAI,WAAW;YAAE,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;AAC5D,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,iBAAiB,CAAI,QAA2B,EAAE,IAAa;IAC9E,MAAM,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;IAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;IAC1C,MAAM,KAA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StatePort = Pick<\n\tWebGPURenderer,\n\t| 'getCanvasTarget'\n\t| 'setCanvasTarget'\n\t| 'getRenderTarget'\n\t| 'setRenderTarget'\n\t| 'getClearColor'\n\t| 'getClearAlpha'\n\t| 'setClearColor'\n\t| 'getViewport'\n\t| 'getScissor'\n\t| 'getScissorTest'\n\t| 'setScissorTest'\n> & { setViewport(value: Vector4): void; setScissor(value: Vector4): void };\n\n/** A cached uniform attachment must be complete on WebGPU and its WebGL fallback. */\nexport function clearFullTarget(renderer: Pick<WebGPURenderer, 'getScissorTest' | 'setScissorTest' | 'clear'>) {\n\tconst scissorTest = renderer.getScissorTest();\n\tif (scissorTest) renderer.setScissorTest(false);\n\ttry { renderer.clear(); }\n\tfinally { if (scissorTest) renderer.setScissorTest(true); }\n}\n\n/** A pass borrows renderer state; failures must not poison the next output band. */\nexport function withRendererState<T>(renderer: RendererStatePort, draw: () => T): T {\n\tconst canvas = renderer.getCanvasTarget();\n\tconst target = renderer.getRenderTarget();\n\tconst color = renderer.getClearColor(new Color());\n\tconst alpha = renderer.getClearAlpha();\n\tconst viewport = renderer.getViewport(new Vector4());\n\tconst scissor = renderer.getScissor(new Vector4());\n\tconst scissorTest = renderer.getScissorTest();\n\ttry {\n\t\treturn draw();\n\t} finally {\n\t\trenderer.setCanvasTarget(canvas);\n\t\trenderer.setRenderTarget(target);\n\t\trenderer.setClearColor(color, alpha);\n\t\trenderer.setViewport(viewport);\n\t\trenderer.setScissor(scissor);\n\t\trenderer.setScissorTest(scissorTest);\n\t}\n}\n\n/** Restore borrowed scene visibility even if a WebGPU pass throws. */\nexport function withVisibility<T>(nodes: readonly { visible: boolean }[], draw: () => T): T {\n\tconst visible = nodes.map((node) => node.visible);\n\ttry {\n\t\treturn draw();\n\t} finally {\n\t\tnodes.forEach((node, index) => {\n\t\t\tnode.visible = visible[index];\n\t\t});\n\t}\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
export interface SceneEndpointGuard {
|
|
3
|
+
/** Checks recorded values only: no scene traversal, matrix update or allocation. */
|
|
4
|
+
isValid(): boolean;
|
|
5
|
+
dispose(): void;
|
|
6
|
+
}
|
|
7
|
+
/** A narrow, static standard-material scene. Stage owns binding/size/input eligibility;
|
|
8
|
+
* Refinement owns target-write epochs and must recheck them after its GPU fence.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createSceneEndpointGuard(options: {
|
|
11
|
+
scene: THREE.Scene;
|
|
12
|
+
camera: THREE.Camera;
|
|
13
|
+
model: THREE.Object3D;
|
|
14
|
+
low: THREE.Object3D;
|
|
15
|
+
high: THREE.Object3D;
|
|
16
|
+
highEnvironment?: THREE.Texture;
|
|
17
|
+
additionalScenes?: readonly THREE.Scene[];
|
|
18
|
+
additionalCameras?: readonly THREE.Camera[];
|
|
19
|
+
}): SceneEndpointGuard | undefined;
|
|
20
|
+
//# sourceMappingURL=sceneEndpointEligibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sceneEndpointEligibility.d.ts","sourceRoot":"","sources":["../../src/stage/sceneEndpointEligibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,MAAM,WAAW,kBAAkB;IAClC,oFAAoF;IACpF,OAAO,IAAI,OAAO,CAAC;IACnB,OAAO,IAAI,IAAI,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE;IACjD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC;IACtB,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC;IAChC,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,KAAK,EAAE,CAAC;IAC1C,iBAAiB,CAAC,EAAE,SAAS,KAAK,CAAC,MAAM,EAAE,CAAC;CAC5C,GAAG,kBAAkB,GAAG,SAAS,CA0OjC"}
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
/** A narrow, static standard-material scene. Stage owns binding/size/input eligibility;
|
|
3
|
+
* Refinement owns target-write epochs and must recheck them after its GPU fence.
|
|
4
|
+
*/
|
|
5
|
+
export function createSceneEndpointGuard(options) {
|
|
6
|
+
const checks = [], cleanup = [];
|
|
7
|
+
const nodes = new Set(), resources = new Set();
|
|
8
|
+
let lowRoot = options.low;
|
|
9
|
+
while (lowRoot.parent && lowRoot.parent !== options.model)
|
|
10
|
+
lowRoot = lowRoot.parent;
|
|
11
|
+
let eligible = true, invalid = false, disposed = false;
|
|
12
|
+
const reject = () => { eligible = false; };
|
|
13
|
+
const physicalRange = (value, maximum = Infinity) => {
|
|
14
|
+
if (value !== undefined && (typeof value !== 'number' || !Number.isFinite(value) || value < 0 || value > maximum))
|
|
15
|
+
reject();
|
|
16
|
+
};
|
|
17
|
+
const invalidate = () => { invalid = true; };
|
|
18
|
+
const dispose = () => {
|
|
19
|
+
if (disposed)
|
|
20
|
+
return;
|
|
21
|
+
disposed = true;
|
|
22
|
+
for (const release of cleanup)
|
|
23
|
+
release();
|
|
24
|
+
cleanup.length = 0;
|
|
25
|
+
};
|
|
26
|
+
function watch(resource) {
|
|
27
|
+
resource.addEventListener('dispose', invalidate);
|
|
28
|
+
cleanup.push(() => resource.removeEventListener('dispose', invalidate));
|
|
29
|
+
}
|
|
30
|
+
function scalar(read) {
|
|
31
|
+
const value = read();
|
|
32
|
+
if (typeof value === 'number' && !Number.isFinite(value) && value !== Infinity)
|
|
33
|
+
reject();
|
|
34
|
+
checks.push(() => read() === value);
|
|
35
|
+
}
|
|
36
|
+
function sequence(read) {
|
|
37
|
+
const values = [...read()];
|
|
38
|
+
checks.push(() => {
|
|
39
|
+
const current = read();
|
|
40
|
+
if (current.length !== values.length)
|
|
41
|
+
return false;
|
|
42
|
+
for (let i = 0; i < values.length; i++)
|
|
43
|
+
if (current[i] !== values[i])
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function keys(object, ignored = new Set()) {
|
|
49
|
+
const names = Object.keys(object).filter(name => !ignored.has(name));
|
|
50
|
+
const expected = new Set(names);
|
|
51
|
+
checks.push(() => {
|
|
52
|
+
let count = 0;
|
|
53
|
+
for (const name in object)
|
|
54
|
+
if (Object.hasOwn(object, name) && !ignored.has(name)) {
|
|
55
|
+
if (!expected.has(name))
|
|
56
|
+
return false;
|
|
57
|
+
count++;
|
|
58
|
+
}
|
|
59
|
+
return count === names.length;
|
|
60
|
+
});
|
|
61
|
+
return names;
|
|
62
|
+
}
|
|
63
|
+
function value(read, environmentTexture = false) {
|
|
64
|
+
const original = read();
|
|
65
|
+
if (original === null || typeof original !== 'object') {
|
|
66
|
+
if (typeof original === 'function')
|
|
67
|
+
reject();
|
|
68
|
+
else
|
|
69
|
+
scalar(read);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
checks.push(() => read() === original);
|
|
73
|
+
if (original instanceof THREE.Texture) {
|
|
74
|
+
texture(original, environmentTexture);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (original instanceof THREE.Color) {
|
|
78
|
+
// Negative radiance can cross NodeMaterial's outgoing-light clamp as
|
|
79
|
+
// the background changes; static values alone do not prove affinity.
|
|
80
|
+
physicalRange(original.r);
|
|
81
|
+
physicalRange(original.g);
|
|
82
|
+
physicalRange(original.b);
|
|
83
|
+
const copy = original.clone();
|
|
84
|
+
checks.push(() => original.equals(copy));
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (original instanceof THREE.Vector2 || original instanceof THREE.Vector3 || original instanceof THREE.Vector4 ||
|
|
88
|
+
original instanceof THREE.Quaternion || original instanceof THREE.Euler || original instanceof THREE.Matrix3 ||
|
|
89
|
+
original instanceof THREE.Matrix4 || original instanceof THREE.Plane || original instanceof THREE.Box3 || original instanceof THREE.Sphere) {
|
|
90
|
+
const copy = original.clone();
|
|
91
|
+
checks.push(() => original.equals(copy));
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (Array.isArray(original)) {
|
|
95
|
+
sequence(() => original);
|
|
96
|
+
for (let i = 0; i < original.length; i++)
|
|
97
|
+
value(() => original[i]);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (Object.getPrototypeOf(original) !== Object.prototype && Object.getPrototypeOf(original) !== null) {
|
|
101
|
+
reject();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const record = original;
|
|
105
|
+
for (const name of keys(record))
|
|
106
|
+
value(() => record[name]);
|
|
107
|
+
}
|
|
108
|
+
function texture(resource, environment = false) {
|
|
109
|
+
const dynamic = resource;
|
|
110
|
+
const image = resource.source?.data;
|
|
111
|
+
// Arbitrary floating/signed material maps have no nonnegative-radiance
|
|
112
|
+
// contract. Do not scan their pixel arrays on the Hold path. Prepared
|
|
113
|
+
// runtime environment/background resources are a separate owner contract.
|
|
114
|
+
if (!environment && [THREE.FloatType, THREE.HalfFloatType, THREE.ByteType, THREE.ShortType, THREE.IntType].some(type => type === resource.type))
|
|
115
|
+
reject();
|
|
116
|
+
const changingImage = (data) => Boolean(data && typeof data === 'object' &&
|
|
117
|
+
('getContext' in data || 'requestVideoFrameCallback' in data ||
|
|
118
|
+
('tagName' in data && /^(VIDEO|CANVAS)$/i.test(String(data.tagName)))));
|
|
119
|
+
if (dynamic.isVideoTexture || dynamic.isVideoFrameTexture || dynamic.isCanvasTexture || dynamic.isFramebufferTexture ||
|
|
120
|
+
dynamic.isDepthTexture || (dynamic.isRenderTargetTexture && !environment) || resource.onUpdate ||
|
|
121
|
+
changingImage(image) || (Array.isArray(image) && image.some(changingImage))) {
|
|
122
|
+
reject();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (resources.has(resource))
|
|
126
|
+
return;
|
|
127
|
+
resources.add(resource);
|
|
128
|
+
watch(resource);
|
|
129
|
+
for (const name of ['version', 'mapping', 'channel', 'wrapS', 'wrapT', 'wrapR', 'magFilter', 'minFilter',
|
|
130
|
+
'anisotropy', 'format', 'internalFormat', 'type', 'colorSpace', 'generateMipmaps', 'premultiplyAlpha',
|
|
131
|
+
'flipY', 'unpackAlignment', 'compareFunction', 'rotation', 'matrixAutoUpdate', 'onUpdate']) {
|
|
132
|
+
const record = resource;
|
|
133
|
+
scalar(() => record[name]);
|
|
134
|
+
}
|
|
135
|
+
value(() => resource.offset);
|
|
136
|
+
value(() => resource.repeat);
|
|
137
|
+
value(() => resource.center);
|
|
138
|
+
value(() => resource.matrix);
|
|
139
|
+
scalar(() => resource.source);
|
|
140
|
+
scalar(() => resource.source.version);
|
|
141
|
+
scalar(() => resource.source.data);
|
|
142
|
+
if (Array.isArray(image))
|
|
143
|
+
sequence(() => resource.source.data);
|
|
144
|
+
for (const data of Array.isArray(image) ? image : [image])
|
|
145
|
+
if (data && typeof data === 'object') {
|
|
146
|
+
for (const name of ['width', 'height', 'depth', 'data'])
|
|
147
|
+
scalar(() => data[name]);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function material(resource) {
|
|
151
|
+
if (![THREE.MeshBasicMaterial, THREE.MeshStandardMaterial, THREE.MeshPhysicalMaterial].some(Type => resource.constructor === Type) ||
|
|
152
|
+
(resource.blending !== THREE.NormalBlending && resource.blending !== THREE.NoBlending) ||
|
|
153
|
+
resource.onBeforeRender !== THREE.Material.prototype.onBeforeRender ||
|
|
154
|
+
resource.onBeforeCompile !== THREE.Material.prototype.onBeforeCompile ||
|
|
155
|
+
resource.customProgramCacheKey !== THREE.Material.prototype.customProgramCacheKey) {
|
|
156
|
+
reject();
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (resources.has(resource))
|
|
160
|
+
return;
|
|
161
|
+
resources.add(resource);
|
|
162
|
+
watch(resource);
|
|
163
|
+
scalar(() => resource.constructor);
|
|
164
|
+
const record = resource;
|
|
165
|
+
for (const name of ['emissiveIntensity', 'envMapIntensity', 'lightMapIntensity'])
|
|
166
|
+
physicalRange(record[name]);
|
|
167
|
+
for (const name of ['opacity', 'aoMapIntensity', 'transmission', 'metalness', 'roughness', 'clearcoat',
|
|
168
|
+
'clearcoatRoughness', 'sheen', 'sheenRoughness', 'iridescence', 'specularIntensity', 'reflectivity'])
|
|
169
|
+
physicalRange(record[name], 1);
|
|
170
|
+
// Authored vertex colors can contain negative floats. Keep those uncommon
|
|
171
|
+
// scenes live instead of introducing a large vertex-array validation pass.
|
|
172
|
+
if (resource.vertexColors)
|
|
173
|
+
reject();
|
|
174
|
+
for (const name of keys(record, new Set(['_listeners', 'userData'])))
|
|
175
|
+
value(() => record[name]);
|
|
176
|
+
checks.push(() => resource.onBeforeRender === THREE.Material.prototype.onBeforeRender &&
|
|
177
|
+
resource.onBeforeCompile === THREE.Material.prototype.onBeforeCompile &&
|
|
178
|
+
resource.customProgramCacheKey === THREE.Material.prototype.customProgramCacheKey);
|
|
179
|
+
}
|
|
180
|
+
function attribute(resource) {
|
|
181
|
+
if (!resource)
|
|
182
|
+
return;
|
|
183
|
+
if (!(resource instanceof THREE.BufferAttribute) && !(resource instanceof THREE.InterleavedBufferAttribute)) {
|
|
184
|
+
reject();
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
const data = resource instanceof THREE.InterleavedBufferAttribute ? resource.data : resource;
|
|
188
|
+
if (data.usage !== THREE.StaticDrawUsage) {
|
|
189
|
+
reject();
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
for (const name of ['version', 'array', 'count', 'usage', 'stride']) {
|
|
193
|
+
const record = data;
|
|
194
|
+
scalar(() => record[name]);
|
|
195
|
+
}
|
|
196
|
+
for (const name of ['itemSize', 'normalized', 'offset', 'gpuType', 'data']) {
|
|
197
|
+
const record = resource;
|
|
198
|
+
scalar(() => record[name]);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function geometry(resource) {
|
|
202
|
+
if (resources.has(resource))
|
|
203
|
+
return;
|
|
204
|
+
resources.add(resource);
|
|
205
|
+
watch(resource);
|
|
206
|
+
if (resource.isInstancedBufferGeometry || Object.keys(resource.morphAttributes).length)
|
|
207
|
+
reject();
|
|
208
|
+
scalar(() => resource.index);
|
|
209
|
+
attribute(resource.index);
|
|
210
|
+
scalar(() => resource.attributes);
|
|
211
|
+
for (const name of keys(resource.attributes)) {
|
|
212
|
+
scalar(() => resource.attributes[name]);
|
|
213
|
+
attribute(resource.attributes[name]);
|
|
214
|
+
}
|
|
215
|
+
checks.push(() => { for (const _name in resource.morphAttributes)
|
|
216
|
+
return false; return true; });
|
|
217
|
+
value(() => resource.drawRange);
|
|
218
|
+
value(() => resource.groups);
|
|
219
|
+
value(() => resource.boundingBox);
|
|
220
|
+
value(() => resource.boundingSphere);
|
|
221
|
+
}
|
|
222
|
+
function node(object) {
|
|
223
|
+
if (nodes.has(object))
|
|
224
|
+
return;
|
|
225
|
+
nodes.add(object);
|
|
226
|
+
const supported = [THREE.Scene, THREE.Group, THREE.Object3D, THREE.Mesh, THREE.PerspectiveCamera, THREE.OrthographicCamera,
|
|
227
|
+
THREE.AmbientLight, THREE.HemisphereLight, THREE.DirectionalLight, THREE.PointLight, THREE.SpotLight, THREE.RectAreaLight];
|
|
228
|
+
if (!supported.some(Type => object.constructor === Type) || object.animations.length || object.castShadow ||
|
|
229
|
+
object.onBeforeRender !== THREE.Object3D.prototype.onBeforeRender || object.onAfterRender !== THREE.Object3D.prototype.onAfterRender ||
|
|
230
|
+
object.onBeforeShadow !== THREE.Object3D.prototype.onBeforeShadow || object.onAfterShadow !== THREE.Object3D.prototype.onAfterShadow) {
|
|
231
|
+
reject();
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
checks.push(() => object.animations.length === 0 && object.onBeforeRender === THREE.Object3D.prototype.onBeforeRender &&
|
|
235
|
+
object.onAfterRender === THREE.Object3D.prototype.onAfterRender && object.onBeforeShadow === THREE.Object3D.prototype.onBeforeShadow &&
|
|
236
|
+
object.onAfterShadow === THREE.Object3D.prototype.onAfterShadow);
|
|
237
|
+
scalar(() => object.constructor);
|
|
238
|
+
if (object !== lowRoot && object !== options.high)
|
|
239
|
+
scalar(() => object.visible);
|
|
240
|
+
for (const name of ['parent', 'matrixAutoUpdate', 'matrixWorldAutoUpdate', 'frustumCulled', 'renderOrder', 'castShadow', 'receiveShadow'])
|
|
241
|
+
scalar(() => object[name]);
|
|
242
|
+
scalar(() => object.layers.mask);
|
|
243
|
+
value(() => object.position);
|
|
244
|
+
value(() => object.quaternion);
|
|
245
|
+
value(() => object.rotation);
|
|
246
|
+
value(() => object.scale);
|
|
247
|
+
value(() => object.matrix);
|
|
248
|
+
value(() => object.matrixWorld);
|
|
249
|
+
sequence(() => object.children);
|
|
250
|
+
if (object instanceof THREE.Mesh) {
|
|
251
|
+
if (object.morphTargetInfluences?.length)
|
|
252
|
+
reject();
|
|
253
|
+
scalar(() => object.morphTargetInfluences);
|
|
254
|
+
scalar(() => object.geometry);
|
|
255
|
+
geometry(object.geometry);
|
|
256
|
+
scalar(() => object.material);
|
|
257
|
+
if (Array.isArray(object.material)) {
|
|
258
|
+
sequence(() => object.material);
|
|
259
|
+
object.material.forEach(material);
|
|
260
|
+
}
|
|
261
|
+
else
|
|
262
|
+
material(object.material);
|
|
263
|
+
}
|
|
264
|
+
if (object instanceof THREE.Light) {
|
|
265
|
+
const light = object;
|
|
266
|
+
physicalRange(object.intensity);
|
|
267
|
+
for (const name of ['color', 'groundColor', 'intensity', 'distance', 'decay', 'angle', 'penumbra', 'width', 'height'])
|
|
268
|
+
value(() => light[name]);
|
|
269
|
+
if ('target' in object) {
|
|
270
|
+
scalar(() => object.target);
|
|
271
|
+
node(object.target);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
for (const child of object.children)
|
|
275
|
+
node(child);
|
|
276
|
+
}
|
|
277
|
+
function cameraSnapshot(camera) {
|
|
278
|
+
node(camera);
|
|
279
|
+
if (camera.constructor !== THREE.PerspectiveCamera && camera.constructor !== THREE.OrthographicCamera)
|
|
280
|
+
reject();
|
|
281
|
+
value(() => camera.projectionMatrix);
|
|
282
|
+
value(() => camera.projectionMatrixInverse);
|
|
283
|
+
value(() => camera.matrixWorldInverse);
|
|
284
|
+
const record = camera;
|
|
285
|
+
for (const name of ['near', 'far', 'fov', 'aspect', 'zoom', 'focus', 'filmGauge', 'filmOffset', 'coordinateSystem', 'view',
|
|
286
|
+
'left', 'right', 'top', 'bottom'])
|
|
287
|
+
value(() => record[name]);
|
|
288
|
+
}
|
|
289
|
+
function sceneSnapshot(scene, allowHigh = false) {
|
|
290
|
+
node(scene);
|
|
291
|
+
if (scene.overrideMaterial !== null)
|
|
292
|
+
reject();
|
|
293
|
+
physicalRange(scene.backgroundIntensity);
|
|
294
|
+
physicalRange(scene.environmentIntensity);
|
|
295
|
+
const lowEnvironment = scene.environment, highEnvironment = allowHigh ? options.highEnvironment : undefined;
|
|
296
|
+
checks.push(() => scene.environment === lowEnvironment || Boolean(highEnvironment && scene.environment === highEnvironment));
|
|
297
|
+
if (lowEnvironment)
|
|
298
|
+
texture(lowEnvironment, true);
|
|
299
|
+
if (highEnvironment)
|
|
300
|
+
texture(highEnvironment, true);
|
|
301
|
+
// Prepared environment targets are stable renderer-owned resources; arbitrary
|
|
302
|
+
// render-target material maps remain ineligible above.
|
|
303
|
+
value(() => scene.background, true);
|
|
304
|
+
for (const name of ['backgroundBlurriness', 'backgroundIntensity', 'backgroundRotation',
|
|
305
|
+
'environmentIntensity', 'environmentRotation', 'overrideMaterial'])
|
|
306
|
+
value(() => scene[name]);
|
|
307
|
+
const fog = scene.fog;
|
|
308
|
+
scalar(() => scene.fog);
|
|
309
|
+
if (fog) {
|
|
310
|
+
if (fog.constructor !== THREE.Fog && fog.constructor !== THREE.FogExp2)
|
|
311
|
+
reject();
|
|
312
|
+
value(() => fog.color);
|
|
313
|
+
for (const name of ['near', 'far', 'density'])
|
|
314
|
+
scalar(() => fog[name]);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
try {
|
|
318
|
+
if (lowRoot === options.high || lowRoot.parent !== options.model || options.high.parent !== options.model || options.model.children.length !== 2 ||
|
|
319
|
+
options.scene.overrideMaterial !== null)
|
|
320
|
+
reject();
|
|
321
|
+
sceneSnapshot(options.scene, true);
|
|
322
|
+
cameraSnapshot(options.camera);
|
|
323
|
+
node(options.model);
|
|
324
|
+
if (!nodes.has(options.low) || !nodes.has(options.high))
|
|
325
|
+
reject();
|
|
326
|
+
if (options.camera.constructor !== THREE.PerspectiveCamera)
|
|
327
|
+
reject();
|
|
328
|
+
if (options.additionalScenes) {
|
|
329
|
+
sequence(() => options.additionalScenes);
|
|
330
|
+
for (const scene of options.additionalScenes)
|
|
331
|
+
sceneSnapshot(scene);
|
|
332
|
+
}
|
|
333
|
+
if (options.additionalCameras) {
|
|
334
|
+
sequence(() => options.additionalCameras);
|
|
335
|
+
for (const camera of options.additionalCameras)
|
|
336
|
+
cameraSnapshot(camera);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
catch {
|
|
340
|
+
eligible = false;
|
|
341
|
+
}
|
|
342
|
+
if (!eligible) {
|
|
343
|
+
dispose();
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
return { isValid() {
|
|
347
|
+
if (disposed || invalid)
|
|
348
|
+
return false;
|
|
349
|
+
try {
|
|
350
|
+
for (const check of checks)
|
|
351
|
+
if (!check()) {
|
|
352
|
+
invalid = true;
|
|
353
|
+
return false;
|
|
354
|
+
}
|
|
355
|
+
return true;
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
invalid = true;
|
|
359
|
+
return false;
|
|
360
|
+
}
|
|
361
|
+
}, dispose };
|
|
362
|
+
}
|
|
363
|
+
//# sourceMappingURL=sceneEndpointEligibility.js.map
|
|
@@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B;YAAE,MAAM,EAAE,CAAC;QACrE,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAiB,CAAC,CAAC;YAAC,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,gBAAgB;gBAAE,aAAa,CAAC,KAAK,CAAC,CAAC;QAAC,CAAC;QAChJ,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAkB,CAAC,CAAC;YAAC,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,iBAAiB;gBAAE,cAAc,CAAC,MAAM,CAAC,CAAC;QAAC,CAAC;IACvJ,CAAC;IAAC,MAAM,CAAC;QAAC,QAAQ,GAAG,KAAK,CAAC;IAAC,CAAC;IAC7B,IAAI,CAAC,QAAQ,EAAE,CAAC;QAAC,OAAO,EAAE,CAAC;QAAC,OAAO;IAAC,CAAC;IACrC,OAAO,EAAE,OAAO;YACf,IAAI,QAAQ,IAAI,OAAO;gBAAE,OAAO,KAAK,CAAC;YACtC,IAAI,CAAC;gBACJ,KAAK,MAAM,KAAK,IAAI,MAAM;oBAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;wBAAC,OAAO,GAAG,IAAI,CAAC;wBAAC,OAAO,KAAK,CAAC;oBAAC,CAAC;gBAC3E,OAAO,IAAI,CAAC;YACb,CAAC;YAAC,MAAM,CAAC;gBAAC,OAAO,GAAG,IAAI,CAAC;gBAAC,OAAO,KAAK,CAAC;YAAC,CAAC;QAC1C,CAAC,EAAE,OAAO,EAAE,CAAC;AACd,CAAC","sourcesContent":["import * as THREE from 'three/webgpu';\n\nexport interface SceneEndpointGuard {\n\t/** Checks recorded values only: no scene traversal, matrix update or allocation. */\n\tisValid(): boolean;\n\tdispose(): void;\n}\n\n/** A narrow, static standard-material scene. Stage owns binding/size/input eligibility;\n * Refinement owns target-write epochs and must recheck them after its GPU fence.\n */\nexport function createSceneEndpointGuard(options: {\n\tscene: THREE.Scene;\n\tcamera: THREE.Camera;\n\tmodel: THREE.Object3D;\n\tlow: THREE.Object3D;\n\thigh: THREE.Object3D;\n\thighEnvironment?: THREE.Texture;\n\tadditionalScenes?: readonly THREE.Scene[];\n\tadditionalCameras?: readonly THREE.Camera[];\n}): SceneEndpointGuard | undefined {\n\tconst checks: (() => boolean)[] = [], cleanup: (() => void)[] = [];\n\tconst nodes = new Set<THREE.Object3D>(), resources = new Set<object>();\n\tlet lowRoot = options.low;\n\twhile (lowRoot.parent && lowRoot.parent !== options.model) lowRoot = lowRoot.parent;\n\tlet eligible = true, invalid = false, disposed = false;\n\tconst reject = () => { eligible = false; };\n\tconst physicalRange = (value: unknown, maximum = Infinity) => {\n\t\tif (value !== undefined && (typeof value !== 'number' || !Number.isFinite(value) || value < 0 || value > maximum)) reject();\n\t};\n\tconst invalidate = () => { invalid = true; };\n\tconst dispose = () => {\n\t\tif (disposed) return;\n\t\tdisposed = true;\n\t\tfor (const release of cleanup) release();\n\t\tcleanup.length = 0;\n\t};\n\tfunction watch(resource: THREE.Material | THREE.Texture | THREE.BufferGeometry) {\n\t\tresource.addEventListener('dispose', invalidate);\n\t\tcleanup.push(() => resource.removeEventListener('dispose', invalidate));\n\t}\n\tfunction scalar(read: () => unknown) {\n\t\tconst value = read();\n\t\tif (typeof value === 'number' && !Number.isFinite(value) && value !== Infinity) reject();\n\t\tchecks.push(() => read() === value);\n\t}\n\tfunction sequence<T>(read: () => readonly T[]) {\n\t\tconst values = [...read()];\n\t\tchecks.push(() => {\n\t\t\tconst current = read();\n\t\t\tif (current.length !== values.length) return false;\n\t\t\tfor (let i = 0; i < values.length; i++) if (current[i] !== values[i]) return false;\n\t\t\treturn true;\n\t\t});\n\t}\n\tfunction keys(object: Record<string, unknown>, ignored = new Set<string>()) {\n\t\tconst names = Object.keys(object).filter(name => !ignored.has(name));\n\t\tconst expected = new Set(names);\n\t\tchecks.push(() => {\n\t\t\tlet count = 0;\n\t\t\tfor (const name in object) if (Object.hasOwn(object, name) && !ignored.has(name)) {\n\t\t\t\tif (!expected.has(name)) return false;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\treturn count === names.length;\n\t\t});\n\t\treturn names;\n\t}\n\tfunction value(read: () => unknown, environmentTexture = false) {\n\t\tconst original = read();\n\t\tif (original === null || typeof original !== 'object') {\n\t\t\tif (typeof original === 'function') reject();\n\t\t\telse scalar(read);\n\t\t\treturn;\n\t\t}\n\t\tchecks.push(() => read() === original);\n\t\tif (original instanceof THREE.Texture) { texture(original, environmentTexture); return; }\n\t\tif (original instanceof THREE.Color) {\n\t\t\t// Negative radiance can cross NodeMaterial's outgoing-light clamp as\n\t\t\t// the background changes; static values alone do not prove affinity.\n\t\t\tphysicalRange(original.r); physicalRange(original.g); physicalRange(original.b);\n\t\t\tconst copy = original.clone(); checks.push(() => original.equals(copy)); return;\n\t\t}\n\t\tif (original instanceof THREE.Vector2 || original instanceof THREE.Vector3 || original instanceof THREE.Vector4 ||\n\t\t\toriginal instanceof THREE.Quaternion || original instanceof THREE.Euler || original instanceof THREE.Matrix3 ||\n\t\t\toriginal instanceof THREE.Matrix4 || original instanceof THREE.Plane || original instanceof THREE.Box3 || original instanceof THREE.Sphere) {\n\t\t\tconst copy = original.clone();\n\t\t\tchecks.push(() => original.equals(copy as never)); return;\n\t\t}\n\t\tif (Array.isArray(original)) {\n\t\t\tsequence(() => original);\n\t\t\tfor (let i = 0; i < original.length; i++) value(() => original[i]);\n\t\t\treturn;\n\t\t}\n\t\tif (Object.getPrototypeOf(original) !== Object.prototype && Object.getPrototypeOf(original) !== null) { reject(); return; }\n\t\tconst record = original as Record<string, unknown>;\n\t\tfor (const name of keys(record)) value(() => record[name]);\n\t}\n\tfunction texture(resource: THREE.Texture, environment = false) {\n\t\tconst dynamic = resource as THREE.Texture & { isVideoTexture?: boolean; isVideoFrameTexture?: boolean;\n\t\t\tisCanvasTexture?: boolean; isFramebufferTexture?: boolean; isDepthTexture?: boolean; isRenderTargetTexture?: boolean };\n\t\tconst image = resource.source?.data;\n\t\t// Arbitrary floating/signed material maps have no nonnegative-radiance\n\t\t// contract. Do not scan their pixel arrays on the Hold path. Prepared\n\t\t// runtime environment/background resources are a separate owner contract.\n\t\tif (!environment && [THREE.FloatType, THREE.HalfFloatType, THREE.ByteType, THREE.ShortType, THREE.IntType].some(type => type === resource.type)) reject();\n\t\tconst changingImage = (data: unknown): boolean => Boolean(data && typeof data === 'object' &&\n\t\t\t('getContext' in data || 'requestVideoFrameCallback' in data ||\n\t\t\t('tagName' in data && /^(VIDEO|CANVAS)$/i.test(String(data.tagName)))));\n\t\tif (dynamic.isVideoTexture || dynamic.isVideoFrameTexture || dynamic.isCanvasTexture || dynamic.isFramebufferTexture ||\n\t\t\tdynamic.isDepthTexture || (dynamic.isRenderTargetTexture && !environment) || resource.onUpdate ||\n\t\t\tchangingImage(image) || (Array.isArray(image) && image.some(changingImage))) { reject(); return; }\n\t\tif (resources.has(resource)) return;\n\t\tresources.add(resource); watch(resource);\n\t\tfor (const name of ['version', 'mapping', 'channel', 'wrapS', 'wrapT', 'wrapR', 'magFilter', 'minFilter',\n\t\t\t'anisotropy', 'format', 'internalFormat', 'type', 'colorSpace', 'generateMipmaps', 'premultiplyAlpha',\n\t\t\t'flipY', 'unpackAlignment', 'compareFunction', 'rotation', 'matrixAutoUpdate', 'onUpdate'] as const) {\n\t\t\tconst record = resource as unknown as Record<string, unknown>; scalar(() => record[name]);\n\t\t}\n\t\tvalue(() => resource.offset); value(() => resource.repeat); value(() => resource.center); value(() => resource.matrix);\n\t\tscalar(() => resource.source); scalar(() => resource.source.version); scalar(() => resource.source.data);\n\t\tif (Array.isArray(image)) sequence(() => resource.source.data as unknown[]);\n\t\tfor (const data of Array.isArray(image) ? image : [image]) if (data && typeof data === 'object') {\n\t\t\tfor (const name of ['width', 'height', 'depth', 'data']) scalar(() => data[name]);\n\t\t}\n\t}\n\tfunction material(resource: THREE.Material) {\n\t\tif (![THREE.MeshBasicMaterial, THREE.MeshStandardMaterial, THREE.MeshPhysicalMaterial].some(Type => resource.constructor === Type) ||\n\t\t\t(resource.blending !== THREE.NormalBlending && resource.blending !== THREE.NoBlending) ||\n\t\t\tresource.onBeforeRender !== THREE.Material.prototype.onBeforeRender ||\n\t\t\tresource.onBeforeCompile !== THREE.Material.prototype.onBeforeCompile ||\n\t\t\tresource.customProgramCacheKey !== THREE.Material.prototype.customProgramCacheKey) { reject(); return; }\n\t\tif (resources.has(resource)) return;\n\t\tresources.add(resource); watch(resource);\n\t\tscalar(() => resource.constructor);\n\t\tconst record = resource as unknown as Record<string, unknown>;\n\t\tfor (const name of ['emissiveIntensity', 'envMapIntensity', 'lightMapIntensity']) physicalRange(record[name]);\n\t\tfor (const name of ['opacity', 'aoMapIntensity', 'transmission', 'metalness', 'roughness', 'clearcoat',\n\t\t\t'clearcoatRoughness', 'sheen', 'sheenRoughness', 'iridescence', 'specularIntensity', 'reflectivity']) physicalRange(record[name], 1);\n\t\t// Authored vertex colors can contain negative floats. Keep those uncommon\n\t\t// scenes live instead of introducing a large vertex-array validation pass.\n\t\tif (resource.vertexColors) reject();\n\t\tfor (const name of keys(record, new Set(['_listeners', 'userData']))) value(() => record[name]);\n\t\tchecks.push(() => resource.onBeforeRender === THREE.Material.prototype.onBeforeRender &&\n\t\t\tresource.onBeforeCompile === THREE.Material.prototype.onBeforeCompile &&\n\t\t\tresource.customProgramCacheKey === THREE.Material.prototype.customProgramCacheKey);\n\t}\n\tfunction attribute(resource: THREE.BufferAttribute | THREE.InterleavedBufferAttribute | null) {\n\t\tif (!resource) return;\n\t\tif (!(resource instanceof THREE.BufferAttribute) && !(resource instanceof THREE.InterleavedBufferAttribute)) { reject(); return; }\n\t\tconst data = resource instanceof THREE.InterleavedBufferAttribute ? resource.data : resource;\n\t\tif (data.usage !== THREE.StaticDrawUsage) { reject(); return; }\n\t\tfor (const name of ['version', 'array', 'count', 'usage', 'stride'] as const) {\n\t\t\tconst record = data as unknown as Record<string, unknown>; scalar(() => record[name]);\n\t\t}\n\t\tfor (const name of ['itemSize', 'normalized', 'offset', 'gpuType', 'data'] as const) {\n\t\t\tconst record = resource as unknown as Record<string, unknown>; scalar(() => record[name]);\n\t\t}\n\t}\n\tfunction geometry(resource: THREE.BufferGeometry) {\n\t\tif (resources.has(resource)) return;\n\t\tresources.add(resource); watch(resource);\n\t\tif ((resource as THREE.InstancedBufferGeometry).isInstancedBufferGeometry || Object.keys(resource.morphAttributes).length) reject();\n\t\tscalar(() => resource.index); attribute(resource.index);\n\t\tscalar(() => resource.attributes);\n\t\tfor (const name of keys(resource.attributes)) {\n\t\t\tscalar(() => resource.attributes[name]); attribute(resource.attributes[name]);\n\t\t}\n\t\tchecks.push(() => { for (const _name in resource.morphAttributes) return false; return true; });\n\t\tvalue(() => resource.drawRange); value(() => resource.groups);\n\t\tvalue(() => resource.boundingBox); value(() => resource.boundingSphere);\n\t}\n\tfunction node(object: THREE.Object3D) {\n\t\tif (nodes.has(object)) return;\n\t\tnodes.add(object);\n\t\tconst supported = [THREE.Scene, THREE.Group, THREE.Object3D, THREE.Mesh, THREE.PerspectiveCamera, THREE.OrthographicCamera,\n\t\t\tTHREE.AmbientLight, THREE.HemisphereLight, THREE.DirectionalLight, THREE.PointLight, THREE.SpotLight, THREE.RectAreaLight];\n\t\tif (!supported.some(Type => object.constructor === Type) || object.animations.length || object.castShadow ||\n\t\t\tobject.onBeforeRender !== THREE.Object3D.prototype.onBeforeRender || object.onAfterRender !== THREE.Object3D.prototype.onAfterRender ||\n\t\t\tobject.onBeforeShadow !== THREE.Object3D.prototype.onBeforeShadow || object.onAfterShadow !== THREE.Object3D.prototype.onAfterShadow) { reject(); return; }\n\t\tchecks.push(() => object.animations.length === 0 && object.onBeforeRender === THREE.Object3D.prototype.onBeforeRender &&\n\t\t\tobject.onAfterRender === THREE.Object3D.prototype.onAfterRender && object.onBeforeShadow === THREE.Object3D.prototype.onBeforeShadow &&\n\t\t\tobject.onAfterShadow === THREE.Object3D.prototype.onAfterShadow);\n\t\tscalar(() => object.constructor);\n\t\tif (object !== lowRoot && object !== options.high) scalar(() => object.visible);\n\t\tfor (const name of ['parent', 'matrixAutoUpdate', 'matrixWorldAutoUpdate', 'frustumCulled', 'renderOrder', 'castShadow', 'receiveShadow'] as const)\n\t\t\tscalar(() => object[name]);\n\t\tscalar(() => object.layers.mask);\n\t\tvalue(() => object.position); value(() => object.quaternion); value(() => object.rotation); value(() => object.scale);\n\t\tvalue(() => object.matrix); value(() => object.matrixWorld);\n\t\tsequence(() => object.children);\n\t\tif (object instanceof THREE.Mesh) {\n\t\t\tif (object.morphTargetInfluences?.length) reject();\n\t\t\tscalar(() => object.morphTargetInfluences);\n\t\t\tscalar(() => object.geometry); geometry(object.geometry);\n\t\t\tscalar(() => object.material);\n\t\t\tif (Array.isArray(object.material)) { sequence(() => object.material as THREE.Material[]); object.material.forEach(material); }\n\t\t\telse material(object.material);\n\t\t}\n\t\tif (object instanceof THREE.Light) {\n\t\t\tconst light = object as unknown as Record<string, unknown>;\n\t\t\tphysicalRange(object.intensity);\n\t\t\tfor (const name of ['color', 'groundColor', 'intensity', 'distance', 'decay', 'angle', 'penumbra', 'width', 'height']) value(() => light[name]);\n\t\t\tif ('target' in object) { scalar(() => object.target); node(object.target as THREE.Object3D); }\n\t\t}\n\t\tfor (const child of object.children) node(child);\n\t}\n\tfunction cameraSnapshot(camera: THREE.Camera) {\n\t\tnode(camera);\n\t\tif (camera.constructor !== THREE.PerspectiveCamera && camera.constructor !== THREE.OrthographicCamera) reject();\n\t\tvalue(() => camera.projectionMatrix); value(() => camera.projectionMatrixInverse);\n\t\tvalue(() => camera.matrixWorldInverse);\n\t\tconst record = camera as unknown as Record<string, unknown>;\n\t\tfor (const name of ['near', 'far', 'fov', 'aspect', 'zoom', 'focus', 'filmGauge', 'filmOffset', 'coordinateSystem', 'view',\n\t\t\t'left', 'right', 'top', 'bottom']) value(() => record[name]);\n\t}\n\tfunction sceneSnapshot(scene: THREE.Scene, allowHigh = false) {\n\t\tnode(scene);\n\t\tif (scene.overrideMaterial !== null) reject();\n\t\tphysicalRange(scene.backgroundIntensity); physicalRange(scene.environmentIntensity);\n\t\tconst lowEnvironment = scene.environment, highEnvironment = allowHigh ? options.highEnvironment : undefined;\n\t\tchecks.push(() => scene.environment === lowEnvironment || Boolean(highEnvironment && scene.environment === highEnvironment));\n\t\tif (lowEnvironment) texture(lowEnvironment, true);\n\t\tif (highEnvironment) texture(highEnvironment, true);\n\t\t// Prepared environment targets are stable renderer-owned resources; arbitrary\n\t\t// render-target material maps remain ineligible above.\n\t\tvalue(() => scene.background, true);\n\t\tfor (const name of ['backgroundBlurriness', 'backgroundIntensity', 'backgroundRotation',\n\t\t\t'environmentIntensity', 'environmentRotation', 'overrideMaterial'] as const) value(() => scene[name]);\n\t\tconst fog = scene.fog;\n\t\tscalar(() => scene.fog);\n\t\tif (fog) {\n\t\t\tif (fog.constructor !== THREE.Fog && fog.constructor !== THREE.FogExp2) reject();\n\t\t\tvalue(() => fog.color);\n\t\t\tfor (const name of ['near', 'far', 'density']) scalar(() => (fog as unknown as Record<string, unknown>)[name]);\n\t\t}\n\t}\n\ttry {\n\t\tif (lowRoot === options.high || lowRoot.parent !== options.model || options.high.parent !== options.model || options.model.children.length !== 2 ||\n\t\t\toptions.scene.overrideMaterial !== null) reject();\n\t\tsceneSnapshot(options.scene, true); cameraSnapshot(options.camera); node(options.model);\n\t\tif (!nodes.has(options.low) || !nodes.has(options.high)) reject();\n\t\tif (options.camera.constructor !== THREE.PerspectiveCamera) reject();\n\t\tif (options.additionalScenes) { sequence(() => options.additionalScenes!); for (const scene of options.additionalScenes) sceneSnapshot(scene); }\n\t\tif (options.additionalCameras) { sequence(() => options.additionalCameras!); for (const camera of options.additionalCameras) cameraSnapshot(camera); }\n\t} catch { eligible = false; }\n\tif (!eligible) { dispose(); return; }\n\treturn { isValid() {\n\t\tif (disposed || invalid) return false;\n\t\ttry {\n\t\t\tfor (const check of checks) if (!check()) { invalid = true; return false; }\n\t\t\treturn true;\n\t\t} catch { invalid = true; return false; }\n\t}, dispose };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stageDom.d.ts","sourceRoot":"","sources":["../../src/stage/stageDom.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,WAOzD;AAED,yFAAyF;AACzF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;;;EAKhG;AAED,2FAA2F;AAC3F,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,EACxD,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,MAAM,SAAI,
|
|
1
|
+
{"version":3,"file":"stageDom.d.ts","sourceRoot":"","sources":["../../src/stage/stageDom.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,WAOzD;AAED,yFAAyF;AACzF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;;;EAKhG;AAED,2FAA2F;AAC3F,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,EACxD,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,MAAM,SAAI,WAaV;AAED,0EAA0E;AAC1E,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAE5H"}
|
package/dist/stage/stageDom.js
CHANGED
|
@@ -14,7 +14,12 @@ export function getStagePositionFromRect(rect) {
|
|
|
14
14
|
/** Returns whether a rectangle intersects the viewport plus an optional preload margin. */
|
|
15
15
|
export function isViewportRectVisible(rect, viewportWidth, viewportHeight, margin = 0) {
|
|
16
16
|
const safeMargin = Math.max(Number.isFinite(margin) ? margin : 0, 0);
|
|
17
|
-
return (
|
|
17
|
+
return (
|
|
18
|
+
// Hidden source frames have no area. Their runtime surfaces are at least
|
|
19
|
+
// 1px for projection arithmetic, but that must not make them renderable.
|
|
20
|
+
rect.right > rect.left &&
|
|
21
|
+
rect.bottom > rect.top &&
|
|
22
|
+
rect.right >= -safeMargin &&
|
|
18
23
|
rect.left <= viewportWidth + safeMargin &&
|
|
19
24
|
rect.bottom >= -safeMargin &&
|
|
20
25
|
rect.top <= viewportHeight + safeMargin);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stageDom.js","sourceRoot":"","sources":["../../src/stage/stageDom.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,MAAM,UAAU,eAAe,CAAC,MAA0B;IACzD,IAAI,CAAC,CAAC,MAAM,YAAY,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAC/C,OAAO,OAAO,CACb,MAAM,CAAC,OAAO,CACb,sIAAsI,CACtI,CACD,CAAC;AACH,CAAC;AAED,yFAAyF;AACzF,MAAM,UAAU,wBAAwB,CAAC,IAAwD;IAChG,OAAO;QACN,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG,GAAG,MAAM,CAAC,UAAU,GAAG,GAAG;QACzD,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;KAC5D,CAAC;AACH,CAAC;AAED,2FAA2F;AAC3F,MAA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AAG,IAAI,CAAC,GAAG;QACtB,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU;QACzB,IAAI,CAAC,IAAI,IAAI,aAAa,GAAG,UAAU;QACvC,IAAI,CAAC,MAAM,IAAI,CAAC,UAAU;QAC1B,IAAI,CAAC,GAAG,IAAI,cAAc,GAAG,UAAU,CACvC,CAAC;AACH,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,iBAAiB,CAAC,WAAmB,EAAE,MAAc,EAAE,cAAsB,EAAE,KAAa,EAAE,OAAe;IAC5H,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;AAC5F,CAAC","sourcesContent":["/** Returns true when a pointer event belongs to interactive stage UI instead of the model. */\nexport function isStageUiTarget(target: EventTarget | null) {\n\tif (!(target instanceof Element)) return false;\n\treturn Boolean(\n\t\ttarget.closest(\n\t\t\t'[data-stage-panel-content], [data-stage-panel-css-surface], [data-stage-panel-fallback], button, a, input, textarea, select, summary'\n\t\t)\n\t);\n}\n\n/** Converts a DOM rectangle center into the stage's centered, y-up coordinate system. */\nexport function getStagePositionFromRect(rect: Pick<DOMRect, 'height' | 'left' | 'top' | 'width'>) {\n\treturn {\n\t\tx: rect.left + rect.width * 0.5 - window.innerWidth * 0.5,\n\t\ty: window.innerHeight * 0.5 - (rect.top + rect.height * 0.5)\n\t};\n}\n\n/** Returns whether a rectangle intersects the viewport plus an optional preload margin. */\nexport function isViewportRectVisible(\n\trect: Pick<DOMRect, 'bottom' | 'left' | 'right' | 'top'>,\n\tviewportWidth: number,\n\tviewportHeight: number,\n\tmargin = 0\n) {\n\tconst safeMargin = Math.max(Number.isFinite(margin) ? margin : 0, 0);\n\treturn (\n\t\t// Hidden source frames have no area. Their runtime surfaces are at least\n\t\t// 1px for projection arithmetic, but that must not make them renderable.\n\t\trect.right > rect.left &&\n\t\trect.bottom > rect.top &&\n\t\trect.right >= -safeMargin &&\n\t\trect.left <= viewportWidth + safeMargin &&\n\t\trect.bottom >= -safeMargin &&\n\t\trect.top <= viewportHeight + safeMargin\n\t);\n}\n\n/** Resolves a sticky panel inside its document-space containing block. */\nexport function getStickyPanelTop(documentTop: number, height: number, boundaryBottom: number, inset: number, scrollY: number) {\n\treturn Math.min(Math.max(documentTop - scrollY, inset), boundaryBottom - scrollY - height);\n}\n"]}
|
|
@@ -151,19 +151,19 @@ export declare function getCameraFitDistance(bounds: THREE.Box3, viewDirection:
|
|
|
151
151
|
/** Returns the eight corners of an axis-aligned bounding box. */
|
|
152
152
|
export declare function getBoxCorners(bounds: THREE.Box3): THREE.Vector3[];
|
|
153
153
|
/** Computes the camera-facing travel used to clear panels during close-up zoom. */
|
|
154
|
-
export declare function getPanelFocusOffset(options: Required<LiquidGlassPanelOptions>, focus: number, viewportWidth: number, viewportHeight: number): {
|
|
154
|
+
export declare function getPanelFocusOffset(options: Pick<Required<LiquidGlassPanelOptions>, 'width' | 'height' | 'position'>, focus: number, viewportWidth: number, viewportHeight: number): {
|
|
155
155
|
x: number;
|
|
156
156
|
y: number;
|
|
157
157
|
z: number;
|
|
158
158
|
};
|
|
159
159
|
/** Chooses the least disruptive edge toward which a focused panel should travel. */
|
|
160
|
-
export declare function getPanelFocusDirection(options: Required<LiquidGlassPanelOptions>, normalizedX: number, normalizedY: number): THREE.Vector2;
|
|
160
|
+
export declare function getPanelFocusDirection(options: Pick<Required<LiquidGlassPanelOptions>, 'width' | 'height' | 'position'>, normalizedX: number, normalizedY: number): THREE.Vector2;
|
|
161
161
|
/** Shared, eased progress for panel motion, blur, opacity and corner controls. */
|
|
162
162
|
export declare function getPanelFocusProgress(focus: number): number;
|
|
163
163
|
/** Returns panel opacity at a normalized stage UI focus level. */
|
|
164
164
|
export declare function getPanelFocusOpacity(focus: number): number;
|
|
165
165
|
/** Returns CSS content blur at a normalized stage focus level. */
|
|
166
|
-
export declare function getPanelFocusBlur(focus: number, options: Required<LiquidGlassPanelOptions>): number;
|
|
166
|
+
export declare function getPanelFocusBlur(focus: number, options: Pick<Required<LiquidGlassPanelOptions>, 'width' | 'height'>): number;
|
|
167
167
|
/**
|
|
168
168
|
* Reduces only the rotation axis amplified by an elongated panel.
|
|
169
169
|
* Square panels keep the full response on both axes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stageMath.d.ts","sourceRoot":"","sources":["../../src/stage/stageMath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAmBrE,0FAA0F;AAC1F,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,iBAgB3E;AAED,+FAA+F;AAC/F,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,oBAQ5E;AAED,yEAAyE;AACzE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAIrE;AAED,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,UAMjD;AAED,4EAA4E;AAC5E,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAE1E;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,UAE5C;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,UAE5C;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAGtE;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC5C,YAAY,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,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