@spatial-elements/core 1.0.0-beta.6 → 1.0.0-beta.7
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 +12 -0
- package/dist/catalog/CarouselDeviceCamera.d.ts.map +1 -0
- package/dist/catalog/CarouselDeviceCamera.js +44 -0
- package/dist/catalog/CarouselDeviceCamera.js.map +1 -0
- package/dist/catalog/CatalogSpatialElementLayer.d.ts +15 -0
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.js +148 -72
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
- package/dist/catalog/CatalogTransition.d.ts.map +1 -1
- package/dist/catalog/CatalogTransition.js +18 -5
- package/dist/catalog/CatalogTransition.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 +15 -0
- package/dist/catalog/listDeviceOrientation.d.ts.map +1 -0
- package/dist/catalog/listDeviceOrientation.js +245 -0
- package/dist/catalog/listDeviceOrientation.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/MinimapController.d.ts +1 -0
- package/dist/stage/MinimapController.d.ts.map +1 -1
- package/dist/stage/MinimapController.js +7 -0
- package/dist/stage/MinimapController.js.map +1 -1
- package/dist/stage/PanelPresentationController.d.ts.map +1 -1
- package/dist/stage/PanelPresentationController.js +14 -9
- package/dist/stage/PanelPresentationController.js.map +1 -1
- package/dist/stage/StageExperience.d.ts +16 -0
- package/dist/stage/StageExperience.d.ts.map +1 -1
- package/dist/stage/StageExperience.js +42 -4
- package/dist/stage/StageExperience.js.map +1 -1
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
- package/dist/stage/StageRenderPipeline.js +3 -1
- package/dist/stage/StageRenderPipeline.js.map +1 -1
- package/dist/stage/stageTypes.d.ts +1 -0
- package/dist/stage/stageTypes.d.ts.map +1 -1
- package/dist/stage/stageTypes.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageRenderPipeline.d.ts","sourceRoot":"","sources":["../../src/stage/StageRenderPipeline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAW5E,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAGN,KAAK,uBAAuB,EAC5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAElF,UAAU,gBAAgB;IACzB,mFAAmF;IACnF,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IACzC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC;CAC3B;AACD,UAA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AuBlD"}
|
|
@@ -462,7 +462,9 @@ export class StageRenderPipeline {
|
|
|
462
462
|
resizeCanvasTarget(target, width, height, pixelRatio) {
|
|
463
463
|
this.ports.renderer.setCanvasTarget(target);
|
|
464
464
|
this.ports.renderer.setPixelRatio(pixelRatio);
|
|
465
|
-
|
|
465
|
+
// The CSS display rectangle must match the camera/buffer even while mobile
|
|
466
|
+
// browser chrome animates. 100vh can represent a different viewport height.
|
|
467
|
+
this.ports.renderer.setSize(width, height, true);
|
|
466
468
|
}
|
|
467
469
|
createPanelBlurCapture(sceneTexture, blur, renderScale) {
|
|
468
470
|
const target = new THREE.RenderTarget(1, 1, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageRenderPipeline.js","sourceRoot":"","sources":["../../src/stage/StageRenderPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIvE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EACN,EAAE,EACF,EAAE,EACF,GAAG,EACH,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,EAAE,EACF,IAAI,EACJ,MAAM,WAAW,CAAC;AAEnB,OAAO,EACN,sBAAsB,EACtB,2BAA2B,EAE3B,MAAM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ACxD,IAAI,OAAO;oBAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;gBAChF,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBAC1B,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC/B,CAAC;YACD,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC1B,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;IACJ,CAAC;CACD","sourcesContent":["import { createOutlineOpacity } from './interactionOutline.js';\nimport { getRefinementSize } from './SpatialElementRefinement.js';\nimport { getMinimapMeasurementMode } from './minimapMeasurement.js';\nimport { parseRenderMeasurement } from './renderMeasurement.js';\nimport type { PreparedHigh } from '../catalog/CatalogPreparation.js';\nimport { gaussianTargets } from './renderTargetInventory.js';\nimport { withRendererState, withVisibility } from './rendererState.js';\n\nimport type { StagePanelRuntime } from './StagePanelRuntime.js';\n\nimport * as THREE from 'three/webgpu';\n\nimport { CatalogSpatialElementLayer } from '../catalog/CatalogSpatialElementLayer.js';\nimport { SpatialGeometryCapture } from '../catalog/SpatialGeometryCapture.js';\n\nimport { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';\nimport {\n\tFn,\n\tIf,\n\tmix,\n\tpremultiplyAlpha,\n\ttexture,\n\tuniform,\n\tuv,\n\tvec4\n} from 'three/tsl';\nimport type { Mesh, Object3D } from 'three';\nimport {\n\tinverseAcesToneMapping,\n\tSTAGE_TONE_MAPPING_EXPOSURE,\n\ttype LiquidGlassPanelOptions\n} from './LiquidGlassPanel.js';\n\nimport type { StageMinimapState } from './minimap/MinimapState.js';\nimport { isMesh } from './stageSceneUtils.js';\nimport type { StageInteractionTheme, StageRenderSettings } from './stageTypes.js';\nimport { getStageRenderPixelRatio, resolveStageRenderSettings } from './renderSettings.js';\ninterface PanelBlurCapture {\n\t/** Intermediate pixels per CSS pixel; independent of output DPR/scroll quality. */\n\tresolutionScale: number;\n\teffect?: ReturnType<typeof gaussianBlur>;\n\tmaterial: THREE.NodeMaterial;\n\tquad: THREE.QuadMesh;\n\ttarget: THREE.RenderTarget;\n}\ninterface StageRenderTargetSet {\n\tscale: number;\n\tsceneCapture: THREE.RenderTarget;\n\tpanelBlurCaptures: Map<number, PanelBlurCapture>;\n}\nconst SCROLL_RENDER_SCALE = 0.82;\n\nexport interface StageRenderPorts {\n\tpageBackground?: string;\n\trenderSettings?: StageRenderSettings;\n\trenderer: THREE.WebGPURenderer;\n\tcontainer: HTMLElement;\n\tbackgroundCanvas: HTMLCanvasElement;\n\tbackgroundCanvasTarget: THREE.CanvasTarget;\n\tscene: THREE.Scene;\n\tbackgroundScene: THREE.Scene;\n\ttintScene: THREE.Scene;\n\tpanelScene: THREE.Scene;\n\tcamera: THREE.PerspectiveCamera;\n\tpanelCamera: THREE.PerspectiveCamera;\n\ttintCamera: THREE.OrthographicCamera;\n\tpanelRuntimes(): readonly StagePanelRuntime[];\n\tminimaps(): ReadonlyMap<number, StageMinimapState>;\n\tminimapScene(): THREE.Scene;\n\tcatalogLayer(): Pick<CatalogSpatialElementLayer, 'hasCarousel' | 'renderRear' | 'draw'> | undefined;\n\tspatialCapture(): SpatialGeometryCapture | undefined;\n\texitingMinimaps(): readonly { capture: SpatialGeometryCapture; minimap: StageMinimapState }[];\n\tcontentSecondaries(): readonly { capture: SpatialGeometryCapture }[];\n\tfallbackPanelOptions(): readonly LiquidGlassPanelOptions[];\n\tinteractionTheme(): StageInteractionTheme;\n\tframe(): Readonly<{\n\t\toutgoingBackground: boolean;\n\t\tcatalogDockTarget: boolean;\n\t\tcatalogHandoff: boolean;\n\t\tcatalogMotionComplete: boolean;\n\t\tstageViewportVisible: boolean;\n\t\tmodelHover: boolean;\n\t\tmodelInteractionActive: boolean;\n\t\tcatalog: boolean;\n\t\tpageModelReady: boolean;\n\t\tbackgroundReveal: number;\n\t}>;\n\trenderStage(): void;\n\trenderMinimapBlur(minimap: StageMinimapState): void;\n\trenderMinimapPanelCapture(minimap: StageMinimapState): void;\n\tgetPanelTransitionOpacity(panel?: StagePanelRuntime): number;\n\tisInteractionMesh(mesh: Mesh): boolean;\n}\n\n/** Owns GPU output bands, passes and target lifetimes; never schedules frames or navigation. */\nexport class StageRenderPipeline {\n\tprivate readonly measurementMode = getMinimapMeasurementMode();\n\tprivate readonly renderMeasurement = parseRenderMeasurement(\n\t\ttypeof window === 'undefined' ? '' : (window.location?.search ?? '')\n\t);\n\tprivate readonly fuseOutline = ![\n\t\t'halo-separate',\n\t\t'halo-mask-only',\n\t\t'halo-frozen-mask',\n\t\t'halo-half-mask'\n\t].includes(this.renderMeasurement);\n\tprivate readonly measuredBackdropSeeds = new WeakMap<THREE.RenderTarget, string>();\n\tprivate readonly preparedZoomViews = new WeakSet<StageMinimapState>();\n\tprivate disposed = false;\n\tprivate renderSettings = resolveStageRenderSettings();\n\t/** Retain the last DETAIL background while its geometry is owned by a transition. */\n\tfreezeBackground() {\n\t\tconst targets = this._activeRenderTargets;\n\t\tif (!targets) return false;\n\t\t// Never bake the old screen-space halo into the outgoing background snapshot.\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\twithRendererState(this.ports.renderer, () => {\n\t\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\t\tthis.ports.renderer.setRenderTarget(targets.sceneCapture);\n\t\t\tthis.renderStageContents();\n\t\t\tthis.renderStageDisplay();\n\t\t\tthis.renderBackgroundPanels();\n\t\t});\n\t\treturn true;\n\t}\n\tasync warmHigh(high: PreparedHigh, environment: THREE.Texture, drawLow: () => void) {\n\t\tconst scene = new THREE.Scene();\n\t\tscene.environment = environment;\n\t\tscene.environmentIntensity = 0.5;\n\t\tscene.add(high.pose);\n\t\tconst camera = new THREE.PerspectiveCamera(\n\t\t\t45,\n\t\t\twindow.innerWidth / window.innerHeight,\n\t\t\t0.01,\n\t\t\t100\n\t\t);\n\t\tcamera.position.z = 5;\n\t\tconst size = this.ports.renderer.getDrawingBufferSize(new THREE.Vector2());\n\t\tconst warmSize = getRefinementSize(size.x, size.y);\n\t\tconst target = new THREE.RenderTarget(warmSize.width, warmSize.height, {\n\t\t\ttype: THREE.HalfFloatType,\n\t\t\tsamples: 4\n\t\t});\n\t\tconst destination = this.ports.renderer.getRenderTarget();\n\t\tconst clear = this.ports.renderer.getClearColor(new THREE.Color());\n\t\tconst alpha = this.ports.renderer.getClearAlpha();\n\t\ttry {\n\t\t\tthis.ports.renderer.setRenderTarget(target);\n\t\t\tthis.ports.renderer.setClearColor(0, 0);\n\t\t\thigh.blend.render(\n\t\t\t\tthis.ports.renderer,\n\t\t\t\t(useHigh) => {\n\t\t\t\t\tthis.ports.renderer.clear();\n\t\t\t\t\tif (useHigh) this.ports.renderer.render(scene, camera);\n\t\t\t\t\telse drawLow();\n\t\t\t\t},\n\t\t\t\tfalse,\n\t\t\t\t0\n\t\t\t);\n\t\t} finally {\n\t\t\tthis.ports.renderer.setRenderTarget(destination);\n\t\t\tthis.ports.renderer.setClearColor(clear, alpha);\n\t\t\thigh.pose.removeFromParent();\n\t\t\ttarget.dispose();\n\t\t}\n\t\tconst device = (this.ports.renderer.backend as unknown as { device?: GPUDevice }).device;\n\t\tawait device?.queue.onSubmittedWorkDone();\n\t}\n\n\tgetRenderTargets() {\n\t\treturn [\n\t\t\t...(this.outlineMaskTarget ? [this.outlineMaskTarget] : []),\n\t\t\t...[this.fullQualityTargets, this.scrollQualityTargets].flatMap((set) =>\n\t\t\t\tset\n\t\t\t\t\t? [\n\t\t\t\t\t\t\tset.sceneCapture,\n\t\t\t\t\t\t\t...[...set.panelBlurCaptures.values()].flatMap((blur) => [\n\t\t\t\t\t\t\t\tblur.target,\n\t\t\t\t\t\t\t\t...gaussianTargets(blur.effect)\n\t\t\t\t\t\t\t])\n\t\t\t\t\t\t]\n\t\t\t\t\t: []\n\t\t\t)\n\t\t];\n\t}\n\tgetCanvasOutputs() {\n\t\treturn [\n\t\t\tthis.ports.backgroundCanvasTarget,\n\t\t\tthis.foregroundCanvasTarget,\n\t\t\tthis.carouselRearTarget\n\t\t].flatMap((target, index) => {\n\t\t\tif (!target) return [];\n\t\t\tconst size = target.getDrawingBufferSize(new THREE.Vector2());\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tband: ['background', 'foreground', 'carousel-rear'][index],\n\t\t\t\t\twidth: size.x,\n\t\t\t\t\theight: size.y,\n\t\t\t\t\tcolorAttachments: 1,\n\t\t\t\t\tdepthAttachments: 1\n\t\t\t\t}\n\t\t\t];\n\t\t});\n\t}\n\tconstructor(private readonly ports: StageRenderPorts) {\n\t\tthis.updateInteractionTheme();\n\t\tthis.setRenderSettings(ports.renderSettings);\n\t\tthis.setPageBackground(ports.pageBackground ?? '#ffffff');\n\t\tthis.backgroundCoverMaterial.fragmentNode = premultiplyAlpha(\n\t\t\tvec4(inverseAcesToneMapping(this.backgroundCoverColor), this.backgroundCoverOpacity)\n\t\t);\n\t\tthis.backgroundCoverMaterial.depthTest = this.backgroundCoverMaterial.depthWrite = false;\n\t\tthis.backgroundCoverMaterial.transparent =\n\t\t\tthis.backgroundCoverMaterial.premultipliedAlpha = true;\n\t\tthis.backgroundCoverMaterial.toneMapped = false;\n\t}\n\tprivate readonly backgroundCoverOpacity = uniform(0);\n\tprivate readonly backgroundCoverColor = uniform(new THREE.Vector3(1, 1, 1));\n\tsetPageBackground(value: string) {\n\t\tconst color = new THREE.Color(value);\n\t\tthis.backgroundCoverColor.value.set(color.r, color.g, color.b);\n\t}\n\tprivate readonly backgroundCoverMaterial = new THREE.NodeMaterial();\n\tprivate readonly backgroundCover = new THREE.QuadMesh(this.backgroundCoverMaterial);\n\tprivate readonly outlineMaskScene = new THREE.Scene();\n\tprivate readonly outlineColor = uniform(new THREE.Color());\n\tprivate readonly outlineStrength = uniform(1);\n\tprivate readonly outlineGlow = uniform(1);\n\tupdateInteractionTheme() {\n\t\tconst theme = this.ports.interactionTheme();\n\t\tthis.outlineColor.value.set(theme.outlineColor);\n\t\tthis.outlineStrength.value = theme.outlineOpacity;\n\t\tthis.outlineGlow.value = theme.outlineGlow;\n\t\tthis.resizeOutline(this.outlineWidth, this.outlineHeight);\n\t}\n\tprivate _minimapOverlayCapturePasses = 0;\n\tprivate _renderTargetSetCreations = 0;\n\tprivate _renderTargetSetResizes = 0;\n\tprivate _renderTargetSetWarmups = 0;\n\tprivate _stageModelRenderPasses = 0;\n\tprivate _panelBlurRenderPasses = 0;\n\tprivate _panelSceneRenderPasses = 0;\n\tprivate _minimapSceneRenderPasses = 0;\n\tprivate outlineMaskModel?: Object3D;\n\tprivate outlineMaskMaterial?: THREE.MeshBasicMaterial;\n\tprivate outlineCompositeMaterial?: THREE.MeshBasicNodeMaterial;\n\tprivate outlineQuad?: THREE.QuadMesh;\n\tprivate outlineMaskTarget?: THREE.RenderTarget;\n\tprivate outlineMaskValid = false;\n\tprivate readonly emptyOutlineMask = new THREE.DataTexture(new Uint8Array(4), 1, 1);\n\tprivate readonly displayOutlineMask = texture(this.emptyOutlineMask);\n\tprivate readonly displayOutlineOpacity = uniform(0);\n\tprivate outlineWidth = 1;\n\tprivate outlineHeight = 1;\n\tprivate outlineTexel = uniform(new THREE.Vector2(1, 1));\n\tprivate outlineGlowTexel = uniform(new THREE.Vector2(1, 1));\n\tprivate outlineOpacityScale = uniform(1);\n\tprivate fullQualityTargets?: StageRenderTargetSet;\n\tprivate scrollQualityTargets?: StageRenderTargetSet;\n\tprivate _activeRenderTargets?: StageRenderTargetSet;\n\tprivate stageDisplayMaterial?: THREE.NodeMaterial;\n\tprivate _stageDisplayQuad?: THREE.QuadMesh;\n\tprivate stageDisplayTextureNode?: THREE.TextureNode;\n\tprivate foregroundCanvasTarget?: THREE.CanvasTarget;\n\tprivate carouselRearTarget?: THREE.CanvasTarget;\n\tprivate carouselRearCanvas?: HTMLCanvasElement;\n\tprivate carouselRearSize = new THREE.Vector3();\n\tprivate foregroundCanvas?: HTMLCanvasElement;\n\tconfigureRenderer() {\n\t\tthis.ports.renderer.toneMapping = THREE.ACESFilmicToneMapping;\n\t\tthis.ports.renderer.toneMappingExposure = STAGE_TONE_MAPPING_EXPOSURE;\n\t\tthis.ports.renderer.setClearColor(0xffffff, 1);\n\t\tthis.ports.renderer.autoClear = false;\n\t\tthis.ports.backgroundCanvas.tabIndex = -1;\n\t\tthis.ports.backgroundCanvas.style.touchAction = 'pan-y';\n\t}\n\trenderCarouselRear() {\n\t\tif (!this.carouselRearTarget && !this.ports.catalogLayer()?.hasCarousel()) return;\n\t\tif (!this.carouselRearTarget) {\n\t\t\tconst canvas = document.createElement('canvas');\n\t\t\tcanvas.className = 'stage-webgpu-carousel-rear';\n\t\t\tcanvas.setAttribute('aria-hidden', 'true');\n\t\t\tthis.carouselRearCanvas = canvas;\n\t\t\tthis.carouselRearTarget = new THREE.CanvasTarget(canvas);\n\t\t\tthis.ports.container.appendChild(canvas);\n\t\t}\n\t\tconst target = this.carouselRearTarget;\n\t\tconst width = window.innerWidth,\n\t\t\theight = window.innerHeight,\n\t\t\tratio = this.getFullPixelRatio();\n\t\tif (\n\t\t\tthis.carouselRearSize.x !== width ||\n\t\t\tthis.carouselRearSize.y !== height ||\n\t\t\tthis.carouselRearSize.z !== ratio\n\t\t) {\n\t\t\tthis.resizeCanvasTarget(target, width, height, ratio);\n\t\t\tthis.carouselRearSize.set(width, height, ratio);\n\t\t}\n\t\tthis.ports.renderer.setCanvasTarget(target);\n\t\tthis.ports.renderer.setRenderTarget(null);\n\t\tthis.ports.renderer.setClearColor(0x000000, 0);\n\t\tthis.ports.renderer.clear();\n\t\tthis.ports.catalogLayer()?.renderRear(this.ports.renderer);\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t}\n\tcreateForegroundCanvas() {\n\t\tconst canvas = document.createElement('canvas');\n\t\tcanvas.className = 'stage-webgpu-foreground';\n\t\tcanvas.setAttribute('aria-hidden', 'true');\n\t\tthis.foregroundCanvas = canvas;\n\t\tthis.foregroundCanvasTarget = new THREE.CanvasTarget(canvas);\n\t\tthis.ports.container.appendChild(canvas);\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t}\n\tcreateModelOutline(model: Object3D) {\n\t\tthis.outlineMaskModel?.removeFromParent();\n\t\tthis.outlineMaskMaterial?.dispose();\n\t\tthis.outlineCompositeMaterial?.dispose();\n\t\tthis.outlineMaskTarget?.dispose();\n\t\tthis.outlineMaskMaterial = new THREE.MeshBasicMaterial({\n\t\t\tcolor: 0xffffff,\n\t\t\tdepthTest: true,\n\t\t\tdepthWrite: true,\n\t\t\tside: THREE.DoubleSide,\n\t\t\ttoneMapped: false\n\t\t});\n\n\t\tconst maskModel = model.clone(true);\n\t\tmaskModel.traverse((child) => {\n\t\t\tif (!isMesh(child)) return;\n\n\t\t\tconst sourceMesh = this.findSourceMeshByName(model, child.name);\n\t\t\tconst include = sourceMesh\n\t\t\t\t? this.ports.isInteractionMesh(sourceMesh)\n\t\t\t\t: this.ports.isInteractionMesh(child);\n\t\t\tchild.visible = include;\n\t\t\tchild.material = this.outlineMaskMaterial!;\n\t\t});\n\n\t\tthis.outlineMaskModel = maskModel;\n\t\tthis.outlineMaskScene.add(maskModel);\n\t\tthis.outlineMaskTarget = new THREE.RenderTarget(1, 1, {\n\t\t\tdepthBuffer: true,\n\t\t\tstencilBuffer: false,\n\t\t\tsamples: 4\n\t\t});\n\t\tthis.outlineMaskTarget.texture.minFilter = THREE.LinearFilter;\n\t\tthis.outlineMaskTarget.texture.magFilter = THREE.LinearFilter;\n\t\tthis.outlineMaskTarget.texture.generateMipmaps = false;\n\t\tthis.displayOutlineMask.value = this.outlineMaskTarget.texture;\n\t\tthis.outlineCompositeMaterial = this.createOutlineCompositeMaterial(\n\t\t\tthis.outlineMaskTarget.texture\n\t\t);\n\t\tthis.outlineQuad = new THREE.QuadMesh(this.outlineCompositeMaterial);\n\t\t// High refinement can replace the silhouette long after the last window resize.\n\t\tthis.resizeOutline(this.outlineWidth, this.outlineHeight);\n\t}\n\tprivate findSourceMeshByName(root: Object3D, name: string) {\n\t\tlet source: Mesh | undefined;\n\t\troot.traverse((child) => {\n\t\t\tif (!source && isMesh(child) && child.name === name) source = child;\n\t\t});\n\n\t\treturn source;\n\t}\n\tprivate createOutlineOpacity(mask: THREE.TextureNode) {\n\t\treturn createOutlineOpacity(mask, {\n\t\t\tcolor: this.outlineColor, strength: this.outlineStrength, glow: this.outlineGlow,\n\t\t\topacityScale: this.outlineOpacityScale, texel: this.outlineTexel, glowTexel: this.outlineGlowTexel\n\t\t}, this.renderMeasurement === 'halo-unconditional');\n\t}\n\tprivate createOutlineCompositeMaterial(maskTexture: THREE.Texture) {\n\t\tconst material = new THREE.MeshBasicNodeMaterial({\n\t\t\tblending: THREE.NormalBlending,\n\t\t\tdepthTest: false,\n\t\t\tdepthWrite: false,\n\t\t\ttransparent: true\n\t\t});\n\t\tmaterial.colorNode = this.outlineColor;\n\t\tmaterial.opacityNode = this.createOutlineOpacity(texture(maskTexture));\n\t\tmaterial.toneMapped = false;\n\t\treturn material;\n\t}\n\tdisposeSceneCapture() {\n\t\tthis.disposeRenderTargetSet(this.fullQualityTargets);\n\t\tthis.disposeRenderTargetSet(this.scrollQualityTargets);\n\t\tthis.stageDisplayMaterial?.dispose();\n\t\tthis.fullQualityTargets = undefined;\n\t\tthis.scrollQualityTargets = undefined;\n\t\tthis._activeRenderTargets = undefined;\n\t\tthis.stageDisplayMaterial = undefined;\n\t\tthis._stageDisplayQuad = undefined;\n\t\tthis.stageDisplayTextureNode = undefined;\n\t}\n\tcreateSceneCapture() {\n\t\tconst blurKeys = new Set(\n\t\t\tthis.ports.fallbackPanelOptions().map((options) => this.getPanelBlurKey(options))\n\t\t);\n\t\tthis.fullQualityTargets = this.createRenderTargetSet(1, blurKeys);\n\t\tthis.scrollQualityTargets = this.createRenderTargetSet(SCROLL_RENDER_SCALE, blurKeys);\n\t\tthis._activeRenderTargets = this.fullQualityTargets;\n\n\t\tthis.stageDisplayTextureNode = texture(this.fullQualityTargets.sceneCapture.texture);\n\t\tthis.stageDisplayMaterial = new THREE.NodeMaterial();\n\t\t// CanvasTarget already runs WebGPURenderer's output transform after this\n\t\t// fullscreen copy. Keep the capture linear here so ACES and sRGB are applied\n\t\t// exactly once; using renderOutput() here would wash out the entire stage.\n\t\t// CanvasTarget unpremultiplies before tone mapping and premultiplies afterwards.\n\t\t// Environment visibility is applied before the hero; the composed capture stays opaque.\n\t\tthis.stageDisplayMaterial.fragmentNode = vec4(this.stageDisplayTextureNode.rgb, 1);\n\t\tif (this.fuseOutline) {\n\t\t\tthis.emptyOutlineMask.needsUpdate = true;\n\t\t\tconst source = this.stageDisplayTextureNode;\n\t\t\tconst haloColor = this.outlineColor;\n\t\t\tconst haloOpacity = this.createOutlineOpacity(this.displayOutlineMask);\n\t\t\t// Merge into the existing linear display pass before the canvas output transform.\n\t\t\tthis.stageDisplayMaterial.fragmentNode = Fn(() => {\n\t\t\t\tconst rgb = source.rgb.toVar();\n\t\t\t\tIf(this.displayOutlineOpacity.greaterThan(0), () => {\n\t\t\t\t\trgb.assign(mix(rgb, haloColor, haloOpacity.mul(this.displayOutlineOpacity)));\n\t\t\t\t});\n\t\t\t\treturn vec4(rgb, 1);\n\t\t\t})();\n\t\t}\n\t\tthis.stageDisplayMaterial.depthTest = false;\n\t\tthis.stageDisplayMaterial.depthWrite = false;\n\t\tthis.stageDisplayMaterial.blending = THREE.NoBlending;\n\t\tthis.stageDisplayMaterial.toneMapped = false;\n\t\tthis.stageDisplayMaterial.needsUpdate = true;\n\t\tthis._stageDisplayQuad = new THREE.QuadMesh(this.stageDisplayMaterial);\n\t}\n\tprivate createRenderTargetSet(\n\t\tscale: number,\n\t\tblurKeys: ReadonlySet<number>\n\t): StageRenderTargetSet {\n\t\tthis._renderTargetSetCreations += 1;\n\t\tconst sceneCapture = new THREE.RenderTarget(1, 1, {\n\t\t\tdepthBuffer: true,\n\t\t\tstencilBuffer: false,\n\t\t\tsamples: 4,\n\t\t\ttype: THREE.HalfFloatType\n\t\t});\n\t\tsceneCapture.texture.minFilter = THREE.LinearFilter;\n\t\tsceneCapture.texture.magFilter = THREE.LinearFilter;\n\t\tsceneCapture.texture.generateMipmaps = false;\n\t\tsceneCapture.texture.colorSpace = THREE.NoColorSpace;\n\n\t\tconst panelBlurCaptures = new Map<number, PanelBlurCapture>();\n\t\tblurKeys.forEach((blur) => {\n\t\t\tpanelBlurCaptures.set(blur, this.createPanelBlurCapture(sceneCapture.texture, blur, scale));\n\t\t});\n\n\t\treturn { scale, sceneCapture, panelBlurCaptures };\n\t}\n\tprivate disposeRenderTargetSet(targets?: StageRenderTargetSet) {\n\t\tif (!targets) return;\n\t\ttargets.sceneCapture.dispose();\n\t\ttargets.panelBlurCaptures.forEach(({ target, material, effect }) => {\n\t\t\ttarget.dispose();\n\t\t\tmaterial.dispose();\n\t\t\teffect?.dispose();\n\t\t});\n\t\ttargets.panelBlurCaptures.clear();\n\t}\n\tresizeRenderTargets() {\n\t\tconst width = window.innerWidth;\n\t\tconst height = window.innerHeight;\n\t\tconst pixelRatio = this.getFullPixelRatio();\n\t\tif (!this.ports.frame().outgoingBackground)\n\t\t\tthis.resizeCanvasTarget(this.ports.backgroundCanvasTarget, width, height, pixelRatio);\n\t\tif (this.foregroundCanvasTarget) {\n\t\t\tthis.resizeCanvasTarget(this.foregroundCanvasTarget, width, height, pixelRatio);\n\t\t}\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\tthis.resizeRenderTargetSet(this.fullQualityTargets, width, height, pixelRatio);\n\t\tthis.resizeRenderTargetSet(this.scrollQualityTargets, width, height, pixelRatio);\n\t}\n\tprivate resizeRenderTargetSet(\n\t\ttargets: StageRenderTargetSet | undefined,\n\t\twidth: number,\n\t\theight: number,\n\t\tpixelRatio: number\n\t) {\n\t\tif (!targets) return;\n\t\tthis._renderTargetSetResizes += 1;\n\t\tconst captureWidth = Math.max(1, Math.round(width * pixelRatio * targets.scale));\n\t\tconst captureHeight = Math.max(1, Math.round(height * pixelRatio * targets.scale));\n\t\ttargets.sceneCapture.setSize(captureWidth, captureHeight);\n\t\ttargets.panelBlurCaptures.forEach(({ target, effect, resolutionScale }) => {\n\t\t\tif (effect) {\n\t\t\t\tconst effectScale = resolutionScale / (pixelRatio * targets.scale);\n\t\t\t\teffect.resolutionScale = effectScale;\n\t\t\t\teffect.setSize(captureWidth, captureHeight);\n\t\t\t\t// Consumers sample normalized screen UVs. Preserve the blur's actual\n\t\t\t\t// density instead of copying it back to a full-DPR viewport texture.\n\t\t\t\ttarget.setSize(\n\t\t\t\t\tMath.max(1, Math.round(captureWidth * effectScale)),\n\t\t\t\t\tMath.max(1, Math.round(captureHeight * effectScale))\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t// A zero-blur backdrop still contains sharp scene detail.\n\t\t\t\ttarget.setSize(captureWidth, captureHeight);\n\t\t\t}\n\t\t});\n\t}\n\tgetFullPixelRatio() {\n\t\treturn getStageRenderPixelRatio(\n\t\t\twindow.innerWidth,\n\t\t\twindow.innerHeight,\n\t\t\twindow.devicePixelRatio,\n\t\t\tthis.renderSettings\n\t\t);\n\t}\n\tsetRenderSettings(settings?: StageRenderSettings) {\n\t\tthis.renderSettings = resolveStageRenderSettings(settings);\n\t}\n\tgetRenderSettings() {\n\t\treturn { ...this.renderSettings };\n\t}\n\tsetScrollRenderQuality(active: boolean) {\n\t\tthis.ports.container.toggleAttribute('data-stage-scroll-rendering', active);\n\t\tconst nextTargets = active ? this.scrollQualityTargets : this.fullQualityTargets;\n\t\tif (!nextTargets || this._activeRenderTargets === nextTargets) return;\n\t\tthis.activateRenderTargetSet(nextTargets);\n\t}\n\tprivate activateRenderTargetSet(nextTargets: StageRenderTargetSet) {\n\t\tthis._activeRenderTargets = nextTargets;\n\t\tif (this.stageDisplayTextureNode) {\n\t\t\tthis.stageDisplayTextureNode.value = nextTargets.sceneCapture.texture;\n\t\t}\n\t\tthis.ports.panelRuntimes().forEach((runtime) => {\n\t\t\truntime.glass?.setBackdropTexture(this.getPanelBlurTexture(runtime.options, nextTargets));\n\t\t});\n\t\tthis.ports.minimaps().forEach((minimap) => {\n\t\t\tminimap.stageCaptureTexture.value = nextTargets.sceneCapture.texture;\n\t\t\tconst panel = this.ports.panelRuntimes()[minimap.panelIndex];\n\t\t\tif (panel) {\n\t\t\t\tminimap.stageBlurTexture.value =\n\t\t\t\t\tpanel.surface === 'solid'\n\t\t\t\t\t\t? nextTargets.sceneCapture.texture\n\t\t\t\t\t\t: this.getPanelBlurTexture(panel.options, nextTargets);\n\t\t\t}\n\t\t\tminimap.overlayCaptureDirty = true;\n\t\t});\n\t}\n\twarmRenderTargetSets() {\n\t\tconst previousTargets = this._activeRenderTargets;\n\t\tconst availableTargets = [this.fullQualityTargets, this.scrollQualityTargets].filter(\n\t\t\t(targets): targets is StageRenderTargetSet => Boolean(targets)\n\t\t);\n\t\tif (!previousTargets || !this._stageDisplayQuad || availableTargets.length !== 2) return;\n\t\t// Finish with the active/full-quality set so the warm-up itself cannot\n\t\t// leave a lower-resolution frame on the visible canvas.\n\t\tconst targetSets = [\n\t\t\t...availableTargets.filter((targets) => targets !== previousTargets),\n\t\t\tpreviousTargets\n\t\t];\n\n\t\ttry {\n\t\t\twithRendererState(this.ports.renderer, () => {\n\t\t\t\ttargetSets.forEach((targets) => {\n\t\t\t\t\tthis.activateRenderTargetSet(targets);\n\t\t\t\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\t\t\t\tthis.ports.renderer.setRenderTarget(targets.sceneCapture);\n\t\t\t\t\tthis.ports.renderStage();\n\t\t\t\t\tthis.renderPanelBlurCaptures(targets, true);\n\t\t\t\t\tthis.renderStageDisplay();\n\t\t\t\t\tthis.renderBackgroundPanels();\n\t\t\t\t\tthis._renderTargetSetWarmups += 1;\n\t\t\t\t});\n\t\t\t});\n\t\t} finally {\n\t\t\tthis.activateRenderTargetSet(previousTargets);\n\t\t}\n\t}\n\tprivate resizeCanvasTarget(\n\t\ttarget: THREE.CanvasTarget,\n\t\twidth: number,\n\t\theight: number,\n\t\tpixelRatio: number\n\t) {\n\t\tthis.ports.renderer.setCanvasTarget(target);\n\t\tthis.ports.renderer.setPixelRatio(pixelRatio);\n\t\tthis.ports.renderer.setSize(width, height, false);\n\t}\n\tprivate createPanelBlurCapture(\n\t\tsceneTexture: THREE.Texture,\n\t\tblur: number,\n\t\trenderScale: number\n\t): PanelBlurCapture {\n\t\tconst target = new THREE.RenderTarget(1, 1, {\n\t\t\tdepthBuffer: false,\n\t\t\tstencilBuffer: false\n\t\t});\n\t\ttarget.texture.minFilter = THREE.LinearFilter;\n\t\ttarget.texture.magFilter = THREE.LinearFilter;\n\t\ttarget.texture.generateMipmaps = false;\n\t\ttarget.texture.colorSpace = THREE.NoColorSpace;\n\n\t\tconst sourceTexture = texture(sceneTexture);\n\t\t// Scale resolution and sample offsets together to retain the CSS blur radius.\n\t\t// The final texture uses the same density and normalized screen-space mapping.\n\t\tconst query = new URLSearchParams(typeof window === 'undefined' ? '' : window.location?.search);\n\t\tconst fullResolutionProbe =\n\t\t\tquery.get('stage-test') === '1' && query.get('stage-backdrop') === 'full';\n\t\tconst blurResolution = blur >= 4 && !fullResolutionProbe ? 0.5 : 1;\n\t\tconst effect =\n\t\t\tblur > 0\n\t\t\t\t? gaussianBlur(sourceTexture, blurResolution, Math.max(1, Math.round(blur)), {\n\t\t\t\t\t\tresolutionScale: blurResolution / (this.getFullPixelRatio() * renderScale)\n\t\t\t\t\t})\n\t\t\t\t: undefined;\n\t\tconst material = new THREE.NodeMaterial();\n\t\tmaterial.colorNode = effect ?? sourceTexture;\n\t\tmaterial.needsUpdate = true;\n\n\t\treturn {\n\t\t\tresolutionScale: blurResolution,\n\t\t\teffect,\n\t\t\tmaterial,\n\t\t\tquad: new THREE.QuadMesh(material),\n\t\t\ttarget\n\t\t};\n\t}\n\tprivate getPanelBlurKey(options: LiquidGlassPanelOptions) {\n\t\tconst value = Number.isFinite(options.backdropBlur) ? (options.backdropBlur ?? 0) : 0;\n\t\treturn Math.round(THREE.MathUtils.clamp(value, 0, 100) * 100) / 100;\n\t}\n\t/** Allocate changed blur settings without replacing the scene capture or model resources. */\n\tsyncPanelBlurCaptures() {\n\t\tconst keys = new Set(this.ports.fallbackPanelOptions().map((options) => this.getPanelBlurKey(options)));\n\t\tif (!this._activeRenderTargets && keys.size) this.createSceneCapture();\n\t\tfor (const targets of [this.fullQualityTargets, this.scrollQualityTargets]) {\n\t\t\tif (!targets) continue;\n\t\t\tfor (const key of keys) if (!targets.panelBlurCaptures.has(key))\n\t\t\t\ttargets.panelBlurCaptures.set(key, this.createPanelBlurCapture(targets.sceneCapture.texture, key, targets.scale));\n\t\t\tfor (const [key, capture] of targets.panelBlurCaptures) if (!keys.has(key)) {\n\t\t\t\tcapture.target.dispose(); capture.material.dispose(); capture.effect?.dispose();\n\t\t\t\ttargets.panelBlurCaptures.delete(key);\n\t\t\t}\n\t\t\tthis.resizeRenderTargetSet(targets, window.innerWidth, window.innerHeight, this.getFullPixelRatio());\n\t\t}\n\t}\n\tgetPanelBlurTexture(options: LiquidGlassPanelOptions, targets = this._activeRenderTargets) {\n\t\tconst blur = this.getPanelBlurKey(options);\n\t\tconst capture = targets?.panelBlurCaptures.get(blur);\n\t\tif (!capture) {\n\t\t\tthrow new Error(`No backdrop capture exists for panel blur ${blur}`);\n\t\t}\n\t\treturn capture.target.texture;\n\t}\n\t/** Prepare hidden close-up effects during page binding, never during camera motion.\n\t * Captures stay invalid: the first visible frame must still sample the live element.\n\t * Only compile the foreground scene, so preparation cannot paint an overlay on screen.\n\t */\n\tasync prepareZoomEffects() {\n\t\tif (!this.foregroundCanvasTarget || this.disposed) return;\n\t\tconst views = [...this.ports.minimaps().values()].filter(\n\t\t\t(view) => !this.preparedZoomViews.has(view)\n\t\t);\n\t\tif (!views.length) return;\n\t\tconst pending: Promise<unknown>[] = [];\n\t\tfor (const view of views) {\n\t\t\twithRendererState(this.ports.renderer, () => {\n\t\t\t\tthis.ports.renderMinimapBlur(view);\n\t\t\t\tif (this.ports.panelRuntimes()[view.panelIndex]?.surface === 'glass')\n\t\t\t\t\tthis.ports.renderMinimapPanelCapture(view);\n\t\t\t\tthis.ports.renderer.setCanvasTarget(this.foregroundCanvasTarget!);\n\t\t\t\tthis.ports.renderer.setRenderTarget(null);\n\t\t\t\tconst ringMaterial = view.overlayRing.material;\n\t\t\t\tconst compositeCulled = view.overlayComposite.frustumCulled;\n\t\t\t\tconst ringCulled = view.overlayRing.frustumCulled;\n\t\t\t\ttry {\n\t\t\t\t\t// A newly bound minimap camera may not yet have its screen projection.\n\t\t\t\t\t// Compile the hidden effects even if that initial frustum excludes them.\n\t\t\t\t\tview.overlayComposite.frustumCulled = false;\n\t\t\t\t\tview.overlayRing.frustumCulled = false;\n\t\t\t\t\twithVisibility(\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t...[...this.ports.minimaps().values()].map((entry) => entry.layer),\n\t\t\t\t\t\t\tview.overlayComposite,\n\t\t\t\t\t\t\tview.overlayRing\n\t\t\t\t\t\t],\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tfor (const entry of this.ports.minimaps().values())\n\t\t\t\t\t\t\t\tentry.layer.visible = entry === view;\n\t\t\t\t\t\t\tview.overlayComposite.visible = true;\n\t\t\t\t\t\t\tview.overlayRing.visible = true;\n\t\t\t\t\t\t\tfor (const material of [view.ringRestMaterial, view.ringForegroundMaterial]) {\n\t\t\t\t\t\t\t\tview.overlayRing.material = material;\n\t\t\t\t\t\t\t\tpending.push(\n\t\t\t\t\t\t\t\t\tthis.ports.renderer.compileAsync(this.ports.minimapScene(), view.screenCamera)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t} finally {\n\t\t\t\t\tview.overlayRing.material = ringMaterial;\n\t\t\t\t\tview.overlayComposite.frustumCulled = compositeCulled;\n\t\t\t\t\tview.overlayRing.frustumCulled = ringCulled;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tawait Promise.all(pending);\n\t\tconst device = (this.ports.renderer.backend as unknown as { device?: GPUDevice }).device;\n\t\tawait device?.queue.onSubmittedWorkDone();\n\t\tif (!this.disposed) for (const view of views) this.preparedZoomViews.add(view);\n\t}\n\trenderForegroundLayer() {\n\t\tif (!this.foregroundCanvasTarget) return;\n\n\t\tthis.ports.renderer.setCanvasTarget(this.foregroundCanvasTarget);\n\t\tthis.ports.renderer.setRenderTarget(null);\n\t\tthis.ports.renderer.setClearColor(0x000000, 0);\n\t\tthis.ports.renderer.clear();\n\t\tthis.renderMinimapScene();\n\t\tfor (const entry of this.ports.exitingMinimaps())\n\t\t\tif (entry.minimap.displayOpacity > 0) entry.capture.render(this.ports.renderer);\n\t\tthis.ports.catalogLayer()?.draw(this.ports.renderer, 'front');\n\t\tfor (const entry of this.ports.contentSecondaries()) entry.capture.render(this.ports.renderer);\n\t\tthis.ports.spatialCapture()?.render(this.ports.renderer);\n\t}\n\trenderBackgroundPanels() {\n\t\treturn withVisibility(\n\t\t\tthis.ports.panelRuntimes().map((panel) => panel.group),\n\t\t\t() => {\n\t\t\t\tconst minimaps = Array.from(this.ports.minimaps().values());\n\t\t\t\tconst minimapPanelIndices = new Set(minimaps.map((minimap) => minimap.panelIndex));\n\t\t\t\tconst panelVisibility = this.ports.panelRuntimes().map((panel) => panel.group.visible);\n\t\t\t\tconst visibleMinimaps = minimaps.filter(\n\t\t\t\t\t(minimap) =>\n\t\t\t\t\t\tminimap.viewportVisible &&\n\t\t\t\t\t\tpanelVisibility[minimap.panelIndex] &&\n\t\t\t\t\t\tBoolean(this.ports.panelRuntimes()[minimap.panelIndex]?.glass)\n\t\t\t\t);\n\t\t\t\tconst hasVisibleRegularPanel = this.ports\n\t\t\t\t\t.panelRuntimes()\n\t\t\t\t\t.some(\n\t\t\t\t\t\t(panel, index) =>\n\t\t\t\t\t\t\tBoolean(panel.glass) && panelVisibility[index] && !minimapPanelIndices.has(index)\n\t\t\t\t\t);\n\n\t\t\t\t// Regular panels share the stage camera. Minimap panels use an off-axis\n\t\t\t\t// screen camera, so leave them out of this pass and draw them separately.\n\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\tif (panel.glass) {\n\t\t\t\t\t\tpanel.group.visible = panelVisibility[index] && !minimapPanelIndices.has(index);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tif (hasVisibleRegularPanel) {\n\t\t\t\t\tthis.ports.renderer.clearDepth();\n\t\t\t\t\tthis.ports.renderer.render(this.ports.panelScene, this.ports.panelCamera);\n\t\t\t\t\tthis._panelSceneRenderPasses += 1;\n\t\t\t\t}\n\n\t\t\t\t// Keep the glass body in the same compositing layer as the other panels,\n\t\t\t\t// but retain the exact camera and transform used by its foreground model.\n\t\t\t\tvisibleMinimaps.forEach((active) => {\n\t\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\t\tif (panel.glass) {\n\t\t\t\t\t\t\tpanel.group.visible = panelVisibility[index] && index === active.panelIndex;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tthis.ports.renderer.clearDepth();\n\t\t\t\t\tthis.ports.renderer.render(this.ports.panelScene, active.screenCamera);\n\t\t\t\t\tthis._panelSceneRenderPasses += 1;\n\t\t\t\t});\n\n\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\tpanel.group.visible = panelVisibility[index];\n\t\t\t\t});\n\t\t\t}\n\t\t);\n\t}\n\tprivate renderMinimapScene() {\n\t\treturn withVisibility(\n\t\t\t[\n\t\t\t\t...this.ports.panelRuntimes().map((panel) => panel.group),\n\t\t\t\t...[...this.ports.minimaps().values()].flatMap((view) => [view.layer, view.spatialElementRoot])\n\t\t\t],\n\t\t\t() => {\n\t\t\t\tif (!this.ports.minimaps().size) return;\n\n\t\t\t\tconst minimaps = Array.from(this.ports.minimaps().values());\n\t\t\t\tconst visibleMinimaps = minimaps.filter(\n\t\t\t\t\t(minimap) =>\n\t\t\t\t\t\tminimap.viewportVisible &&\n\t\t\t\t\t\tthis.ports.getPanelTransitionOpacity(this.ports.panelRuntimes()[minimap.panelIndex]) >\n\t\t\t\t\t\t\t0.001\n\t\t\t\t);\n\t\t\t\tif (!visibleMinimaps.length) return;\n\t\t\t\tconst panelVisibility = this.ports.panelRuntimes().map((panel) => panel.group.visible);\n\n\t\t\t\tvisibleMinimaps.forEach((active) => {\n\t\t\t\t\tminimaps.forEach((minimap) => {\n\t\t\t\t\t\tminimap.layer.visible = minimap === active;\n\t\t\t\t\t});\n\t\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\t\tif (panel.glass) panel.group.visible = index === active.panelIndex;\n\t\t\t\t\t});\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tactive.overlayComposite.visible &&\n\t\t\t\t\t\t(!active.overlayCaptureValid ||\n\t\t\t\t\t\t\t(this.measurementMode !== 'reuse-capture' && active.overlayCaptureDirty))\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.ports.renderMinimapBlur(active);\n\t\t\t\t\t\tactive.overlayCaptureDirty = false;\n\t\t\t\t\t\tactive.overlayCaptureValid = true;\n\t\t\t\t\t\tthis._minimapOverlayCapturePasses += 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (\n\t\t\t\t\t\tactive.overlayComposite.visible &&\n\t\t\t\t\t\tthis.ports.panelRuntimes()[active.panelIndex]?.surface === 'glass' &&\n\t\t\t\t\t\t(!active.panelCaptureValid ||\n\t\t\t\t\t\t\t(this.measurementMode !== 'reuse-capture' && active.panelCaptureDirty))\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.ports.renderMinimapPanelCapture(active);\n\t\t\t\t\t\tactive.panelCaptureDirty = false;\n\t\t\t\t\t\tactive.panelCaptureValid = true;\n\t\t\t\t\t}\n\t\t\t\t\tthis.ports.renderer.clearDepth();\n\t\t\t\t\tconst spatialElementVisible = active.spatialElementRoot.visible;\n\t\t\t\t\tif (\n\t\t\t\t\t\tthis.ports.frame().catalogDockTarget &&\n\t\t\t\t\t\tthis.ports.frame().catalogHandoff &&\n\t\t\t\t\t\t!this.ports.frame().catalogMotionComplete\n\t\t\t\t\t)\n\t\t\t\t\t\tactive.spatialElementRoot.visible = false;\n\t\t\t\t\tthis.ports.renderer.render(this.ports.minimapScene(), active.screenCamera);\n\t\t\t\t\tactive.spatialElementRoot.visible = spatialElementVisible;\n\t\t\t\t\tthis._minimapSceneRenderPasses += 1;\n\t\t\t\t});\n\n\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\tpanel.group.visible = panelVisibility[index];\n\t\t\t\t});\n\t\t\t\tminimaps.forEach((minimap) => {\n\t\t\t\t\tminimap.layer.visible =\n\t\t\t\t\t\tminimap.viewportVisible &&\n\t\t\t\t\t\tthis.ports.getPanelTransitionOpacity(this.ports.panelRuntimes()[minimap.panelIndex]) >\n\t\t\t\t\t\t\t0.001;\n\t\t\t\t});\n\t\t\t}\n\t\t);\n\t}\n\trenderModelOutline(target: THREE.RenderTarget | null, opacity = 1) {\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\t// The transferred model owns its moving outline, including its interpolated camera.\n\t\tif (this.ports.spatialCapture?.()) return;\n\t\tif (this.renderMeasurement === 'no-halo' || !this.ports.frame().modelHover) return;\n\t\tconst opacityBefore = this.outlineOpacityScale.value;\n\t\ttry {\n\t\t\treturn withRendererState(this.ports.renderer, () => {\n\t\t\t\tif (\n\t\t\t\t\t!this.ports.frame().stageViewportVisible ||\n\t\t\t\t\t!this.ports.frame().modelHover ||\n\t\t\t\t\t!this.outlineMaskTarget ||\n\t\t\t\t\t!this.outlineQuad\n\t\t\t\t)\n\t\t\t\t\treturn;\n\n\t\t\t\tconst previousClearAlpha = this.ports.renderer.getClearAlpha();\n\t\t\t\tconst previousClearColor = this.ports.renderer.getClearColor(new THREE.Color());\n\t\t\t\tconst previousOpacity = this.outlineOpacityScale.value;\n\n\t\t\t\tif (this.renderMeasurement !== 'halo-frozen-mask' || !this.outlineMaskValid) {\n\t\t\t\t\tthis.ports.renderer.setRenderTarget(this.outlineMaskTarget);\n\t\t\t\t\tthis.ports.renderer.setClearColor(0x000000, 0);\n\t\t\t\t\tthis.ports.renderer.clear();\n\t\t\t\t\tthis.ports.renderer.render(this.outlineMaskScene, this.ports.camera);\n\t\t\t\t\tthis.outlineMaskValid = true;\n\t\t\t\t}\n\t\t\t\tthis.ports.renderer.setClearColor(previousClearColor, previousClearAlpha);\n\t\t\t\tthis.ports.renderer.setRenderTarget(target);\n\n\t\t\t\tthis.outlineOpacityScale.value = opacity;\n\t\t\t\t// Glass can refract the sharp scene capture, so keep the halo in that\n\t\t\t\t// capture while a glass surface is visible. Forced fusion is a test probe.\n\t\t\t\tconst fuseThisFrame =\n\t\t\t\t\tthis.fuseOutline &&\n\t\t\t\t\t(this.renderMeasurement === 'halo-fused' ||\n\t\t\t\t\t\t!this.ports\n\t\t\t\t\t\t\t.panelRuntimes()\n\t\t\t\t\t\t\t.some((panel) => panel.surface === 'glass' && panel.group.visible));\n\t\t\t\tif (fuseThisFrame) this.displayOutlineOpacity.value = opacity;\n\t\t\t\telse if (this.renderMeasurement !== 'halo-mask-only')\n\t\t\t\t\tthis.outlineQuad.render(this.ports.renderer);\n\t\t\t\tthis.outlineOpacityScale.value = previousOpacity;\n\t\t\t});\n\t\t} finally {\n\t\t\tthis.outlineOpacityScale.value = opacityBefore;\n\t\t}\n\t}\n\trenderPanelBlurCaptures(renderTargets: StageRenderTargetSet, forceAll = false) {\n\t\tconst visibleBlurKeys = forceAll\n\t\t\t? undefined\n\t\t\t: new Set(\n\t\t\t\t\tthis.ports.panelRuntimes().flatMap((panel, index) => {\n\t\t\t\t\t\tif (!panel.group.visible) return [];\n\t\t\t\t\t\tconst needsGlassCapture = panel.surface === 'glass' && Boolean(panel.glass);\n\t\t\t\t\t\tconst needsFrostedMinimapCapture =\n\t\t\t\t\t\t\tpanel.surface === 'frosted' &&\n\t\t\t\t\t\t\tBoolean(this.ports.minimaps().get(index)?.overlayComposite.visible);\n\t\t\t\t\t\treturn needsGlassCapture || needsFrostedMinimapCapture\n\t\t\t\t\t\t\t? [this.getPanelBlurKey(panel.options)]\n\t\t\t\t\t\t\t: [];\n\t\t\t\t\t})\n\t\t\t\t);\n\t\trenderTargets.panelBlurCaptures.forEach(({ target, quad }, blurKey) => {\n\t\t\tif (visibleBlurKeys && !visibleBlurKeys.has(blurKey)) return;\n\t\t\tconst size = `${target.width}:${target.height}`;\n\t\t\tif (\n\t\t\t\tthis.renderMeasurement === 'frozen-backdrop' &&\n\t\t\t\tthis.measuredBackdropSeeds.get(target) === size\n\t\t\t)\n\t\t\t\treturn;\n\t\t\tthis.ports.renderer.setRenderTarget(target);\n\t\t\tthis.ports.renderer.clear();\n\t\t\tquad.render(this.ports.renderer);\n\t\t\tif (this.renderMeasurement === 'frozen-backdrop')\n\t\t\t\tthis.measuredBackdropSeeds.set(target, size);\n\t\t\tthis._panelBlurRenderPasses += 1;\n\t\t});\n\t}\n\trenderStageDisplay() {\n\t\tif (!this._stageDisplayQuad) return;\n\t\tthis.ports.renderer.setRenderTarget(null);\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\tthis.ports.renderer.setClearColor(0xffffff, 1);\n\t\tthis.ports.renderer.clear();\n\t\tthis._stageDisplayQuad.render(this.ports.renderer);\n\t}\n\trenderStageContents() {\n\t\tthis.ports.renderer.clear();\n\t\tthis.ports.renderer.render(this.ports.backgroundScene, this.ports.camera);\n\t\tthis.ports.renderer.render(this.ports.tintScene, this.ports.tintCamera);\n\t\tthis.backgroundCoverOpacity.value = 1 - this.ports.frame().backgroundReveal;\n\t\tif (this.backgroundCoverOpacity.value > 0) this.backgroundCover.render(this.ports.renderer);\n\t\tif (\n\t\t\tthis.ports.frame().stageViewportVisible &&\n\t\t\t(!this.ports.frame().catalogHandoff || this.ports.frame().catalogMotionComplete) &&\n\t\t\t(!this.ports.frame().catalog || this.ports.frame().pageModelReady)\n\t\t) {\n\t\t\tthis.ports.renderer.clearDepth();\n\t\t\tthis.ports.renderer.render(this.ports.scene, this.ports.camera);\n\t\t\tthis._stageModelRenderPasses += 1;\n\t\t}\n\t}\n\treleaseOutline() {\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\tthis.displayOutlineMask.value = this.emptyOutlineMask;\n\t\tthis.outlineMaskModel?.removeFromParent();\n\t\tthis.outlineMaskMaterial?.dispose();\n\t\tthis.outlineCompositeMaterial?.dispose();\n\t\tthis.outlineMaskTarget?.dispose();\n\t\tthis.outlineMaskModel = undefined;\n\t\tthis.outlineMaskMaterial = undefined;\n\t\tthis.outlineCompositeMaterial = undefined;\n\t\tthis.outlineMaskTarget = undefined;\n\t\tthis.outlineQuad = undefined;\n\t}\n\tresizeOutline(width: number, height: number) {\n\t\tthis.outlineWidth = width;\n\t\tthis.outlineHeight = height;\n\t\tconst scale = this.renderMeasurement === 'halo-half-mask' ? 0.5 : 1;\n\t\tthis.outlineMaskTarget?.setSize(\n\t\t\tMath.max(1, Math.round(width * scale)),\n\t\t\tMath.max(1, Math.round(height * scale))\n\t\t);\n\t\tthis.outlineMaskValid = false;\n\t\tthis.outlineTexel.value.set(\n\t\t\tthis.ports.interactionTheme().outlineThickness / Math.max(width, 1),\n\t\t\tthis.ports.interactionTheme().outlineThickness / Math.max(height, 1)\n\t\t);\n\t\tthis.outlineGlowTexel.value.set(\n\t\t\t(this.ports.interactionTheme().outlineThickness *\n\t\t\t\tthis.ports.interactionTheme().outlineGlowThickness) /\n\t\t\t\tMath.max(width, 1),\n\t\t\t(this.ports.interactionTheme().outlineThickness *\n\t\t\t\tthis.ports.interactionTheme().outlineGlowThickness) /\n\t\t\t\tMath.max(height, 1)\n\t\t);\n\t}\n\tdispose() {\n\t\tif (this.disposed) return;\n\t\tthis.disposed = true;\n\t\tthis.releaseOutline();\n\t\tthis.emptyOutlineMask.dispose();\n\t\tthis.disposeSceneCapture();\n\t\tthis.backgroundCoverMaterial.dispose();\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\tthis.foregroundCanvasTarget?.dispose();\n\t\tthis.foregroundCanvasTarget = undefined;\n\t\tthis.carouselRearTarget?.dispose();\n\t\tthis.carouselRearTarget = undefined;\n\t\tthis.carouselRearCanvas?.remove();\n\t\tthis.foregroundCanvas?.remove();\n\t}\n\n\tget activeRenderTargets() {\n\t\treturn this._activeRenderTargets;\n\t}\n\tget stageDisplayQuad() {\n\t\treturn this._stageDisplayQuad;\n\t}\n\tget minimapOverlayCapturePasses() {\n\t\treturn this._minimapOverlayCapturePasses;\n\t}\n\tget renderTargetSetCreations() {\n\t\treturn this._renderTargetSetCreations;\n\t}\n\tget renderTargetSetResizes() {\n\t\treturn this._renderTargetSetResizes;\n\t}\n\tget renderTargetSetWarmups() {\n\t\treturn this._renderTargetSetWarmups;\n\t}\n\tget stageModelRenderPasses() {\n\t\treturn this._stageModelRenderPasses;\n\t}\n\tget panelBlurRenderPasses() {\n\t\treturn this._panelBlurRenderPasses;\n\t}\n\tget panelSceneRenderPasses() {\n\t\treturn this._panelSceneRenderPasses;\n\t}\n\tget minimapSceneRenderPasses() {\n\t\treturn this._minimapSceneRenderPasses;\n\t}\n\n\t/** The facade advances owners first; this command submits the ordered GPU passes. */\n\trenderFrame(contentOnly: boolean, outline: boolean) {\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\treturn withRendererState(this.ports.renderer, () => {\n\t\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\t\tif (contentOnly) {\n\t\t\t\tthis.ports.renderer.setRenderTarget(null);\n\t\t\t\tif (!this.ports.frame().outgoingBackground) {\n\t\t\t\t\tthis.ports.renderer.setClearColor(0, 0);\n\t\t\t\t\tthis.ports.renderer.clear();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!this._activeRenderTargets) return;\n\t\t\t\tthis.ports.renderer.setRenderTarget(this._activeRenderTargets.sceneCapture);\n\t\t\t\tthis.ports.renderStage();\n\t\t\t\tthis.renderPanelBlurCaptures(this._activeRenderTargets);\n\t\t\t\tif (outline) this.renderModelOutline(this._activeRenderTargets.sceneCapture, 1);\n\t\t\t\tthis.renderStageDisplay();\n\t\t\t\tthis.renderBackgroundPanels();\n\t\t\t}\n\t\t\tthis.renderCarouselRear();\n\t\t\tthis.renderForegroundLayer();\n\t\t});\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"StageRenderPipeline.js","sourceRoot":"","sources":["../../src/stage/StageRenderPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIvE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EACN,EAAE,EACF,EAAE,EACF,GAAG,EACH,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,EAAE,EACF,IAAI,EACJ,MAAM,WAAW,CAAC;AAEnB,OAAO,EACN,sBAAsB,EACtB,2BAA2B,EAE3B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAc3F,MAAM,mBA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AAC,kBAAkB,EAAE,CAAC;gBAC1B,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC/B,CAAC;YACD,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC1B,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;IACJ,CAAC;CACD","sourcesContent":["import { createOutlineOpacity } from './interactionOutline.js';\nimport { getRefinementSize } from './SpatialElementRefinement.js';\nimport { getMinimapMeasurementMode } from './minimapMeasurement.js';\nimport { parseRenderMeasurement } from './renderMeasurement.js';\nimport type { PreparedHigh } from '../catalog/CatalogPreparation.js';\nimport { gaussianTargets } from './renderTargetInventory.js';\nimport { withRendererState, withVisibility } from './rendererState.js';\n\nimport type { StagePanelRuntime } from './StagePanelRuntime.js';\n\nimport * as THREE from 'three/webgpu';\n\nimport { CatalogSpatialElementLayer } from '../catalog/CatalogSpatialElementLayer.js';\nimport { SpatialGeometryCapture } from '../catalog/SpatialGeometryCapture.js';\n\nimport { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';\nimport {\n\tFn,\n\tIf,\n\tmix,\n\tpremultiplyAlpha,\n\ttexture,\n\tuniform,\n\tuv,\n\tvec4\n} from 'three/tsl';\nimport type { Mesh, Object3D } from 'three';\nimport {\n\tinverseAcesToneMapping,\n\tSTAGE_TONE_MAPPING_EXPOSURE,\n\ttype LiquidGlassPanelOptions\n} from './LiquidGlassPanel.js';\n\nimport type { StageMinimapState } from './minimap/MinimapState.js';\nimport { isMesh } from './stageSceneUtils.js';\nimport type { StageInteractionTheme, StageRenderSettings } from './stageTypes.js';\nimport { getStageRenderPixelRatio, resolveStageRenderSettings } from './renderSettings.js';\ninterface PanelBlurCapture {\n\t/** Intermediate pixels per CSS pixel; independent of output DPR/scroll quality. */\n\tresolutionScale: number;\n\teffect?: ReturnType<typeof gaussianBlur>;\n\tmaterial: THREE.NodeMaterial;\n\tquad: THREE.QuadMesh;\n\ttarget: THREE.RenderTarget;\n}\ninterface StageRenderTargetSet {\n\tscale: number;\n\tsceneCapture: THREE.RenderTarget;\n\tpanelBlurCaptures: Map<number, PanelBlurCapture>;\n}\nconst SCROLL_RENDER_SCALE = 0.82;\n\nexport interface StageRenderPorts {\n\tpageBackground?: string;\n\trenderSettings?: StageRenderSettings;\n\trenderer: THREE.WebGPURenderer;\n\tcontainer: HTMLElement;\n\tbackgroundCanvas: HTMLCanvasElement;\n\tbackgroundCanvasTarget: THREE.CanvasTarget;\n\tscene: THREE.Scene;\n\tbackgroundScene: THREE.Scene;\n\ttintScene: THREE.Scene;\n\tpanelScene: THREE.Scene;\n\tcamera: THREE.PerspectiveCamera;\n\tpanelCamera: THREE.PerspectiveCamera;\n\ttintCamera: THREE.OrthographicCamera;\n\tpanelRuntimes(): readonly StagePanelRuntime[];\n\tminimaps(): ReadonlyMap<number, StageMinimapState>;\n\tminimapScene(): THREE.Scene;\n\tcatalogLayer(): Pick<CatalogSpatialElementLayer, 'hasCarousel' | 'renderRear' | 'draw'> | undefined;\n\tspatialCapture(): SpatialGeometryCapture | undefined;\n\texitingMinimaps(): readonly { capture: SpatialGeometryCapture; minimap: StageMinimapState }[];\n\tcontentSecondaries(): readonly { capture: SpatialGeometryCapture }[];\n\tfallbackPanelOptions(): readonly LiquidGlassPanelOptions[];\n\tinteractionTheme(): StageInteractionTheme;\n\tframe(): Readonly<{\n\t\toutgoingBackground: boolean;\n\t\tcatalogDockTarget: boolean;\n\t\tcatalogHandoff: boolean;\n\t\tcatalogMotionComplete: boolean;\n\t\tstageViewportVisible: boolean;\n\t\tmodelHover: boolean;\n\t\tmodelInteractionActive: boolean;\n\t\tcatalog: boolean;\n\t\tpageModelReady: boolean;\n\t\tbackgroundReveal: number;\n\t}>;\n\trenderStage(): void;\n\trenderMinimapBlur(minimap: StageMinimapState): void;\n\trenderMinimapPanelCapture(minimap: StageMinimapState): void;\n\tgetPanelTransitionOpacity(panel?: StagePanelRuntime): number;\n\tisInteractionMesh(mesh: Mesh): boolean;\n}\n\n/** Owns GPU output bands, passes and target lifetimes; never schedules frames or navigation. */\nexport class StageRenderPipeline {\n\tprivate readonly measurementMode = getMinimapMeasurementMode();\n\tprivate readonly renderMeasurement = parseRenderMeasurement(\n\t\ttypeof window === 'undefined' ? '' : (window.location?.search ?? '')\n\t);\n\tprivate readonly fuseOutline = ![\n\t\t'halo-separate',\n\t\t'halo-mask-only',\n\t\t'halo-frozen-mask',\n\t\t'halo-half-mask'\n\t].includes(this.renderMeasurement);\n\tprivate readonly measuredBackdropSeeds = new WeakMap<THREE.RenderTarget, string>();\n\tprivate readonly preparedZoomViews = new WeakSet<StageMinimapState>();\n\tprivate disposed = false;\n\tprivate renderSettings = resolveStageRenderSettings();\n\t/** Retain the last DETAIL background while its geometry is owned by a transition. */\n\tfreezeBackground() {\n\t\tconst targets = this._activeRenderTargets;\n\t\tif (!targets) return false;\n\t\t// Never bake the old screen-space halo into the outgoing background snapshot.\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\twithRendererState(this.ports.renderer, () => {\n\t\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\t\tthis.ports.renderer.setRenderTarget(targets.sceneCapture);\n\t\t\tthis.renderStageContents();\n\t\t\tthis.renderStageDisplay();\n\t\t\tthis.renderBackgroundPanels();\n\t\t});\n\t\treturn true;\n\t}\n\tasync warmHigh(high: PreparedHigh, environment: THREE.Texture, drawLow: () => void) {\n\t\tconst scene = new THREE.Scene();\n\t\tscene.environment = environment;\n\t\tscene.environmentIntensity = 0.5;\n\t\tscene.add(high.pose);\n\t\tconst camera = new THREE.PerspectiveCamera(\n\t\t\t45,\n\t\t\twindow.innerWidth / window.innerHeight,\n\t\t\t0.01,\n\t\t\t100\n\t\t);\n\t\tcamera.position.z = 5;\n\t\tconst size = this.ports.renderer.getDrawingBufferSize(new THREE.Vector2());\n\t\tconst warmSize = getRefinementSize(size.x, size.y);\n\t\tconst target = new THREE.RenderTarget(warmSize.width, warmSize.height, {\n\t\t\ttype: THREE.HalfFloatType,\n\t\t\tsamples: 4\n\t\t});\n\t\tconst destination = this.ports.renderer.getRenderTarget();\n\t\tconst clear = this.ports.renderer.getClearColor(new THREE.Color());\n\t\tconst alpha = this.ports.renderer.getClearAlpha();\n\t\ttry {\n\t\t\tthis.ports.renderer.setRenderTarget(target);\n\t\t\tthis.ports.renderer.setClearColor(0, 0);\n\t\t\thigh.blend.render(\n\t\t\t\tthis.ports.renderer,\n\t\t\t\t(useHigh) => {\n\t\t\t\t\tthis.ports.renderer.clear();\n\t\t\t\t\tif (useHigh) this.ports.renderer.render(scene, camera);\n\t\t\t\t\telse drawLow();\n\t\t\t\t},\n\t\t\t\tfalse,\n\t\t\t\t0\n\t\t\t);\n\t\t} finally {\n\t\t\tthis.ports.renderer.setRenderTarget(destination);\n\t\t\tthis.ports.renderer.setClearColor(clear, alpha);\n\t\t\thigh.pose.removeFromParent();\n\t\t\ttarget.dispose();\n\t\t}\n\t\tconst device = (this.ports.renderer.backend as unknown as { device?: GPUDevice }).device;\n\t\tawait device?.queue.onSubmittedWorkDone();\n\t}\n\n\tgetRenderTargets() {\n\t\treturn [\n\t\t\t...(this.outlineMaskTarget ? [this.outlineMaskTarget] : []),\n\t\t\t...[this.fullQualityTargets, this.scrollQualityTargets].flatMap((set) =>\n\t\t\t\tset\n\t\t\t\t\t? [\n\t\t\t\t\t\t\tset.sceneCapture,\n\t\t\t\t\t\t\t...[...set.panelBlurCaptures.values()].flatMap((blur) => [\n\t\t\t\t\t\t\t\tblur.target,\n\t\t\t\t\t\t\t\t...gaussianTargets(blur.effect)\n\t\t\t\t\t\t\t])\n\t\t\t\t\t\t]\n\t\t\t\t\t: []\n\t\t\t)\n\t\t];\n\t}\n\tgetCanvasOutputs() {\n\t\treturn [\n\t\t\tthis.ports.backgroundCanvasTarget,\n\t\t\tthis.foregroundCanvasTarget,\n\t\t\tthis.carouselRearTarget\n\t\t].flatMap((target, index) => {\n\t\t\tif (!target) return [];\n\t\t\tconst size = target.getDrawingBufferSize(new THREE.Vector2());\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tband: ['background', 'foreground', 'carousel-rear'][index],\n\t\t\t\t\twidth: size.x,\n\t\t\t\t\theight: size.y,\n\t\t\t\t\tcolorAttachments: 1,\n\t\t\t\t\tdepthAttachments: 1\n\t\t\t\t}\n\t\t\t];\n\t\t});\n\t}\n\tconstructor(private readonly ports: StageRenderPorts) {\n\t\tthis.updateInteractionTheme();\n\t\tthis.setRenderSettings(ports.renderSettings);\n\t\tthis.setPageBackground(ports.pageBackground ?? '#ffffff');\n\t\tthis.backgroundCoverMaterial.fragmentNode = premultiplyAlpha(\n\t\t\tvec4(inverseAcesToneMapping(this.backgroundCoverColor), this.backgroundCoverOpacity)\n\t\t);\n\t\tthis.backgroundCoverMaterial.depthTest = this.backgroundCoverMaterial.depthWrite = false;\n\t\tthis.backgroundCoverMaterial.transparent =\n\t\t\tthis.backgroundCoverMaterial.premultipliedAlpha = true;\n\t\tthis.backgroundCoverMaterial.toneMapped = false;\n\t}\n\tprivate readonly backgroundCoverOpacity = uniform(0);\n\tprivate readonly backgroundCoverColor = uniform(new THREE.Vector3(1, 1, 1));\n\tsetPageBackground(value: string) {\n\t\tconst color = new THREE.Color(value);\n\t\tthis.backgroundCoverColor.value.set(color.r, color.g, color.b);\n\t}\n\tprivate readonly backgroundCoverMaterial = new THREE.NodeMaterial();\n\tprivate readonly backgroundCover = new THREE.QuadMesh(this.backgroundCoverMaterial);\n\tprivate readonly outlineMaskScene = new THREE.Scene();\n\tprivate readonly outlineColor = uniform(new THREE.Color());\n\tprivate readonly outlineStrength = uniform(1);\n\tprivate readonly outlineGlow = uniform(1);\n\tupdateInteractionTheme() {\n\t\tconst theme = this.ports.interactionTheme();\n\t\tthis.outlineColor.value.set(theme.outlineColor);\n\t\tthis.outlineStrength.value = theme.outlineOpacity;\n\t\tthis.outlineGlow.value = theme.outlineGlow;\n\t\tthis.resizeOutline(this.outlineWidth, this.outlineHeight);\n\t}\n\tprivate _minimapOverlayCapturePasses = 0;\n\tprivate _renderTargetSetCreations = 0;\n\tprivate _renderTargetSetResizes = 0;\n\tprivate _renderTargetSetWarmups = 0;\n\tprivate _stageModelRenderPasses = 0;\n\tprivate _panelBlurRenderPasses = 0;\n\tprivate _panelSceneRenderPasses = 0;\n\tprivate _minimapSceneRenderPasses = 0;\n\tprivate outlineMaskModel?: Object3D;\n\tprivate outlineMaskMaterial?: THREE.MeshBasicMaterial;\n\tprivate outlineCompositeMaterial?: THREE.MeshBasicNodeMaterial;\n\tprivate outlineQuad?: THREE.QuadMesh;\n\tprivate outlineMaskTarget?: THREE.RenderTarget;\n\tprivate outlineMaskValid = false;\n\tprivate readonly emptyOutlineMask = new THREE.DataTexture(new Uint8Array(4), 1, 1);\n\tprivate readonly displayOutlineMask = texture(this.emptyOutlineMask);\n\tprivate readonly displayOutlineOpacity = uniform(0);\n\tprivate outlineWidth = 1;\n\tprivate outlineHeight = 1;\n\tprivate outlineTexel = uniform(new THREE.Vector2(1, 1));\n\tprivate outlineGlowTexel = uniform(new THREE.Vector2(1, 1));\n\tprivate outlineOpacityScale = uniform(1);\n\tprivate fullQualityTargets?: StageRenderTargetSet;\n\tprivate scrollQualityTargets?: StageRenderTargetSet;\n\tprivate _activeRenderTargets?: StageRenderTargetSet;\n\tprivate stageDisplayMaterial?: THREE.NodeMaterial;\n\tprivate _stageDisplayQuad?: THREE.QuadMesh;\n\tprivate stageDisplayTextureNode?: THREE.TextureNode;\n\tprivate foregroundCanvasTarget?: THREE.CanvasTarget;\n\tprivate carouselRearTarget?: THREE.CanvasTarget;\n\tprivate carouselRearCanvas?: HTMLCanvasElement;\n\tprivate carouselRearSize = new THREE.Vector3();\n\tprivate foregroundCanvas?: HTMLCanvasElement;\n\tconfigureRenderer() {\n\t\tthis.ports.renderer.toneMapping = THREE.ACESFilmicToneMapping;\n\t\tthis.ports.renderer.toneMappingExposure = STAGE_TONE_MAPPING_EXPOSURE;\n\t\tthis.ports.renderer.setClearColor(0xffffff, 1);\n\t\tthis.ports.renderer.autoClear = false;\n\t\tthis.ports.backgroundCanvas.tabIndex = -1;\n\t\tthis.ports.backgroundCanvas.style.touchAction = 'pan-y';\n\t}\n\trenderCarouselRear() {\n\t\tif (!this.carouselRearTarget && !this.ports.catalogLayer()?.hasCarousel()) return;\n\t\tif (!this.carouselRearTarget) {\n\t\t\tconst canvas = document.createElement('canvas');\n\t\t\tcanvas.className = 'stage-webgpu-carousel-rear';\n\t\t\tcanvas.setAttribute('aria-hidden', 'true');\n\t\t\tthis.carouselRearCanvas = canvas;\n\t\t\tthis.carouselRearTarget = new THREE.CanvasTarget(canvas);\n\t\t\tthis.ports.container.appendChild(canvas);\n\t\t}\n\t\tconst target = this.carouselRearTarget;\n\t\tconst width = window.innerWidth,\n\t\t\theight = window.innerHeight,\n\t\t\tratio = this.getFullPixelRatio();\n\t\tif (\n\t\t\tthis.carouselRearSize.x !== width ||\n\t\t\tthis.carouselRearSize.y !== height ||\n\t\t\tthis.carouselRearSize.z !== ratio\n\t\t) {\n\t\t\tthis.resizeCanvasTarget(target, width, height, ratio);\n\t\t\tthis.carouselRearSize.set(width, height, ratio);\n\t\t}\n\t\tthis.ports.renderer.setCanvasTarget(target);\n\t\tthis.ports.renderer.setRenderTarget(null);\n\t\tthis.ports.renderer.setClearColor(0x000000, 0);\n\t\tthis.ports.renderer.clear();\n\t\tthis.ports.catalogLayer()?.renderRear(this.ports.renderer);\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t}\n\tcreateForegroundCanvas() {\n\t\tconst canvas = document.createElement('canvas');\n\t\tcanvas.className = 'stage-webgpu-foreground';\n\t\tcanvas.setAttribute('aria-hidden', 'true');\n\t\tthis.foregroundCanvas = canvas;\n\t\tthis.foregroundCanvasTarget = new THREE.CanvasTarget(canvas);\n\t\tthis.ports.container.appendChild(canvas);\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t}\n\tcreateModelOutline(model: Object3D) {\n\t\tthis.outlineMaskModel?.removeFromParent();\n\t\tthis.outlineMaskMaterial?.dispose();\n\t\tthis.outlineCompositeMaterial?.dispose();\n\t\tthis.outlineMaskTarget?.dispose();\n\t\tthis.outlineMaskMaterial = new THREE.MeshBasicMaterial({\n\t\t\tcolor: 0xffffff,\n\t\t\tdepthTest: true,\n\t\t\tdepthWrite: true,\n\t\t\tside: THREE.DoubleSide,\n\t\t\ttoneMapped: false\n\t\t});\n\n\t\tconst maskModel = model.clone(true);\n\t\tmaskModel.traverse((child) => {\n\t\t\tif (!isMesh(child)) return;\n\n\t\t\tconst sourceMesh = this.findSourceMeshByName(model, child.name);\n\t\t\tconst include = sourceMesh\n\t\t\t\t? this.ports.isInteractionMesh(sourceMesh)\n\t\t\t\t: this.ports.isInteractionMesh(child);\n\t\t\tchild.visible = include;\n\t\t\tchild.material = this.outlineMaskMaterial!;\n\t\t});\n\n\t\tthis.outlineMaskModel = maskModel;\n\t\tthis.outlineMaskScene.add(maskModel);\n\t\tthis.outlineMaskTarget = new THREE.RenderTarget(1, 1, {\n\t\t\tdepthBuffer: true,\n\t\t\tstencilBuffer: false,\n\t\t\tsamples: 4\n\t\t});\n\t\tthis.outlineMaskTarget.texture.minFilter = THREE.LinearFilter;\n\t\tthis.outlineMaskTarget.texture.magFilter = THREE.LinearFilter;\n\t\tthis.outlineMaskTarget.texture.generateMipmaps = false;\n\t\tthis.displayOutlineMask.value = this.outlineMaskTarget.texture;\n\t\tthis.outlineCompositeMaterial = this.createOutlineCompositeMaterial(\n\t\t\tthis.outlineMaskTarget.texture\n\t\t);\n\t\tthis.outlineQuad = new THREE.QuadMesh(this.outlineCompositeMaterial);\n\t\t// High refinement can replace the silhouette long after the last window resize.\n\t\tthis.resizeOutline(this.outlineWidth, this.outlineHeight);\n\t}\n\tprivate findSourceMeshByName(root: Object3D, name: string) {\n\t\tlet source: Mesh | undefined;\n\t\troot.traverse((child) => {\n\t\t\tif (!source && isMesh(child) && child.name === name) source = child;\n\t\t});\n\n\t\treturn source;\n\t}\n\tprivate createOutlineOpacity(mask: THREE.TextureNode) {\n\t\treturn createOutlineOpacity(mask, {\n\t\t\tcolor: this.outlineColor, strength: this.outlineStrength, glow: this.outlineGlow,\n\t\t\topacityScale: this.outlineOpacityScale, texel: this.outlineTexel, glowTexel: this.outlineGlowTexel\n\t\t}, this.renderMeasurement === 'halo-unconditional');\n\t}\n\tprivate createOutlineCompositeMaterial(maskTexture: THREE.Texture) {\n\t\tconst material = new THREE.MeshBasicNodeMaterial({\n\t\t\tblending: THREE.NormalBlending,\n\t\t\tdepthTest: false,\n\t\t\tdepthWrite: false,\n\t\t\ttransparent: true\n\t\t});\n\t\tmaterial.colorNode = this.outlineColor;\n\t\tmaterial.opacityNode = this.createOutlineOpacity(texture(maskTexture));\n\t\tmaterial.toneMapped = false;\n\t\treturn material;\n\t}\n\tdisposeSceneCapture() {\n\t\tthis.disposeRenderTargetSet(this.fullQualityTargets);\n\t\tthis.disposeRenderTargetSet(this.scrollQualityTargets);\n\t\tthis.stageDisplayMaterial?.dispose();\n\t\tthis.fullQualityTargets = undefined;\n\t\tthis.scrollQualityTargets = undefined;\n\t\tthis._activeRenderTargets = undefined;\n\t\tthis.stageDisplayMaterial = undefined;\n\t\tthis._stageDisplayQuad = undefined;\n\t\tthis.stageDisplayTextureNode = undefined;\n\t}\n\tcreateSceneCapture() {\n\t\tconst blurKeys = new Set(\n\t\t\tthis.ports.fallbackPanelOptions().map((options) => this.getPanelBlurKey(options))\n\t\t);\n\t\tthis.fullQualityTargets = this.createRenderTargetSet(1, blurKeys);\n\t\tthis.scrollQualityTargets = this.createRenderTargetSet(SCROLL_RENDER_SCALE, blurKeys);\n\t\tthis._activeRenderTargets = this.fullQualityTargets;\n\n\t\tthis.stageDisplayTextureNode = texture(this.fullQualityTargets.sceneCapture.texture);\n\t\tthis.stageDisplayMaterial = new THREE.NodeMaterial();\n\t\t// CanvasTarget already runs WebGPURenderer's output transform after this\n\t\t// fullscreen copy. Keep the capture linear here so ACES and sRGB are applied\n\t\t// exactly once; using renderOutput() here would wash out the entire stage.\n\t\t// CanvasTarget unpremultiplies before tone mapping and premultiplies afterwards.\n\t\t// Environment visibility is applied before the hero; the composed capture stays opaque.\n\t\tthis.stageDisplayMaterial.fragmentNode = vec4(this.stageDisplayTextureNode.rgb, 1);\n\t\tif (this.fuseOutline) {\n\t\t\tthis.emptyOutlineMask.needsUpdate = true;\n\t\t\tconst source = this.stageDisplayTextureNode;\n\t\t\tconst haloColor = this.outlineColor;\n\t\t\tconst haloOpacity = this.createOutlineOpacity(this.displayOutlineMask);\n\t\t\t// Merge into the existing linear display pass before the canvas output transform.\n\t\t\tthis.stageDisplayMaterial.fragmentNode = Fn(() => {\n\t\t\t\tconst rgb = source.rgb.toVar();\n\t\t\t\tIf(this.displayOutlineOpacity.greaterThan(0), () => {\n\t\t\t\t\trgb.assign(mix(rgb, haloColor, haloOpacity.mul(this.displayOutlineOpacity)));\n\t\t\t\t});\n\t\t\t\treturn vec4(rgb, 1);\n\t\t\t})();\n\t\t}\n\t\tthis.stageDisplayMaterial.depthTest = false;\n\t\tthis.stageDisplayMaterial.depthWrite = false;\n\t\tthis.stageDisplayMaterial.blending = THREE.NoBlending;\n\t\tthis.stageDisplayMaterial.toneMapped = false;\n\t\tthis.stageDisplayMaterial.needsUpdate = true;\n\t\tthis._stageDisplayQuad = new THREE.QuadMesh(this.stageDisplayMaterial);\n\t}\n\tprivate createRenderTargetSet(\n\t\tscale: number,\n\t\tblurKeys: ReadonlySet<number>\n\t): StageRenderTargetSet {\n\t\tthis._renderTargetSetCreations += 1;\n\t\tconst sceneCapture = new THREE.RenderTarget(1, 1, {\n\t\t\tdepthBuffer: true,\n\t\t\tstencilBuffer: false,\n\t\t\tsamples: 4,\n\t\t\ttype: THREE.HalfFloatType\n\t\t});\n\t\tsceneCapture.texture.minFilter = THREE.LinearFilter;\n\t\tsceneCapture.texture.magFilter = THREE.LinearFilter;\n\t\tsceneCapture.texture.generateMipmaps = false;\n\t\tsceneCapture.texture.colorSpace = THREE.NoColorSpace;\n\n\t\tconst panelBlurCaptures = new Map<number, PanelBlurCapture>();\n\t\tblurKeys.forEach((blur) => {\n\t\t\tpanelBlurCaptures.set(blur, this.createPanelBlurCapture(sceneCapture.texture, blur, scale));\n\t\t});\n\n\t\treturn { scale, sceneCapture, panelBlurCaptures };\n\t}\n\tprivate disposeRenderTargetSet(targets?: StageRenderTargetSet) {\n\t\tif (!targets) return;\n\t\ttargets.sceneCapture.dispose();\n\t\ttargets.panelBlurCaptures.forEach(({ target, material, effect }) => {\n\t\t\ttarget.dispose();\n\t\t\tmaterial.dispose();\n\t\t\teffect?.dispose();\n\t\t});\n\t\ttargets.panelBlurCaptures.clear();\n\t}\n\tresizeRenderTargets() {\n\t\tconst width = window.innerWidth;\n\t\tconst height = window.innerHeight;\n\t\tconst pixelRatio = this.getFullPixelRatio();\n\t\tif (!this.ports.frame().outgoingBackground)\n\t\t\tthis.resizeCanvasTarget(this.ports.backgroundCanvasTarget, width, height, pixelRatio);\n\t\tif (this.foregroundCanvasTarget) {\n\t\t\tthis.resizeCanvasTarget(this.foregroundCanvasTarget, width, height, pixelRatio);\n\t\t}\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\tthis.resizeRenderTargetSet(this.fullQualityTargets, width, height, pixelRatio);\n\t\tthis.resizeRenderTargetSet(this.scrollQualityTargets, width, height, pixelRatio);\n\t}\n\tprivate resizeRenderTargetSet(\n\t\ttargets: StageRenderTargetSet | undefined,\n\t\twidth: number,\n\t\theight: number,\n\t\tpixelRatio: number\n\t) {\n\t\tif (!targets) return;\n\t\tthis._renderTargetSetResizes += 1;\n\t\tconst captureWidth = Math.max(1, Math.round(width * pixelRatio * targets.scale));\n\t\tconst captureHeight = Math.max(1, Math.round(height * pixelRatio * targets.scale));\n\t\ttargets.sceneCapture.setSize(captureWidth, captureHeight);\n\t\ttargets.panelBlurCaptures.forEach(({ target, effect, resolutionScale }) => {\n\t\t\tif (effect) {\n\t\t\t\tconst effectScale = resolutionScale / (pixelRatio * targets.scale);\n\t\t\t\teffect.resolutionScale = effectScale;\n\t\t\t\teffect.setSize(captureWidth, captureHeight);\n\t\t\t\t// Consumers sample normalized screen UVs. Preserve the blur's actual\n\t\t\t\t// density instead of copying it back to a full-DPR viewport texture.\n\t\t\t\ttarget.setSize(\n\t\t\t\t\tMath.max(1, Math.round(captureWidth * effectScale)),\n\t\t\t\t\tMath.max(1, Math.round(captureHeight * effectScale))\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t// A zero-blur backdrop still contains sharp scene detail.\n\t\t\t\ttarget.setSize(captureWidth, captureHeight);\n\t\t\t}\n\t\t});\n\t}\n\tgetFullPixelRatio() {\n\t\treturn getStageRenderPixelRatio(\n\t\t\twindow.innerWidth,\n\t\t\twindow.innerHeight,\n\t\t\twindow.devicePixelRatio,\n\t\t\tthis.renderSettings\n\t\t);\n\t}\n\tsetRenderSettings(settings?: StageRenderSettings) {\n\t\tthis.renderSettings = resolveStageRenderSettings(settings);\n\t}\n\tgetRenderSettings() {\n\t\treturn { ...this.renderSettings };\n\t}\n\tsetScrollRenderQuality(active: boolean) {\n\t\tthis.ports.container.toggleAttribute('data-stage-scroll-rendering', active);\n\t\tconst nextTargets = active ? this.scrollQualityTargets : this.fullQualityTargets;\n\t\tif (!nextTargets || this._activeRenderTargets === nextTargets) return;\n\t\tthis.activateRenderTargetSet(nextTargets);\n\t}\n\tprivate activateRenderTargetSet(nextTargets: StageRenderTargetSet) {\n\t\tthis._activeRenderTargets = nextTargets;\n\t\tif (this.stageDisplayTextureNode) {\n\t\t\tthis.stageDisplayTextureNode.value = nextTargets.sceneCapture.texture;\n\t\t}\n\t\tthis.ports.panelRuntimes().forEach((runtime) => {\n\t\t\truntime.glass?.setBackdropTexture(this.getPanelBlurTexture(runtime.options, nextTargets));\n\t\t});\n\t\tthis.ports.minimaps().forEach((minimap) => {\n\t\t\tminimap.stageCaptureTexture.value = nextTargets.sceneCapture.texture;\n\t\t\tconst panel = this.ports.panelRuntimes()[minimap.panelIndex];\n\t\t\tif (panel) {\n\t\t\t\tminimap.stageBlurTexture.value =\n\t\t\t\t\tpanel.surface === 'solid'\n\t\t\t\t\t\t? nextTargets.sceneCapture.texture\n\t\t\t\t\t\t: this.getPanelBlurTexture(panel.options, nextTargets);\n\t\t\t}\n\t\t\tminimap.overlayCaptureDirty = true;\n\t\t});\n\t}\n\twarmRenderTargetSets() {\n\t\tconst previousTargets = this._activeRenderTargets;\n\t\tconst availableTargets = [this.fullQualityTargets, this.scrollQualityTargets].filter(\n\t\t\t(targets): targets is StageRenderTargetSet => Boolean(targets)\n\t\t);\n\t\tif (!previousTargets || !this._stageDisplayQuad || availableTargets.length !== 2) return;\n\t\t// Finish with the active/full-quality set so the warm-up itself cannot\n\t\t// leave a lower-resolution frame on the visible canvas.\n\t\tconst targetSets = [\n\t\t\t...availableTargets.filter((targets) => targets !== previousTargets),\n\t\t\tpreviousTargets\n\t\t];\n\n\t\ttry {\n\t\t\twithRendererState(this.ports.renderer, () => {\n\t\t\t\ttargetSets.forEach((targets) => {\n\t\t\t\t\tthis.activateRenderTargetSet(targets);\n\t\t\t\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\t\t\t\tthis.ports.renderer.setRenderTarget(targets.sceneCapture);\n\t\t\t\t\tthis.ports.renderStage();\n\t\t\t\t\tthis.renderPanelBlurCaptures(targets, true);\n\t\t\t\t\tthis.renderStageDisplay();\n\t\t\t\t\tthis.renderBackgroundPanels();\n\t\t\t\t\tthis._renderTargetSetWarmups += 1;\n\t\t\t\t});\n\t\t\t});\n\t\t} finally {\n\t\t\tthis.activateRenderTargetSet(previousTargets);\n\t\t}\n\t}\n\tprivate resizeCanvasTarget(\n\t\ttarget: THREE.CanvasTarget,\n\t\twidth: number,\n\t\theight: number,\n\t\tpixelRatio: number\n\t) {\n\t\tthis.ports.renderer.setCanvasTarget(target);\n\t\tthis.ports.renderer.setPixelRatio(pixelRatio);\n\t\t// The CSS display rectangle must match the camera/buffer even while mobile\n\t\t// browser chrome animates. 100vh can represent a different viewport height.\n\t\tthis.ports.renderer.setSize(width, height, true);\n\t}\n\tprivate createPanelBlurCapture(\n\t\tsceneTexture: THREE.Texture,\n\t\tblur: number,\n\t\trenderScale: number\n\t): PanelBlurCapture {\n\t\tconst target = new THREE.RenderTarget(1, 1, {\n\t\t\tdepthBuffer: false,\n\t\t\tstencilBuffer: false\n\t\t});\n\t\ttarget.texture.minFilter = THREE.LinearFilter;\n\t\ttarget.texture.magFilter = THREE.LinearFilter;\n\t\ttarget.texture.generateMipmaps = false;\n\t\ttarget.texture.colorSpace = THREE.NoColorSpace;\n\n\t\tconst sourceTexture = texture(sceneTexture);\n\t\t// Scale resolution and sample offsets together to retain the CSS blur radius.\n\t\t// The final texture uses the same density and normalized screen-space mapping.\n\t\tconst query = new URLSearchParams(typeof window === 'undefined' ? '' : window.location?.search);\n\t\tconst fullResolutionProbe =\n\t\t\tquery.get('stage-test') === '1' && query.get('stage-backdrop') === 'full';\n\t\tconst blurResolution = blur >= 4 && !fullResolutionProbe ? 0.5 : 1;\n\t\tconst effect =\n\t\t\tblur > 0\n\t\t\t\t? gaussianBlur(sourceTexture, blurResolution, Math.max(1, Math.round(blur)), {\n\t\t\t\t\t\tresolutionScale: blurResolution / (this.getFullPixelRatio() * renderScale)\n\t\t\t\t\t})\n\t\t\t\t: undefined;\n\t\tconst material = new THREE.NodeMaterial();\n\t\tmaterial.colorNode = effect ?? sourceTexture;\n\t\tmaterial.needsUpdate = true;\n\n\t\treturn {\n\t\t\tresolutionScale: blurResolution,\n\t\t\teffect,\n\t\t\tmaterial,\n\t\t\tquad: new THREE.QuadMesh(material),\n\t\t\ttarget\n\t\t};\n\t}\n\tprivate getPanelBlurKey(options: LiquidGlassPanelOptions) {\n\t\tconst value = Number.isFinite(options.backdropBlur) ? (options.backdropBlur ?? 0) : 0;\n\t\treturn Math.round(THREE.MathUtils.clamp(value, 0, 100) * 100) / 100;\n\t}\n\t/** Allocate changed blur settings without replacing the scene capture or model resources. */\n\tsyncPanelBlurCaptures() {\n\t\tconst keys = new Set(this.ports.fallbackPanelOptions().map((options) => this.getPanelBlurKey(options)));\n\t\tif (!this._activeRenderTargets && keys.size) this.createSceneCapture();\n\t\tfor (const targets of [this.fullQualityTargets, this.scrollQualityTargets]) {\n\t\t\tif (!targets) continue;\n\t\t\tfor (const key of keys) if (!targets.panelBlurCaptures.has(key))\n\t\t\t\ttargets.panelBlurCaptures.set(key, this.createPanelBlurCapture(targets.sceneCapture.texture, key, targets.scale));\n\t\t\tfor (const [key, capture] of targets.panelBlurCaptures) if (!keys.has(key)) {\n\t\t\t\tcapture.target.dispose(); capture.material.dispose(); capture.effect?.dispose();\n\t\t\t\ttargets.panelBlurCaptures.delete(key);\n\t\t\t}\n\t\t\tthis.resizeRenderTargetSet(targets, window.innerWidth, window.innerHeight, this.getFullPixelRatio());\n\t\t}\n\t}\n\tgetPanelBlurTexture(options: LiquidGlassPanelOptions, targets = this._activeRenderTargets) {\n\t\tconst blur = this.getPanelBlurKey(options);\n\t\tconst capture = targets?.panelBlurCaptures.get(blur);\n\t\tif (!capture) {\n\t\t\tthrow new Error(`No backdrop capture exists for panel blur ${blur}`);\n\t\t}\n\t\treturn capture.target.texture;\n\t}\n\t/** Prepare hidden close-up effects during page binding, never during camera motion.\n\t * Captures stay invalid: the first visible frame must still sample the live element.\n\t * Only compile the foreground scene, so preparation cannot paint an overlay on screen.\n\t */\n\tasync prepareZoomEffects() {\n\t\tif (!this.foregroundCanvasTarget || this.disposed) return;\n\t\tconst views = [...this.ports.minimaps().values()].filter(\n\t\t\t(view) => !this.preparedZoomViews.has(view)\n\t\t);\n\t\tif (!views.length) return;\n\t\tconst pending: Promise<unknown>[] = [];\n\t\tfor (const view of views) {\n\t\t\twithRendererState(this.ports.renderer, () => {\n\t\t\t\tthis.ports.renderMinimapBlur(view);\n\t\t\t\tif (this.ports.panelRuntimes()[view.panelIndex]?.surface === 'glass')\n\t\t\t\t\tthis.ports.renderMinimapPanelCapture(view);\n\t\t\t\tthis.ports.renderer.setCanvasTarget(this.foregroundCanvasTarget!);\n\t\t\t\tthis.ports.renderer.setRenderTarget(null);\n\t\t\t\tconst ringMaterial = view.overlayRing.material;\n\t\t\t\tconst compositeCulled = view.overlayComposite.frustumCulled;\n\t\t\t\tconst ringCulled = view.overlayRing.frustumCulled;\n\t\t\t\ttry {\n\t\t\t\t\t// A newly bound minimap camera may not yet have its screen projection.\n\t\t\t\t\t// Compile the hidden effects even if that initial frustum excludes them.\n\t\t\t\t\tview.overlayComposite.frustumCulled = false;\n\t\t\t\t\tview.overlayRing.frustumCulled = false;\n\t\t\t\t\twithVisibility(\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t...[...this.ports.minimaps().values()].map((entry) => entry.layer),\n\t\t\t\t\t\t\tview.overlayComposite,\n\t\t\t\t\t\t\tview.overlayRing\n\t\t\t\t\t\t],\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tfor (const entry of this.ports.minimaps().values())\n\t\t\t\t\t\t\t\tentry.layer.visible = entry === view;\n\t\t\t\t\t\t\tview.overlayComposite.visible = true;\n\t\t\t\t\t\t\tview.overlayRing.visible = true;\n\t\t\t\t\t\t\tfor (const material of [view.ringRestMaterial, view.ringForegroundMaterial]) {\n\t\t\t\t\t\t\t\tview.overlayRing.material = material;\n\t\t\t\t\t\t\t\tpending.push(\n\t\t\t\t\t\t\t\t\tthis.ports.renderer.compileAsync(this.ports.minimapScene(), view.screenCamera)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t} finally {\n\t\t\t\t\tview.overlayRing.material = ringMaterial;\n\t\t\t\t\tview.overlayComposite.frustumCulled = compositeCulled;\n\t\t\t\t\tview.overlayRing.frustumCulled = ringCulled;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tawait Promise.all(pending);\n\t\tconst device = (this.ports.renderer.backend as unknown as { device?: GPUDevice }).device;\n\t\tawait device?.queue.onSubmittedWorkDone();\n\t\tif (!this.disposed) for (const view of views) this.preparedZoomViews.add(view);\n\t}\n\trenderForegroundLayer() {\n\t\tif (!this.foregroundCanvasTarget) return;\n\n\t\tthis.ports.renderer.setCanvasTarget(this.foregroundCanvasTarget);\n\t\tthis.ports.renderer.setRenderTarget(null);\n\t\tthis.ports.renderer.setClearColor(0x000000, 0);\n\t\tthis.ports.renderer.clear();\n\t\tthis.renderMinimapScene();\n\t\tfor (const entry of this.ports.exitingMinimaps())\n\t\t\tif (entry.minimap.displayOpacity > 0) entry.capture.render(this.ports.renderer);\n\t\tthis.ports.catalogLayer()?.draw(this.ports.renderer, 'front');\n\t\tfor (const entry of this.ports.contentSecondaries()) entry.capture.render(this.ports.renderer);\n\t\tthis.ports.spatialCapture()?.render(this.ports.renderer);\n\t}\n\trenderBackgroundPanels() {\n\t\treturn withVisibility(\n\t\t\tthis.ports.panelRuntimes().map((panel) => panel.group),\n\t\t\t() => {\n\t\t\t\tconst minimaps = Array.from(this.ports.minimaps().values());\n\t\t\t\tconst minimapPanelIndices = new Set(minimaps.map((minimap) => minimap.panelIndex));\n\t\t\t\tconst panelVisibility = this.ports.panelRuntimes().map((panel) => panel.group.visible);\n\t\t\t\tconst visibleMinimaps = minimaps.filter(\n\t\t\t\t\t(minimap) =>\n\t\t\t\t\t\tminimap.viewportVisible &&\n\t\t\t\t\t\tpanelVisibility[minimap.panelIndex] &&\n\t\t\t\t\t\tBoolean(this.ports.panelRuntimes()[minimap.panelIndex]?.glass)\n\t\t\t\t);\n\t\t\t\tconst hasVisibleRegularPanel = this.ports\n\t\t\t\t\t.panelRuntimes()\n\t\t\t\t\t.some(\n\t\t\t\t\t\t(panel, index) =>\n\t\t\t\t\t\t\tBoolean(panel.glass) && panelVisibility[index] && !minimapPanelIndices.has(index)\n\t\t\t\t\t);\n\n\t\t\t\t// Regular panels share the stage camera. Minimap panels use an off-axis\n\t\t\t\t// screen camera, so leave them out of this pass and draw them separately.\n\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\tif (panel.glass) {\n\t\t\t\t\t\tpanel.group.visible = panelVisibility[index] && !minimapPanelIndices.has(index);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tif (hasVisibleRegularPanel) {\n\t\t\t\t\tthis.ports.renderer.clearDepth();\n\t\t\t\t\tthis.ports.renderer.render(this.ports.panelScene, this.ports.panelCamera);\n\t\t\t\t\tthis._panelSceneRenderPasses += 1;\n\t\t\t\t}\n\n\t\t\t\t// Keep the glass body in the same compositing layer as the other panels,\n\t\t\t\t// but retain the exact camera and transform used by its foreground model.\n\t\t\t\tvisibleMinimaps.forEach((active) => {\n\t\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\t\tif (panel.glass) {\n\t\t\t\t\t\t\tpanel.group.visible = panelVisibility[index] && index === active.panelIndex;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tthis.ports.renderer.clearDepth();\n\t\t\t\t\tthis.ports.renderer.render(this.ports.panelScene, active.screenCamera);\n\t\t\t\t\tthis._panelSceneRenderPasses += 1;\n\t\t\t\t});\n\n\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\tpanel.group.visible = panelVisibility[index];\n\t\t\t\t});\n\t\t\t}\n\t\t);\n\t}\n\tprivate renderMinimapScene() {\n\t\treturn withVisibility(\n\t\t\t[\n\t\t\t\t...this.ports.panelRuntimes().map((panel) => panel.group),\n\t\t\t\t...[...this.ports.minimaps().values()].flatMap((view) => [view.layer, view.spatialElementRoot])\n\t\t\t],\n\t\t\t() => {\n\t\t\t\tif (!this.ports.minimaps().size) return;\n\n\t\t\t\tconst minimaps = Array.from(this.ports.minimaps().values());\n\t\t\t\tconst visibleMinimaps = minimaps.filter(\n\t\t\t\t\t(minimap) =>\n\t\t\t\t\t\tminimap.viewportVisible &&\n\t\t\t\t\t\tthis.ports.getPanelTransitionOpacity(this.ports.panelRuntimes()[minimap.panelIndex]) >\n\t\t\t\t\t\t\t0.001\n\t\t\t\t);\n\t\t\t\tif (!visibleMinimaps.length) return;\n\t\t\t\tconst panelVisibility = this.ports.panelRuntimes().map((panel) => panel.group.visible);\n\n\t\t\t\tvisibleMinimaps.forEach((active) => {\n\t\t\t\t\tminimaps.forEach((minimap) => {\n\t\t\t\t\t\tminimap.layer.visible = minimap === active;\n\t\t\t\t\t});\n\t\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\t\tif (panel.glass) panel.group.visible = index === active.panelIndex;\n\t\t\t\t\t});\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tactive.overlayComposite.visible &&\n\t\t\t\t\t\t(!active.overlayCaptureValid ||\n\t\t\t\t\t\t\t(this.measurementMode !== 'reuse-capture' && active.overlayCaptureDirty))\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.ports.renderMinimapBlur(active);\n\t\t\t\t\t\tactive.overlayCaptureDirty = false;\n\t\t\t\t\t\tactive.overlayCaptureValid = true;\n\t\t\t\t\t\tthis._minimapOverlayCapturePasses += 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (\n\t\t\t\t\t\tactive.overlayComposite.visible &&\n\t\t\t\t\t\tthis.ports.panelRuntimes()[active.panelIndex]?.surface === 'glass' &&\n\t\t\t\t\t\t(!active.panelCaptureValid ||\n\t\t\t\t\t\t\t(this.measurementMode !== 'reuse-capture' && active.panelCaptureDirty))\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis.ports.renderMinimapPanelCapture(active);\n\t\t\t\t\t\tactive.panelCaptureDirty = false;\n\t\t\t\t\t\tactive.panelCaptureValid = true;\n\t\t\t\t\t}\n\t\t\t\t\tthis.ports.renderer.clearDepth();\n\t\t\t\t\tconst spatialElementVisible = active.spatialElementRoot.visible;\n\t\t\t\t\tif (\n\t\t\t\t\t\tthis.ports.frame().catalogDockTarget &&\n\t\t\t\t\t\tthis.ports.frame().catalogHandoff &&\n\t\t\t\t\t\t!this.ports.frame().catalogMotionComplete\n\t\t\t\t\t)\n\t\t\t\t\t\tactive.spatialElementRoot.visible = false;\n\t\t\t\t\tthis.ports.renderer.render(this.ports.minimapScene(), active.screenCamera);\n\t\t\t\t\tactive.spatialElementRoot.visible = spatialElementVisible;\n\t\t\t\t\tthis._minimapSceneRenderPasses += 1;\n\t\t\t\t});\n\n\t\t\t\tthis.ports.panelRuntimes().forEach((panel, index) => {\n\t\t\t\t\tpanel.group.visible = panelVisibility[index];\n\t\t\t\t});\n\t\t\t\tminimaps.forEach((minimap) => {\n\t\t\t\t\tminimap.layer.visible =\n\t\t\t\t\t\tminimap.viewportVisible &&\n\t\t\t\t\t\tthis.ports.getPanelTransitionOpacity(this.ports.panelRuntimes()[minimap.panelIndex]) >\n\t\t\t\t\t\t\t0.001;\n\t\t\t\t});\n\t\t\t}\n\t\t);\n\t}\n\trenderModelOutline(target: THREE.RenderTarget | null, opacity = 1) {\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\t// The transferred model owns its moving outline, including its interpolated camera.\n\t\tif (this.ports.spatialCapture?.()) return;\n\t\tif (this.renderMeasurement === 'no-halo' || !this.ports.frame().modelHover) return;\n\t\tconst opacityBefore = this.outlineOpacityScale.value;\n\t\ttry {\n\t\t\treturn withRendererState(this.ports.renderer, () => {\n\t\t\t\tif (\n\t\t\t\t\t!this.ports.frame().stageViewportVisible ||\n\t\t\t\t\t!this.ports.frame().modelHover ||\n\t\t\t\t\t!this.outlineMaskTarget ||\n\t\t\t\t\t!this.outlineQuad\n\t\t\t\t)\n\t\t\t\t\treturn;\n\n\t\t\t\tconst previousClearAlpha = this.ports.renderer.getClearAlpha();\n\t\t\t\tconst previousClearColor = this.ports.renderer.getClearColor(new THREE.Color());\n\t\t\t\tconst previousOpacity = this.outlineOpacityScale.value;\n\n\t\t\t\tif (this.renderMeasurement !== 'halo-frozen-mask' || !this.outlineMaskValid) {\n\t\t\t\t\tthis.ports.renderer.setRenderTarget(this.outlineMaskTarget);\n\t\t\t\t\tthis.ports.renderer.setClearColor(0x000000, 0);\n\t\t\t\t\tthis.ports.renderer.clear();\n\t\t\t\t\tthis.ports.renderer.render(this.outlineMaskScene, this.ports.camera);\n\t\t\t\t\tthis.outlineMaskValid = true;\n\t\t\t\t}\n\t\t\t\tthis.ports.renderer.setClearColor(previousClearColor, previousClearAlpha);\n\t\t\t\tthis.ports.renderer.setRenderTarget(target);\n\n\t\t\t\tthis.outlineOpacityScale.value = opacity;\n\t\t\t\t// Glass can refract the sharp scene capture, so keep the halo in that\n\t\t\t\t// capture while a glass surface is visible. Forced fusion is a test probe.\n\t\t\t\tconst fuseThisFrame =\n\t\t\t\t\tthis.fuseOutline &&\n\t\t\t\t\t(this.renderMeasurement === 'halo-fused' ||\n\t\t\t\t\t\t!this.ports\n\t\t\t\t\t\t\t.panelRuntimes()\n\t\t\t\t\t\t\t.some((panel) => panel.surface === 'glass' && panel.group.visible));\n\t\t\t\tif (fuseThisFrame) this.displayOutlineOpacity.value = opacity;\n\t\t\t\telse if (this.renderMeasurement !== 'halo-mask-only')\n\t\t\t\t\tthis.outlineQuad.render(this.ports.renderer);\n\t\t\t\tthis.outlineOpacityScale.value = previousOpacity;\n\t\t\t});\n\t\t} finally {\n\t\t\tthis.outlineOpacityScale.value = opacityBefore;\n\t\t}\n\t}\n\trenderPanelBlurCaptures(renderTargets: StageRenderTargetSet, forceAll = false) {\n\t\tconst visibleBlurKeys = forceAll\n\t\t\t? undefined\n\t\t\t: new Set(\n\t\t\t\t\tthis.ports.panelRuntimes().flatMap((panel, index) => {\n\t\t\t\t\t\tif (!panel.group.visible) return [];\n\t\t\t\t\t\tconst needsGlassCapture = panel.surface === 'glass' && Boolean(panel.glass);\n\t\t\t\t\t\tconst needsFrostedMinimapCapture =\n\t\t\t\t\t\t\tpanel.surface === 'frosted' &&\n\t\t\t\t\t\t\tBoolean(this.ports.minimaps().get(index)?.overlayComposite.visible);\n\t\t\t\t\t\treturn needsGlassCapture || needsFrostedMinimapCapture\n\t\t\t\t\t\t\t? [this.getPanelBlurKey(panel.options)]\n\t\t\t\t\t\t\t: [];\n\t\t\t\t\t})\n\t\t\t\t);\n\t\trenderTargets.panelBlurCaptures.forEach(({ target, quad }, blurKey) => {\n\t\t\tif (visibleBlurKeys && !visibleBlurKeys.has(blurKey)) return;\n\t\t\tconst size = `${target.width}:${target.height}`;\n\t\t\tif (\n\t\t\t\tthis.renderMeasurement === 'frozen-backdrop' &&\n\t\t\t\tthis.measuredBackdropSeeds.get(target) === size\n\t\t\t)\n\t\t\t\treturn;\n\t\t\tthis.ports.renderer.setRenderTarget(target);\n\t\t\tthis.ports.renderer.clear();\n\t\t\tquad.render(this.ports.renderer);\n\t\t\tif (this.renderMeasurement === 'frozen-backdrop')\n\t\t\t\tthis.measuredBackdropSeeds.set(target, size);\n\t\t\tthis._panelBlurRenderPasses += 1;\n\t\t});\n\t}\n\trenderStageDisplay() {\n\t\tif (!this._stageDisplayQuad) return;\n\t\tthis.ports.renderer.setRenderTarget(null);\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\tthis.ports.renderer.setClearColor(0xffffff, 1);\n\t\tthis.ports.renderer.clear();\n\t\tthis._stageDisplayQuad.render(this.ports.renderer);\n\t}\n\trenderStageContents() {\n\t\tthis.ports.renderer.clear();\n\t\tthis.ports.renderer.render(this.ports.backgroundScene, this.ports.camera);\n\t\tthis.ports.renderer.render(this.ports.tintScene, this.ports.tintCamera);\n\t\tthis.backgroundCoverOpacity.value = 1 - this.ports.frame().backgroundReveal;\n\t\tif (this.backgroundCoverOpacity.value > 0) this.backgroundCover.render(this.ports.renderer);\n\t\tif (\n\t\t\tthis.ports.frame().stageViewportVisible &&\n\t\t\t(!this.ports.frame().catalogHandoff || this.ports.frame().catalogMotionComplete) &&\n\t\t\t(!this.ports.frame().catalog || this.ports.frame().pageModelReady)\n\t\t) {\n\t\t\tthis.ports.renderer.clearDepth();\n\t\t\tthis.ports.renderer.render(this.ports.scene, this.ports.camera);\n\t\t\tthis._stageModelRenderPasses += 1;\n\t\t}\n\t}\n\treleaseOutline() {\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\tthis.displayOutlineMask.value = this.emptyOutlineMask;\n\t\tthis.outlineMaskModel?.removeFromParent();\n\t\tthis.outlineMaskMaterial?.dispose();\n\t\tthis.outlineCompositeMaterial?.dispose();\n\t\tthis.outlineMaskTarget?.dispose();\n\t\tthis.outlineMaskModel = undefined;\n\t\tthis.outlineMaskMaterial = undefined;\n\t\tthis.outlineCompositeMaterial = undefined;\n\t\tthis.outlineMaskTarget = undefined;\n\t\tthis.outlineQuad = undefined;\n\t}\n\tresizeOutline(width: number, height: number) {\n\t\tthis.outlineWidth = width;\n\t\tthis.outlineHeight = height;\n\t\tconst scale = this.renderMeasurement === 'halo-half-mask' ? 0.5 : 1;\n\t\tthis.outlineMaskTarget?.setSize(\n\t\t\tMath.max(1, Math.round(width * scale)),\n\t\t\tMath.max(1, Math.round(height * scale))\n\t\t);\n\t\tthis.outlineMaskValid = false;\n\t\tthis.outlineTexel.value.set(\n\t\t\tthis.ports.interactionTheme().outlineThickness / Math.max(width, 1),\n\t\t\tthis.ports.interactionTheme().outlineThickness / Math.max(height, 1)\n\t\t);\n\t\tthis.outlineGlowTexel.value.set(\n\t\t\t(this.ports.interactionTheme().outlineThickness *\n\t\t\t\tthis.ports.interactionTheme().outlineGlowThickness) /\n\t\t\t\tMath.max(width, 1),\n\t\t\t(this.ports.interactionTheme().outlineThickness *\n\t\t\t\tthis.ports.interactionTheme().outlineGlowThickness) /\n\t\t\t\tMath.max(height, 1)\n\t\t);\n\t}\n\tdispose() {\n\t\tif (this.disposed) return;\n\t\tthis.disposed = true;\n\t\tthis.releaseOutline();\n\t\tthis.emptyOutlineMask.dispose();\n\t\tthis.disposeSceneCapture();\n\t\tthis.backgroundCoverMaterial.dispose();\n\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\tthis.foregroundCanvasTarget?.dispose();\n\t\tthis.foregroundCanvasTarget = undefined;\n\t\tthis.carouselRearTarget?.dispose();\n\t\tthis.carouselRearTarget = undefined;\n\t\tthis.carouselRearCanvas?.remove();\n\t\tthis.foregroundCanvas?.remove();\n\t}\n\n\tget activeRenderTargets() {\n\t\treturn this._activeRenderTargets;\n\t}\n\tget stageDisplayQuad() {\n\t\treturn this._stageDisplayQuad;\n\t}\n\tget minimapOverlayCapturePasses() {\n\t\treturn this._minimapOverlayCapturePasses;\n\t}\n\tget renderTargetSetCreations() {\n\t\treturn this._renderTargetSetCreations;\n\t}\n\tget renderTargetSetResizes() {\n\t\treturn this._renderTargetSetResizes;\n\t}\n\tget renderTargetSetWarmups() {\n\t\treturn this._renderTargetSetWarmups;\n\t}\n\tget stageModelRenderPasses() {\n\t\treturn this._stageModelRenderPasses;\n\t}\n\tget panelBlurRenderPasses() {\n\t\treturn this._panelBlurRenderPasses;\n\t}\n\tget panelSceneRenderPasses() {\n\t\treturn this._panelSceneRenderPasses;\n\t}\n\tget minimapSceneRenderPasses() {\n\t\treturn this._minimapSceneRenderPasses;\n\t}\n\n\t/** The facade advances owners first; this command submits the ordered GPU passes. */\n\trenderFrame(contentOnly: boolean, outline: boolean) {\n\t\tthis.displayOutlineOpacity.value = 0;\n\t\treturn withRendererState(this.ports.renderer, () => {\n\t\t\tthis.ports.renderer.setCanvasTarget(this.ports.backgroundCanvasTarget);\n\t\t\tif (contentOnly) {\n\t\t\t\tthis.ports.renderer.setRenderTarget(null);\n\t\t\t\tif (!this.ports.frame().outgoingBackground) {\n\t\t\t\t\tthis.ports.renderer.setClearColor(0, 0);\n\t\t\t\t\tthis.ports.renderer.clear();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!this._activeRenderTargets) return;\n\t\t\t\tthis.ports.renderer.setRenderTarget(this._activeRenderTargets.sceneCapture);\n\t\t\t\tthis.ports.renderStage();\n\t\t\t\tthis.renderPanelBlurCaptures(this._activeRenderTargets);\n\t\t\t\tif (outline) this.renderModelOutline(this._activeRenderTargets.sceneCapture, 1);\n\t\t\t\tthis.renderStageDisplay();\n\t\t\t\tthis.renderBackgroundPanels();\n\t\t\t}\n\t\t\tthis.renderCarouselRear();\n\t\t\tthis.renderForegroundLayer();\n\t\t});\n\t}\n}\n"]}
|
|
@@ -168,6 +168,7 @@ export interface StageRenderSettings {
|
|
|
168
168
|
}
|
|
169
169
|
/** Construction options for a {@link StageExperience}. */
|
|
170
170
|
export interface StageExperienceOptions {
|
|
171
|
+
deviceOrientation?: boolean;
|
|
171
172
|
/** Stage-wide output quality; native DOM content remains at the device pixel ratio. */
|
|
172
173
|
renderSettings?: StageRenderSettings;
|
|
173
174
|
/** Directory containing Draco decoder files, including trailing slash. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stageTypes.d.ts","sourceRoot":"","sources":["../../src/stage/stageTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAE9D,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IAClC,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,iFAAiF;AACjF,MAAM,WAAW,kBAAkB;IAClC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACX;AAED,qEAAqE;AACrE,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EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACzD;AAED,kEAAkE;AAClE,MAAM,WAAW,qBAAqB;IACrC,YAAY,EAAE,mBAAmB,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uFAAuF;IACvF,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stageTypes.js","sourceRoot":"","sources":["../../src/stage/stageTypes.ts"],"names":[],"mappings":"","sourcesContent":["import type { SpatialElementLodPair } from '../catalog/spatialElementLodPair.js';\nimport type { ColorRepresentation, Mesh } from 'three';\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\n\n/** Selects the rendering backend and visual complexity of a panel surface. */\nexport type StagePanelSurface = 'solid' | 'frosted' | 'glass';\n\n/** Controls how the HDR environment is presented behind the stage. */\nexport interface BackgroundSettings {\n\t/** Three.js background blur amount in the range supported by the active renderer. */\n\tblurriness: number;\n\t/** Color mixed over the HDR background. */\n\ttint: ColorRepresentation;\n\t/** Strength of the background tint, where zero leaves the HDR unchanged. */\n\ttintIntensity: number;\n}\n\n/** Axis rotations, in radians, applied to a loaded model before it is fitted. */\nexport interface StageModelRotation {\n\tx?: number;\n\ty?: number;\n\tz?: number;\n}\n\n/** Controls the fitted camera's initial orbit around the element. */\nexport interface StageCameraSettings {\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n\t/** Empty space in CSS pixels reserved on every side of the automatic element fit. */\n\tfitPadding?: number;\n\t/** Presentation multiplier applied after fitting. Values above one make the element larger. */\n\tfitScale?: number;\n}\n\n/** Supported blend modes for declarative stage material replacements. */\nexport type StageMaterialBlending = 'normal' | 'additive';\n\n/** Serializable subset used to replace an asset mesh with a physical material. */\nexport interface StagePhysicalMaterialSettings {\n\ttype: 'physical';\n\tcolor?: ColorRepresentation;\n\topacity?: number;\n\ttransparent?: boolean;\n\tmetalness?: number;\n\troughness?: number;\n\tiridescence?: number;\n\tclearcoat?: number;\n\tblending?: StageMaterialBlending;\n}\n\nexport type StageMaterialSettings = StagePhysicalMaterialSettings;\n\n/** Controls the authored model pose and which meshes represent the actual element. */\nexport interface StageModelSettings {\n\t/** Optional rotation applied on top of the GLB scene's authored root rotation. */\n\trotation?: StageModelRotation;\n\t/**\n\t * Exact, case-sensitive mesh names that remain visible on the main stage but do\n\t * not participate in element bounds, picking, outlining, or element minimaps.\n\t */\n\texcludeMeshes?: readonly string[];\n\t/** Physical material replacements keyed by exact, case-sensitive mesh name. */\n\tmaterialOverrides?: Readonly<Record<string, StageMaterialSettings>>;\n}\n\n/** Controls the minimap model presentation while its panel is docked. */\nexport interface StageMinimapDockedView {\n\t/** Model multiplier used only while the minimap is docked. */\n\tscale?: number;\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n}\n\n/** Configures the optional element minimap rendered on top of a panel. */\nexport interface StageMinimapOptions {\n\t/** Panel height, in CSS pixels, at maximum stage zoom. */\n\texpandedHeight?: number;\n\t/** Space, in CSS pixels, reserved around the minimap model. */\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted minimap model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\t/** Color drawn over the blurred area outside the viewport cutout. */\n\toverlayColor?: ColorRepresentation;\n\t/** Overlay alpha using the same zero-to-one convention as CSS/Figma. */\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\t/** Color behind the minimap capture when no stage background is rendered. */\n\tcontextColor?: ColorRepresentation;\n\t/** Alpha of the minimap capture background. */\n\tcontextOpacity?: number;\n\t/** Color of the rectangle describing the main camera viewport. */\n\tviewportColor?: ColorRepresentation;\n}\n\n/** Connects one DOM panel declaration to its WebGPU and CSS3D representations. */\nexport interface StagePanelTarget {\n\t/** Accessible DOM content displayed above the WebGPU panel. */\n\tcontent: HTMLElement;\n\t/** Inner content padding in CSS pixels. */\n\tcontentInset: number;\n\t/** DOM element whose layout determines the panel position and dimensions. */\n\tframe: HTMLElement;\n\t/** Complete DOM surface used by solid and frosted CSS3D panels. */\n\tsurfaceElement: HTMLElement;\n\t/** Enables the panel's minimap rendering mode. */\n\tminimap?: StageMinimapOptions;\n\t/** true: proximity lift and tilt; 'lift': mouse hover raises 2px without tilt; false: still. */\n\tpointerReactive?: boolean | 'lift';\n\t/** true fades/moves with close-up; false keeps its pose; 'top-right' travels to the corner. */\n\tfocusReactive?: boolean | 'top-right';\n\t/** Optional neighbouring panel frame moved with the corner control during UI clearance. */\n\tgetFocusAnchor?: () => HTMLElement | undefined;\n\t/** Keep accessible content in its DOM owner (for example, a native popover). */\n\tnativeContent?: boolean;\n\t/** Position native content after its anchors move, before measuring and drawing its surface. */\n\tupdateNativeLayout?: () => void;\n\t/** Whether an optional panel is currently open. */\n\tgetVisible?: () => boolean;\n\t/** Shared geometry, tint, blur, and shadow configuration. */\n\toptions: LiquidGlassPanelOptions;\n\t/** Visual surface backend. All variants share the same CSS3D transform pipeline. */\n\tsurface: StagePanelSurface;\n\t/** Reads the current opacity of the visual surface independently of its content. */\n\tgetSurfaceOpacity?: () => number;\n\t/** Reads a transient scale applied only to the rendered minimap model. */\n\tgetMinimapModelScale?: () => number;\n\t/** Reads the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress?: () => number;\n\t/** Reads the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop?: () => number | undefined;\n}\n\n/** Identifies the DOM region used to frame the main element camera. */\nexport interface StageViewportTarget {\n\telement: HTMLElement;\n}\n\n/** Describes the independently animated phases of a close-up zoom. */\nexport interface StageZoomFocusState {\n\t/** Camera-derived close-up amount, from the fitted view to maximum zoom. */\n\tfocus: number;\n\t/** Progress used to fade and move ordinary page content and panels. */\n\tuiFocus: number;\n\t/** Exact opacity applied to ordinary panels and non-stage DOM content. */\n\tuiOpacity: number;\n\t/** Delayed progress used to expand and morph the minimap. */\n\tminimapFocus: number;\n}\n\n/** A deterministic camera pose used by browser-level visual regression tests. */\nexport interface StageVisualTestView {\n\t/** Normalized camera distance, where zero is the fitted view and one is maximum zoom. */\n\tzoom?: number;\n\t/** Horizontal orbit offset from the initial pose, in degrees. */\n\tazimuth?: number;\n\t/** Vertical orbit offset from the initial pose, in degrees. */\n\tpolar?: number;\n\t/** Orbit-target offset expressed as a fraction of the fitted model radius. */\n\ttargetOffset?: Partial<{ x: number; y: number; z: number }>;\n}\n\n/** Bounds WebGPU rasterization cost independently of native DOM text resolution. */\nexport interface StageRenderSettings {\n\t/** Maximum physical pixels per CSS pixel. Defaults to 1. */\n\tmaxPixelRatio?: number;\n\t/** Maximum pixels per full-size canvas/capture. Defaults to 2,073,600; null disables this limit. */\n\tmaxPixels?: number | null;\n}\n\n/** Construction options for a {@link StageExperience}. */\nexport interface StageExperienceOptions {\n\t/** Stage-wide output quality; native DOM content remains at the device pixel ratio. */\n\trenderSettings?: StageRenderSettings;\n\t/** Directory containing Draco decoder files, including trailing slash. */\n\tdracoDecoderPath?: string;\n\t/** Opaque page surface, independent of the HDR environment. */\n\tpageBackground?: string;\n\t/** Reveals semantic content when the device can no longer render. */\n\tonDeviceLost?: () => void;\n\tlodPair?: SpatialElementLodPair;\n\t/** Catalog pages register their own presentations, including an intentionally empty list. */\n\tcatalog?: boolean;\n\t/** A restored dock uses Low only; optional detail preparation resumes when the hero returns. */\n\tdeferDetailPreparation?: boolean;\n\theroIsPresented?: () => boolean;\n\tbackground?: BackgroundSettings;\n\thdr?: string;\n\tglb?: string;\n\tmodel?: StageModelSettings;\n\tcamera?: StageCameraSettings;\n\tinteractionTheme?: Partial<StageInteractionTheme>;\n\tpanels?: StagePanelTarget[];\n\tviewport?: StageViewportTarget;\n\t/** Enables optional 3DxWare/SpaceMouse navigation. Defaults to true. */\n\tenableSpaceMouse?: boolean;\n\t/** Receives the normalized, sequenced phases of a close-up zoom. */\n\tonZoomFocusChange?: (state: StageZoomFocusState) => void;\n}\n\n/** Visual and filtering options for element hover interaction. */\nexport interface StageInteractionTheme {\n\toutlineColor: ColorRepresentation;\n\toutlineOpacity: number;\n\toutlineThickness: number;\n\toutlineGlow: number;\n\toutlineGlowThickness: number;\n\t/** Returns true for model meshes that must not participate in picking or outlining. */\n\texcludeMesh?: (mesh: Mesh) => boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"stageTypes.js","sourceRoot":"","sources":["../../src/stage/stageTypes.ts"],"names":[],"mappings":"","sourcesContent":["import type { SpatialElementLodPair } from '../catalog/spatialElementLodPair.js';\nimport type { ColorRepresentation, Mesh } from 'three';\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\n\n/** Selects the rendering backend and visual complexity of a panel surface. */\nexport type StagePanelSurface = 'solid' | 'frosted' | 'glass';\n\n/** Controls how the HDR environment is presented behind the stage. */\nexport interface BackgroundSettings {\n\t/** Three.js background blur amount in the range supported by the active renderer. */\n\tblurriness: number;\n\t/** Color mixed over the HDR background. */\n\ttint: ColorRepresentation;\n\t/** Strength of the background tint, where zero leaves the HDR unchanged. */\n\ttintIntensity: number;\n}\n\n/** Axis rotations, in radians, applied to a loaded model before it is fitted. */\nexport interface StageModelRotation {\n\tx?: number;\n\ty?: number;\n\tz?: number;\n}\n\n/** Controls the fitted camera's initial orbit around the element. */\nexport interface StageCameraSettings {\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n\t/** Empty space in CSS pixels reserved on every side of the automatic element fit. */\n\tfitPadding?: number;\n\t/** Presentation multiplier applied after fitting. Values above one make the element larger. */\n\tfitScale?: number;\n}\n\n/** Supported blend modes for declarative stage material replacements. */\nexport type StageMaterialBlending = 'normal' | 'additive';\n\n/** Serializable subset used to replace an asset mesh with a physical material. */\nexport interface StagePhysicalMaterialSettings {\n\ttype: 'physical';\n\tcolor?: ColorRepresentation;\n\topacity?: number;\n\ttransparent?: boolean;\n\tmetalness?: number;\n\troughness?: number;\n\tiridescence?: number;\n\tclearcoat?: number;\n\tblending?: StageMaterialBlending;\n}\n\nexport type StageMaterialSettings = StagePhysicalMaterialSettings;\n\n/** Controls the authored model pose and which meshes represent the actual element. */\nexport interface StageModelSettings {\n\t/** Optional rotation applied on top of the GLB scene's authored root rotation. */\n\trotation?: StageModelRotation;\n\t/**\n\t * Exact, case-sensitive mesh names that remain visible on the main stage but do\n\t * not participate in element bounds, picking, outlining, or element minimaps.\n\t */\n\texcludeMeshes?: readonly string[];\n\t/** Physical material replacements keyed by exact, case-sensitive mesh name. */\n\tmaterialOverrides?: Readonly<Record<string, StageMaterialSettings>>;\n}\n\n/** Controls the minimap model presentation while its panel is docked. */\nexport interface StageMinimapDockedView {\n\t/** Model multiplier used only while the minimap is docked. */\n\tscale?: number;\n\t/** Horizontal viewing angle in degrees. Positive values view from the right. */\n\tazimuth?: number;\n\t/** Vertical viewing angle in degrees. Positive values view from above. */\n\televation?: number;\n}\n\n/** Configures the optional element minimap rendered on top of a panel. */\nexport interface StageMinimapOptions {\n\t/** Panel height, in CSS pixels, at maximum stage zoom. */\n\texpandedHeight?: number;\n\t/** Space, in CSS pixels, reserved around the minimap model. */\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted minimap model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\t/** Color drawn over the blurred area outside the viewport cutout. */\n\toverlayColor?: ColorRepresentation;\n\t/** Overlay alpha using the same zero-to-one convention as CSS/Figma. */\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\t/** Color behind the minimap capture when no stage background is rendered. */\n\tcontextColor?: ColorRepresentation;\n\t/** Alpha of the minimap capture background. */\n\tcontextOpacity?: number;\n\t/** Color of the rectangle describing the main camera viewport. */\n\tviewportColor?: ColorRepresentation;\n}\n\n/** Connects one DOM panel declaration to its WebGPU and CSS3D representations. */\nexport interface StagePanelTarget {\n\t/** Accessible DOM content displayed above the WebGPU panel. */\n\tcontent: HTMLElement;\n\t/** Inner content padding in CSS pixels. */\n\tcontentInset: number;\n\t/** DOM element whose layout determines the panel position and dimensions. */\n\tframe: HTMLElement;\n\t/** Complete DOM surface used by solid and frosted CSS3D panels. */\n\tsurfaceElement: HTMLElement;\n\t/** Enables the panel's minimap rendering mode. */\n\tminimap?: StageMinimapOptions;\n\t/** true: proximity lift and tilt; 'lift': mouse hover raises 2px without tilt; false: still. */\n\tpointerReactive?: boolean | 'lift';\n\t/** true fades/moves with close-up; false keeps its pose; 'top-right' travels to the corner. */\n\tfocusReactive?: boolean | 'top-right';\n\t/** Optional neighbouring panel frame moved with the corner control during UI clearance. */\n\tgetFocusAnchor?: () => HTMLElement | undefined;\n\t/** Keep accessible content in its DOM owner (for example, a native popover). */\n\tnativeContent?: boolean;\n\t/** Position native content after its anchors move, before measuring and drawing its surface. */\n\tupdateNativeLayout?: () => void;\n\t/** Whether an optional panel is currently open. */\n\tgetVisible?: () => boolean;\n\t/** Shared geometry, tint, blur, and shadow configuration. */\n\toptions: LiquidGlassPanelOptions;\n\t/** Visual surface backend. All variants share the same CSS3D transform pipeline. */\n\tsurface: StagePanelSurface;\n\t/** Reads the current opacity of the visual surface independently of its content. */\n\tgetSurfaceOpacity?: () => number;\n\t/** Reads a transient scale applied only to the rendered minimap model. */\n\tgetMinimapModelScale?: () => number;\n\t/** Reads the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress?: () => number;\n\t/** Reads the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop?: () => number | undefined;\n}\n\n/** Identifies the DOM region used to frame the main element camera. */\nexport interface StageViewportTarget {\n\telement: HTMLElement;\n}\n\n/** Describes the independently animated phases of a close-up zoom. */\nexport interface StageZoomFocusState {\n\t/** Camera-derived close-up amount, from the fitted view to maximum zoom. */\n\tfocus: number;\n\t/** Progress used to fade and move ordinary page content and panels. */\n\tuiFocus: number;\n\t/** Exact opacity applied to ordinary panels and non-stage DOM content. */\n\tuiOpacity: number;\n\t/** Delayed progress used to expand and morph the minimap. */\n\tminimapFocus: number;\n}\n\n/** A deterministic camera pose used by browser-level visual regression tests. */\nexport interface StageVisualTestView {\n\t/** Normalized camera distance, where zero is the fitted view and one is maximum zoom. */\n\tzoom?: number;\n\t/** Horizontal orbit offset from the initial pose, in degrees. */\n\tazimuth?: number;\n\t/** Vertical orbit offset from the initial pose, in degrees. */\n\tpolar?: number;\n\t/** Orbit-target offset expressed as a fraction of the fitted model radius. */\n\ttargetOffset?: Partial<{ x: number; y: number; z: number }>;\n}\n\n/** Bounds WebGPU rasterization cost independently of native DOM text resolution. */\nexport interface StageRenderSettings {\n\t/** Maximum physical pixels per CSS pixel. Defaults to 1. */\n\tmaxPixelRatio?: number;\n\t/** Maximum pixels per full-size canvas/capture. Defaults to 2,073,600; null disables this limit. */\n\tmaxPixels?: number | null;\n}\n\n/** Construction options for a {@link StageExperience}. */\nexport interface StageExperienceOptions {\n\tdeviceOrientation?: boolean;\n\t/** Stage-wide output quality; native DOM content remains at the device pixel ratio. */\n\trenderSettings?: StageRenderSettings;\n\t/** Directory containing Draco decoder files, including trailing slash. */\n\tdracoDecoderPath?: string;\n\t/** Opaque page surface, independent of the HDR environment. */\n\tpageBackground?: string;\n\t/** Reveals semantic content when the device can no longer render. */\n\tonDeviceLost?: () => void;\n\tlodPair?: SpatialElementLodPair;\n\t/** Catalog pages register their own presentations, including an intentionally empty list. */\n\tcatalog?: boolean;\n\t/** A restored dock uses Low only; optional detail preparation resumes when the hero returns. */\n\tdeferDetailPreparation?: boolean;\n\theroIsPresented?: () => boolean;\n\tbackground?: BackgroundSettings;\n\thdr?: string;\n\tglb?: string;\n\tmodel?: StageModelSettings;\n\tcamera?: StageCameraSettings;\n\tinteractionTheme?: Partial<StageInteractionTheme>;\n\tpanels?: StagePanelTarget[];\n\tviewport?: StageViewportTarget;\n\t/** Enables optional 3DxWare/SpaceMouse navigation. Defaults to true. */\n\tenableSpaceMouse?: boolean;\n\t/** Receives the normalized, sequenced phases of a close-up zoom. */\n\tonZoomFocusChange?: (state: StageZoomFocusState) => void;\n}\n\n/** Visual and filtering options for element hover interaction. */\nexport interface StageInteractionTheme {\n\toutlineColor: ColorRepresentation;\n\toutlineOpacity: number;\n\toutlineThickness: number;\n\toutlineGlow: number;\n\toutlineGlowThickness: number;\n\t/** Returns true for model meshes that must not participate in picking or outlining. */\n\texcludeMesh?: (mesh: Mesh) => boolean;\n}\n"]}
|