@spatial-elements/core 1.0.0-beta.4 → 1.0.0-beta.6

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.
Files changed (120) hide show
  1. package/README.md +1 -1
  2. package/dist/catalog/CarouselGlassCompositor.d.ts +7 -2
  3. package/dist/catalog/CarouselGlassCompositor.d.ts.map +1 -1
  4. package/dist/catalog/CarouselGlassCompositor.js +85 -24
  5. package/dist/catalog/CarouselGlassCompositor.js.map +1 -1
  6. package/dist/catalog/CarouselGround.d.ts +21 -0
  7. package/dist/catalog/CarouselGround.d.ts.map +1 -0
  8. package/dist/catalog/CarouselGround.js +107 -0
  9. package/dist/catalog/CarouselGround.js.map +1 -0
  10. package/dist/catalog/CatalogDepthBlur.d.ts +26 -0
  11. package/dist/catalog/CatalogDepthBlur.d.ts.map +1 -0
  12. package/dist/catalog/CatalogDepthBlur.js +87 -0
  13. package/dist/catalog/CatalogDepthBlur.js.map +1 -0
  14. package/dist/catalog/CatalogModelOutline.d.ts +31 -0
  15. package/dist/catalog/CatalogModelOutline.d.ts.map +1 -0
  16. package/dist/catalog/CatalogModelOutline.js +127 -0
  17. package/dist/catalog/CatalogModelOutline.js.map +1 -0
  18. package/dist/catalog/CatalogSpatialElementLayer.d.ts +29 -2
  19. package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
  20. package/dist/catalog/CatalogSpatialElementLayer.js +170 -41
  21. package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
  22. package/dist/catalog/CatalogTransition.d.ts.map +1 -1
  23. package/dist/catalog/CatalogTransition.js +49 -4
  24. package/dist/catalog/CatalogTransition.js.map +1 -1
  25. package/dist/catalog/SpatialGeometryCapture.d.ts +9 -0
  26. package/dist/catalog/SpatialGeometryCapture.d.ts.map +1 -1
  27. package/dist/catalog/SpatialGeometryCapture.js +11 -1
  28. package/dist/catalog/SpatialGeometryCapture.js.map +1 -1
  29. package/dist/catalog/cardModelFit.d.ts +7 -0
  30. package/dist/catalog/cardModelFit.d.ts.map +1 -0
  31. package/dist/catalog/cardModelFit.js +16 -0
  32. package/dist/catalog/cardModelFit.js.map +1 -0
  33. package/dist/catalog/cardProjection.d.ts +8 -0
  34. package/dist/catalog/cardProjection.d.ts.map +1 -0
  35. package/dist/catalog/cardProjection.js +51 -0
  36. package/dist/catalog/cardProjection.js.map +1 -0
  37. package/dist/catalog/carouselMotion.d.ts +35 -0
  38. package/dist/catalog/carouselMotion.d.ts.map +1 -1
  39. package/dist/catalog/carouselMotion.js +85 -4
  40. package/dist/catalog/carouselMotion.js.map +1 -1
  41. package/dist/catalog/carouselProximity.d.ts +11 -0
  42. package/dist/catalog/carouselProximity.d.ts.map +1 -0
  43. package/dist/catalog/carouselProximity.js +13 -0
  44. package/dist/catalog/carouselProximity.js.map +1 -0
  45. package/dist/catalog/carouselSupport.d.ts +4 -0
  46. package/dist/catalog/carouselSupport.d.ts.map +1 -0
  47. package/dist/catalog/carouselSupport.js +30 -0
  48. package/dist/catalog/carouselSupport.js.map +1 -0
  49. package/dist/catalog/catalogPose.d.ts +36 -6
  50. package/dist/catalog/catalogPose.d.ts.map +1 -1
  51. package/dist/catalog/catalogPose.js +79 -23
  52. package/dist/catalog/catalogPose.js.map +1 -1
  53. package/dist/spatial-element/SpatialElementDockController.d.ts +1 -1
  54. package/dist/spatial-element/SpatialElementDockController.d.ts.map +1 -1
  55. package/dist/spatial-element/SpatialElementDockController.js +29 -2
  56. package/dist/spatial-element/SpatialElementDockController.js.map +1 -1
  57. package/dist/spatial-element/messages.d.ts +2 -0
  58. package/dist/spatial-element/messages.d.ts.map +1 -1
  59. package/dist/spatial-element/messages.js +1 -1
  60. package/dist/spatial-element/messages.js.map +1 -1
  61. package/dist/spatial-element/spatialTheme.d.ts.map +1 -1
  62. package/dist/spatial-element/spatialTheme.js +1 -0
  63. package/dist/spatial-element/spatialTheme.js.map +1 -1
  64. package/dist/spatial-element/types.d.ts +2 -0
  65. package/dist/spatial-element/types.d.ts.map +1 -1
  66. package/dist/spatial-element/types.js.map +1 -1
  67. package/dist/stage/LiquidGlassPanel.d.ts +2 -0
  68. package/dist/stage/LiquidGlassPanel.d.ts.map +1 -1
  69. package/dist/stage/LiquidGlassPanel.js +8 -1
  70. package/dist/stage/LiquidGlassPanel.js.map +1 -1
  71. package/dist/stage/MinimapController.d.ts +3 -1
  72. package/dist/stage/MinimapController.d.ts.map +1 -1
  73. package/dist/stage/MinimapController.js +23 -20
  74. package/dist/stage/MinimapController.js.map +1 -1
  75. package/dist/stage/PageBindingController.d.ts +4 -0
  76. package/dist/stage/PageBindingController.d.ts.map +1 -1
  77. package/dist/stage/PageBindingController.js +15 -4
  78. package/dist/stage/PageBindingController.js.map +1 -1
  79. package/dist/stage/PanelPresentationController.d.ts +1 -0
  80. package/dist/stage/PanelPresentationController.d.ts.map +1 -1
  81. package/dist/stage/PanelPresentationController.js +38 -7
  82. package/dist/stage/PanelPresentationController.js.map +1 -1
  83. package/dist/stage/SpatialElementInteractionController.d.ts +2 -0
  84. package/dist/stage/SpatialElementInteractionController.d.ts.map +1 -1
  85. package/dist/stage/SpatialElementInteractionController.js +23 -5
  86. package/dist/stage/SpatialElementInteractionController.js.map +1 -1
  87. package/dist/stage/StageExperience.d.ts +58 -1
  88. package/dist/stage/StageExperience.d.ts.map +1 -1
  89. package/dist/stage/StageExperience.js +112 -19
  90. package/dist/stage/StageExperience.js.map +1 -1
  91. package/dist/stage/StageFullscreenController.d.ts +17 -0
  92. package/dist/stage/StageFullscreenController.d.ts.map +1 -0
  93. package/dist/stage/StageFullscreenController.js +90 -0
  94. package/dist/stage/StageFullscreenController.js.map +1 -0
  95. package/dist/stage/StageRenderPipeline.d.ts +6 -0
  96. package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
  97. package/dist/stage/StageRenderPipeline.js +46 -65
  98. package/dist/stage/StageRenderPipeline.js.map +1 -1
  99. package/dist/stage/VirtualScrollController.d.ts.map +1 -1
  100. package/dist/stage/VirtualScrollController.js +6 -0
  101. package/dist/stage/VirtualScrollController.js.map +1 -1
  102. package/dist/stage/interactionOutline.d.ts +14 -0
  103. package/dist/stage/interactionOutline.d.ts.map +1 -0
  104. package/dist/stage/interactionOutline.js +81 -0
  105. package/dist/stage/interactionOutline.js.map +1 -0
  106. package/dist/stage/minimap/MinimapProjection.d.ts +7 -0
  107. package/dist/stage/minimap/MinimapProjection.d.ts.map +1 -1
  108. package/dist/stage/minimap/MinimapProjection.js +14 -13
  109. package/dist/stage/minimap/MinimapProjection.js.map +1 -1
  110. package/dist/stage/panelContext.d.ts +9 -0
  111. package/dist/stage/panelContext.d.ts.map +1 -1
  112. package/dist/stage/panelContext.js.map +1 -1
  113. package/dist/stage/stageDom.d.ts +2 -0
  114. package/dist/stage/stageDom.d.ts.map +1 -1
  115. package/dist/stage/stageDom.js +4 -0
  116. package/dist/stage/stageDom.js.map +1 -1
  117. package/dist/stage/stageVisualTest.d.ts +2 -0
  118. package/dist/stage/stageVisualTest.d.ts.map +1 -1
  119. package/dist/stage/stageVisualTest.js.map +1 -1
  120. package/package.json +1 -1
@@ -3,6 +3,8 @@ export interface SpatialMessages {
3
3
  controls: {
4
4
  help: string;
5
5
  closeHelp: string;
6
+ detailView: string;
7
+ fullscreen: string;
6
8
  };
7
9
  interactionHelp: {
8
10
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/spatial-element/messages.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,eAAe,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,QAA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;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;KACxB,CAAC;CACF;AAED,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG;KAAG,CAAC,IAAI,MAAM,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAElG,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC;KAC5C,CAAC,IAAI,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAC1D,CAiBC,CAAC;AAEH,wBAAgB,sBAAsB,CAAC,KAAK,GAAE,oBAAyB,GAAG,eAAe,CAaxF"}
@@ -1,5 +1,5 @@
1
1
  export const defaultSpatialMessages = Object.freeze({
2
- controls: Object.freeze({ help: '3D controls', closeHelp: 'Close help' }),
2
+ controls: Object.freeze({ help: '3D controls', closeHelp: 'Close help', detailView: 'Detail view', fullscreen: 'Fullscreen' }),
3
3
  interactionHelp: Object.freeze({
4
4
  title: 'Explore in 3D',
5
5
  rotate: 'Rotate',
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/spatial-element/messages.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,sBAAsB,GAE9B,MAAM,CAAC,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;IACzE,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC;QAC9B,KAAK,EAAE,eAAe;QACtB,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,KAAK;QACV,WAAW,EAAE,iCAAiC;QAC9C,SAAS,EAAE,sBAAsB;QACjC,QAAQ,EAAE,kCAAkC;QAC5C,mBAAmB,EAAE,gDAAgD;QACrE,WAAW,EAAE,sBAAsB;QACnC,SAAS,EAAE,wBAAwB;QACnC,QAAQ,EAAE,uBAAuB;QACjC,SAAS,EAAE,qCAAqC;QAChD,eAAe,EAAE,6CAA6C;KAC9D,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CAAC,QAA8B,EAAE;IACtE,MAAM,KAAK,GAAG,CAAmB,QAAW,EAAE,SAAsB,EAAK,EAAE;QAC1E,MAAM,MAAM,GAAG,EAAE,GAAG,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAgB,EAAE,CAAC;YACxD,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,OAAO,KAAK,KAAK,QAAQ;gBAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAmB,CAAC;QAClE,CAAC;QACD,OAAO,MAAM,CAAC;IACf,CAAC,CAAC;IACF,OAAO;QACN,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QAChE,eAAe,EAAE,KAAK,CAAC,sBAAsB,CAAC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;KACrF,CAAC;AACH,CAAC","sourcesContent":["/** Package-owned interface copy. Product content remains part of SpatialElementData. */\nexport interface SpatialMessages {\n\tcontrols: {\n\t\thelp: string;\n\t\tcloseHelp: string;\n\t};\n\tinteractionHelp: {\n\t\ttitle: string;\n\t\trotate: string;\n\t\tzoom: string;\n\t\tpan: string;\n\t\tmouseRotate: string;\n\t\tmouseZoom: string;\n\t\tmousePan: string;\n\t\t/** Plain text; {spacemouse} inserts the external SpaceMouse link. */\n\t\tmouseNavigationHint: string;\n\t\ttouchRotate: string;\n\t\ttouchZoom: string;\n\t\ttouchPan: string;\n\t\ttouchHint: string;\n\t\ttouchScrollHint: string;\n\t};\n}\n\n/** Override individual strings; omitted groups/keys use the English defaults. */\nexport type SpatialMessagesInput = { [K in keyof SpatialMessages]?: Partial<SpatialMessages[K]> };\n\nexport const defaultSpatialMessages: Readonly<{\n\t[K in keyof SpatialMessages]: Readonly<SpatialMessages[K]>;\n}> = Object.freeze({\n\tcontrols: Object.freeze({ help: '3D controls', closeHelp: 'Close help' }),\n\tinteractionHelp: Object.freeze({\n\t\ttitle: 'Explore in 3D',\n\t\trotate: 'Rotate',\n\t\tzoom: 'Zoom',\n\t\tpan: 'Pan',\n\t\tmouseRotate: 'Drag with the left mouse button',\n\t\tmouseZoom: 'Use the scroll wheel',\n\t\tmousePan: 'Drag with the right mouse button',\n\t\tmouseNavigationHint: 'Alternatively, use a {spacemouse} to navigate.',\n\t\ttouchRotate: 'Drag with one finger',\n\t\ttouchZoom: 'Pinch with two fingers',\n\t\ttouchPan: 'Drag with two fingers',\n\t\ttouchHint: '3D · Drag with one finger to rotate',\n\t\ttouchScrollHint: 'Touch outside the model to scroll the page.'\n\t})\n});\n\nexport function resolveSpatialMessages(input: SpatialMessagesInput = {}): SpatialMessages {\n\tconst merge = <T extends object>(defaults: T, overrides?: Partial<T>): T => {\n\t\tconst result = { ...defaults };\n\t\tfor (const key of Object.keys(defaults) as (keyof T)[]) {\n\t\t\tconst value = overrides?.[key];\n\t\t\tif (typeof value === 'string') result[key] = value as T[keyof T];\n\t\t}\n\t\treturn result;\n\t};\n\treturn {\n\t\tcontrols: merge(defaultSpatialMessages.controls, input.controls),\n\t\tinteractionHelp: merge(defaultSpatialMessages.interactionHelp, input.interactionHelp)\n\t};\n}\n"]}
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/spatial-element/messages.ts"],"names":[],"mappings":"AA6BA,MAAM,CAAC,MAAM,sBAAsB,GAE9B,MAAM,CAAC,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC;IAC9H,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC;QAC9B,KAAK,EAAE,eAAe;QACtB,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,KAAK;QACV,WAAW,EAAE,iCAAiC;QAC9C,SAAS,EAAE,sBAAsB;QACjC,QAAQ,EAAE,kCAAkC;QAC5C,mBAAmB,EAAE,gDAAgD;QACrE,WAAW,EAAE,sBAAsB;QACnC,SAAS,EAAE,wBAAwB;QACnC,QAAQ,EAAE,uBAAuB;QACjC,SAAS,EAAE,qCAAqC;QAChD,eAAe,EAAE,6CAA6C;KAC9D,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CAAC,QAA8B,EAAE;IACtE,MAAM,KAAK,GAAG,CAAmB,QAAW,EAAE,SAAsB,EAAK,EAAE;QAC1E,MAAM,MAAM,GAAG,EAAE,GAAG,QAAQ,EAAE,CAAC;QAC/B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAgB,EAAE,CAAC;YACxD,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,OAAO,KAAK,KAAK,QAAQ;gBAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAmB,CAAC;QAClE,CAAC;QACD,OAAO,MAAM,CAAC;IACf,CAAC,CAAC;IACF,OAAO;QACN,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QAChE,eAAe,EAAE,KAAK,CAAC,sBAAsB,CAAC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;KACrF,CAAC;AACH,CAAC","sourcesContent":["/** Package-owned interface copy. Product content remains part of SpatialElementData. */\nexport interface SpatialMessages {\n\tcontrols: {\n\t\thelp: string;\n\t\tcloseHelp: string;\n\t\tdetailView: string;\n\t\tfullscreen: string;\n\t};\n\tinteractionHelp: {\n\t\ttitle: string;\n\t\trotate: string;\n\t\tzoom: string;\n\t\tpan: string;\n\t\tmouseRotate: string;\n\t\tmouseZoom: string;\n\t\tmousePan: string;\n\t\t/** Plain text; {spacemouse} inserts the external SpaceMouse link. */\n\t\tmouseNavigationHint: string;\n\t\ttouchRotate: string;\n\t\ttouchZoom: string;\n\t\ttouchPan: string;\n\t\ttouchHint: string;\n\t\ttouchScrollHint: string;\n\t};\n}\n\n/** Override individual strings; omitted groups/keys use the English defaults. */\nexport type SpatialMessagesInput = { [K in keyof SpatialMessages]?: Partial<SpatialMessages[K]> };\n\nexport const defaultSpatialMessages: Readonly<{\n\t[K in keyof SpatialMessages]: Readonly<SpatialMessages[K]>;\n}> = Object.freeze({\n\tcontrols: Object.freeze({ help: '3D controls', closeHelp: 'Close help', detailView: 'Detail view', fullscreen: 'Fullscreen' }),\n\tinteractionHelp: Object.freeze({\n\t\ttitle: 'Explore in 3D',\n\t\trotate: 'Rotate',\n\t\tzoom: 'Zoom',\n\t\tpan: 'Pan',\n\t\tmouseRotate: 'Drag with the left mouse button',\n\t\tmouseZoom: 'Use the scroll wheel',\n\t\tmousePan: 'Drag with the right mouse button',\n\t\tmouseNavigationHint: 'Alternatively, use a {spacemouse} to navigate.',\n\t\ttouchRotate: 'Drag with one finger',\n\t\ttouchZoom: 'Pinch with two fingers',\n\t\ttouchPan: 'Drag with two fingers',\n\t\ttouchHint: '3D · Drag with one finger to rotate',\n\t\ttouchScrollHint: 'Touch outside the model to scroll the page.'\n\t})\n});\n\nexport function resolveSpatialMessages(input: SpatialMessagesInput = {}): SpatialMessages {\n\tconst merge = <T extends object>(defaults: T, overrides?: Partial<T>): T => {\n\t\tconst result = { ...defaults };\n\t\tfor (const key of Object.keys(defaults) as (keyof T)[]) {\n\t\t\tconst value = overrides?.[key];\n\t\t\tif (typeof value === 'string') result[key] = value as T[keyof T];\n\t\t}\n\t\treturn result;\n\t};\n\treturn {\n\t\tcontrols: merge(defaultSpatialMessages.controls, input.controls),\n\t\tinteractionHelp: merge(defaultSpatialMessages.interactionHelp, input.interactionHelp)\n\t};\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"spatialTheme.d.ts","sourceRoot":"","sources":["../../src/spatial-element/spatialTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,6FAA6F;AAC7F,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG;IACrE,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,YAAY,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAEpG;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY,CA6C7E"}
1
+ {"version":3,"file":"spatialTheme.d.ts","sourceRoot":"","sources":["../../src/spatial-element/spatialTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,6FAA6F;AAC7F,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG;IACrE,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,YAAY,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAEpG;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY,CA8C7E"}
@@ -9,6 +9,7 @@ export function createSpatialTheme(options) {
9
9
  id: options.id,
10
10
  name: options.name,
11
11
  background: options.background ?? '#eef1f4',
12
+ ...(options.sceneBackground ? { sceneBackground: { ...options.sceneBackground } } : {}),
12
13
  minimapTheme: {
13
14
  expandedHeight: 240,
14
15
  overlayColor: '#000000',
@@ -1 +1 @@
1
- {"version":3,"file":"spatialTheme.js","sourceRoot":"","sources":["../../src/spatial-element/spatialTheme.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAA4B;IAC9D,OAAO;QACN,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,SAAS;QAC3C,YAAY,EAAE;YACb,cAAc,EAAE,GAAG;YACnB,YAAY,EAAE,SAAS;YACvB,cAAc,EAAE,IAAI;YACpB,WAAW,EAAE,CAAC;YACd,cAAc,EAAE,CAAC;YACjB,aAAa,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,IAAI,SAAS;YAClD,GAAG,OAAO,CAAC,YAAY;SACvB;QACD,gBAAgB,EAAE;YACjB,YAAY,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,IAAI,SAAS;YACjD,GAAG,OAAO,CAAC,gBAAgB;SAC3B;QACD,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE;QACnE,UAAU,EAAE;YACX,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,IAAI;YACjB,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,GAAG;YACpB,OAAO,EAAE,CAAC;YACV,GAAG,OAAO,CAAC,UAAU;SACrB;QACD,gBAAgB,EAAE;YACjB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,IAAI;YACjB,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,GAAG;YACpB,GAAG,OAAO,CAAC,gBAAgB;SAC3B;QACD,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE;QAC7F,MAAM,EAAE;YACP,GAAG,EAAE,SAAS;YACd,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,SAAS;YACnB,aAAa,EAAE,SAAS;YACxB,GAAG,OAAO,CAAC,MAAM;SACjB;KACD,CAAC;AACH,CAAC","sourcesContent":["import type { SpatialTheme } from './types.js';\n\n/** Input for createSpatialTheme. Every appearance group merges with the library defaults. */\nexport type SpatialThemeOptions = Pick<SpatialTheme, 'id' | 'name'> & {\n\t/** Flat page color, independent of each element's HDR background. Default: #eef1f4. */\n\tbackground?: string;\n} & { [K in Exclude<keyof SpatialTheme, 'id' | 'name' | 'background'>]?: Partial<SpatialTheme[K]> };\n\n/**\n * Creates a complete theme from a brand identity and optional appearance overrides.\n * Nested groups merge field-by-field; returned objects are independent between calls.\n * @example\n * const theme = createSpatialTheme({ id: 'shop', name: 'My shop', colors: { accent: '#285c89' } });\n */\nexport function createSpatialTheme(options: SpatialThemeOptions): SpatialTheme {\n\treturn {\n\t\tid: options.id,\n\t\tname: options.name,\n\t\tbackground: options.background ?? '#eef1f4',\n\t\tminimapTheme: {\n\t\t\texpandedHeight: 240,\n\t\t\toverlayColor: '#000000',\n\t\t\toverlayOpacity: 0.35,\n\t\t\toverlayBlur: 5,\n\t\t\tcontextOpacity: 0,\n\t\t\tviewportColor: options.colors?.accent ?? '#285c89',\n\t\t\t...options.minimapTheme\n\t\t},\n\t\tinteractionTheme: {\n\t\t\toutlineColor: options.colors?.accent ?? '#285c89',\n\t\t\t...options.interactionTheme\n\t\t},\n\t\tpanelShape: { radius: 16, contentInset: 26, ...options.panelShape },\n\t\tpanelTheme: {\n\t\t\tsurface: 'frosted',\n\t\t\ttint: '#ffffff',\n\t\t\ttintOpacity: 0.65,\n\t\t\tbackdropBlur: 8,\n\t\t\tshadowIntensity: 0.2,\n\t\t\topacity: 1,\n\t\t\t...options.panelTheme\n\t\t},\n\t\tdockedPanelTheme: {\n\t\t\ttint: '#ffffff',\n\t\t\ttintOpacity: 0.92,\n\t\t\tbackdropBlur: 5,\n\t\t\tshadowIntensity: 0.2,\n\t\t\t...options.dockedPanelTheme\n\t\t},\n\t\tsectionTheme: { tint: '#ffffff', tintOpacity: 0.8, backdropBlur: 8, ...options.sectionTheme },\n\t\tcolors: {\n\t\t\tink: '#173047',\n\t\t\tbody: '#263c4d',\n\t\t\taccent: '#285c89',\n\t\t\tonAccent: '#ffffff',\n\t\t\ttabBackground: '#e4ebf1',\n\t\t\t...options.colors\n\t\t}\n\t};\n}\n"]}
1
+ {"version":3,"file":"spatialTheme.js","sourceRoot":"","sources":["../../src/spatial-element/spatialTheme.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAA4B;IAC9D,OAAO;QACN,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,SAAS;QAC3C,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvF,YAAY,EAAE;YACb,cAAc,EAAE,GAAG;YACnB,YAAY,EAAE,SAAS;YACvB,cAAc,EAAE,IAAI;YACpB,WAAW,EAAE,CAAC;YACd,cAAc,EAAE,CAAC;YACjB,aAAa,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,IAAI,SAAS;YAClD,GAAG,OAAO,CAAC,YAAY;SACvB;QACD,gBAAgB,EAAE;YACjB,YAAY,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,IAAI,SAAS;YACjD,GAAG,OAAO,CAAC,gBAAgB;SAC3B;QACD,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE;QACnE,UAAU,EAAE;YACX,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,IAAI;YACjB,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,GAAG;YACpB,OAAO,EAAE,CAAC;YACV,GAAG,OAAO,CAAC,UAAU;SACrB;QACD,gBAAgB,EAAE;YACjB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,IAAI;YACjB,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,GAAG;YACpB,GAAG,OAAO,CAAC,gBAAgB;SAC3B;QACD,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE;QAC7F,MAAM,EAAE;YACP,GAAG,EAAE,SAAS;YACd,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,SAAS;YACnB,aAAa,EAAE,SAAS;YACxB,GAAG,OAAO,CAAC,MAAM;SACjB;KACD,CAAC;AACH,CAAC","sourcesContent":["import type { SpatialTheme } from './types.js';\n\n/** Input for createSpatialTheme. Every appearance group merges with the library defaults. */\nexport type SpatialThemeOptions = Pick<SpatialTheme, 'id' | 'name'> & {\n\t/** Flat page color, independent of each element's HDR background. Default: #eef1f4. */\n\tbackground?: string;\n} & { [K in Exclude<keyof SpatialTheme, 'id' | 'name' | 'background'>]?: Partial<SpatialTheme[K]> };\n\n/**\n * Creates a complete theme from a brand identity and optional appearance overrides.\n * Nested groups merge field-by-field; returned objects are independent between calls.\n * @example\n * const theme = createSpatialTheme({ id: 'shop', name: 'My shop', colors: { accent: '#285c89' } });\n */\nexport function createSpatialTheme(options: SpatialThemeOptions): SpatialTheme {\n\treturn {\n\t\tid: options.id,\n\t\tname: options.name,\n\t\tbackground: options.background ?? '#eef1f4',\n\t\t...(options.sceneBackground ? { sceneBackground: { ...options.sceneBackground } } : {}),\n\t\tminimapTheme: {\n\t\t\texpandedHeight: 240,\n\t\t\toverlayColor: '#000000',\n\t\t\toverlayOpacity: 0.35,\n\t\t\toverlayBlur: 5,\n\t\t\tcontextOpacity: 0,\n\t\t\tviewportColor: options.colors?.accent ?? '#285c89',\n\t\t\t...options.minimapTheme\n\t\t},\n\t\tinteractionTheme: {\n\t\t\toutlineColor: options.colors?.accent ?? '#285c89',\n\t\t\t...options.interactionTheme\n\t\t},\n\t\tpanelShape: { radius: 16, contentInset: 26, ...options.panelShape },\n\t\tpanelTheme: {\n\t\t\tsurface: 'frosted',\n\t\t\ttint: '#ffffff',\n\t\t\ttintOpacity: 0.65,\n\t\t\tbackdropBlur: 8,\n\t\t\tshadowIntensity: 0.2,\n\t\t\topacity: 1,\n\t\t\t...options.panelTheme\n\t\t},\n\t\tdockedPanelTheme: {\n\t\t\ttint: '#ffffff',\n\t\t\ttintOpacity: 0.92,\n\t\t\tbackdropBlur: 5,\n\t\t\tshadowIntensity: 0.2,\n\t\t\t...options.dockedPanelTheme\n\t\t},\n\t\tsectionTheme: { tint: '#ffffff', tintOpacity: 0.8, backdropBlur: 8, ...options.sectionTheme },\n\t\tcolors: {\n\t\t\tink: '#173047',\n\t\t\tbody: '#263c4d',\n\t\t\taccent: '#285c89',\n\t\t\tonAccent: '#ffffff',\n\t\t\ttabBackground: '#e4ebf1',\n\t\t\t...options.colors\n\t\t}\n\t};\n}\n"]}
@@ -56,6 +56,8 @@ export interface SpatialDockedPanelTheme {
56
56
  }
57
57
  /** Shared visual language supplied by a brand layout to element pages beneath it. */
58
58
  export interface SpatialTheme {
59
+ /** Optional presentation overrides for the element's HDR backdrop; lighting is unchanged. */
60
+ sceneBackground?: Partial<BackgroundSettings>;
59
61
  /** Stable namespace shared by pages and transitions, e.g. `shop`. Not an element ID. */
60
62
  id: string;
61
63
  /** Human-readable brand name used in accessible labels. */
@@ -1 +1 @@
1
- {"version":3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uB,EAAE,CAAC;IAClC,kFAAkF;IAClF,OAAO,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,MAAM,mBAAmB,CAAC,CAAC;CACpE;AAED,6FAA6F;AAC7F,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,wBAAwB,EACtB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,eAAe,CACjB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,WAAW,eAAe;IAC/B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/spatial-element/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { VerifiedSpatialElementAssetManifest } from '../catalog/spatialElementAssets.js';\nimport type { SpatialElementGeometry } from './spatialElementGeometry.js';\nimport type {\n\tBackgroundSettings,\n\tStageCameraSettings,\n\tStageInteractionTheme,\n\tStageModelSettings\n} from '../stage/stageTypes.js';\nimport type {\n\tStagePanelMinimapOptions,\n\tStagePanelShape,\n\tStagePanelTheme\n} from '../stage/panelContext.js';\n\n/**\n * Category-card projection created by {@link getSpatialListItems}.\n * Includes the element's assets automatically; pass these items to ListSection or CarouselSection.\n * Detail-only media and breadcrumbs are omitted. No catalog data belongs in the layout.\n */\nexport interface SpatialListItem extends Partial<\n\tPick<\n\t\tSpatialElementData,\n\t\t| 'geometry'\n\t\t| 'hdr'\n\t\t| 'background'\n\t\t| 'model'\n\t\t| 'camera'\n\t\t| 'assetManifest'\n\t\t| 'fallbackImage'\n\t\t| 'fallbackImageSize'\n\t>\n> {\n\t/** @internal Runtime-only pose provider installed by a section, never serialized in route data. */\n\tpose?: import('../catalog/catalogPose.js').CatalogPoseProvider;\n\t/** Optional full summary projection, sourced from the same document as the DETAIL. */\n\tsummary?: {\n\t\tfeatures: SpatialElementFeature[];\n\t\taction?: SpatialElementAction;\n\t\t/** Optional authored link to an existing element content section. */\n\t\tsectionLink?: { href: string; label: string };\n\t};\n\t/** Stable optional key when the same element occurs twice within a section. */\n\titemKey?: string;\n\t/** @internal Presentation identity assigned by a section; assets retain element identity. */\n\toccurrence?: string;\n\t/** Stable element identity, shared with the detail document. */\n\tid: string;\n\t/** Ordinary link to the detail page. */\n\thref: string;\n\t/** Short label above the title; the helper supplies an empty string when omitted. */\n\teyebrow: string;\n\t/** Visible card title. */\n\ttitle: string;\n\t/** Plain-text feature labels for compact card presentation. */\n\tfeatures: string[];\n}\n\n/** Shared CSS-glass controls for regular element sections. */\nexport interface SpatialSectionTheme {\n\ttint: string;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n}\n\n/** CSS material used only by the fixed element header and its docked subnavigation. */\nexport interface SpatialDockedPanelTheme {\n\t/** Gaussian CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n\t/** Surface tint, using the same color representation as a stage panel. */\n\ttint: NonNullable<StagePanelTheme['tint']>;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** Normalized shadow intensity from zero to one. */\n\tshadowIntensity: number;\n}\n\n/** Shared visual language supplied by a brand layout to element pages beneath it. */\nexport interface SpatialTheme {\n\t/** Stable namespace shared by pages and transitions, e.g. `shop`. Not an element ID. */\n\tid: string;\n\t/** Human-readable brand name used in accessible labels. */\n\tname: string;\n\t/** Opaque CSS/Three.js color behind content and the independently revealed HDR stage. */\n\tbackground: string;\n\t/** Shared minimap appearance; element-specific framing belongs in SpatialElementData.minimap. */\n\tminimapTheme: SpatialMinimapTheme;\n\t/** Hover/selection outline appearance. */\n\tinteractionTheme: Partial<StageInteractionTheme>;\n\t/** Panel corner radius and content padding, in CSS pixels. */\n\tpanelShape: StagePanelShape;\n\t/** Default panel material. `frosted` uses CSS blur; `glass` also uses GPU refraction. */\n\tpanelTheme: StagePanelTheme;\n\t/** Appearance of the compact header and tabs shown after scrolling past the hero. */\n\tdockedPanelTheme: SpatialDockedPanelTheme;\n\t/** Appearance of ordinary HTML content sections. */\n\tsectionTheme: SpatialSectionTheme;\n\t/** Semantic text, action and navigation colors. */\n\tcolors: {\n\t\tink: string;\n\t\tbody: string;\n\t\taccent: string;\n\t\tonAccent: string;\n\t\ttabBackground: string;\n\t};\n}\n\n/** A single line in the spatial-element-summary feature list. */\nexport interface SpatialElementFeature {\n\tlabel: string;\n\t/** Optional short marker displayed before the feature text. */\n\tmarker?: string;\n}\n\n/** Primary conversion action displayed in the element summary panel. */\nexport interface SpatialElementAction {\n\tlabel: string;\n\t/** Stable behavior identity for shared presentation; never supplies an event handler. */\n\tsemanticId?: string;\n\thref?: string;\n\tariaLabel?: string;\n}\n\n/** A breadcrumb link or terminal breadcrumb label. */\nexport interface SpatialElementBreadcrumb {\n\tlabel: string;\n\thref?: string;\n}\n\n/** Media entries rendered in the element rail. */\nexport type SpatialElementMediaItem =\n\t| { id: string; kind: 'minimap'; label: string }\n\t| { id: string; kind: 'drawing'; label: string }\n\t| { id: string; kind: 'image'; label: string; src: string; alt: string };\n\n/** Optional CSS presentation for a regular HTML element section. */\nexport interface SpatialElementSectionStyle {\n\t/** Overrides the brand section tint. */\n\ttint?: string;\n\t/** Overrides the brand section tint opacity from zero to one. */\n\ttintOpacity?: number;\n\t/** Overrides the brand section backdrop blur radius in pixels. */\n\tbackdropBlur?: number;\n\ttextColor?: string;\n\t/** CSS max-width such as `920px`, `72rem`, or `100%`. */\n\twidth?: string;\n}\n\n/** Metadata supplied to a composable spatial-element `Section`. */\nexport interface SpatialElementSectionDefinition {\n\tid: string;\n\ttitle: string;\n\tstyle?: SpatialElementSectionStyle;\n}\n\n/** Minimal section metadata consumed by generated element navigation. */\nexport type SpatialElementSectionNavigationItem = Pick<\n\tSpatialElementSectionDefinition,\n\t'id' | 'title'\n>;\n\n/**\n * Serializable element content AND its 3D presentation. Supply the same source data to\n * getSpatialListItems on a category page and SpatialElementPage on the detail page.\n * Only id, title, geometry and hdr are required. Layout-wide appearance belongs in SpatialTheme.\n */\nexport interface SpatialElementData {\n\t/** Stable element identity within the shell's theme namespace; also used by findSpatialElement. */\n\tid: string;\n\t/** Optional identity assertion. When supplied, must match the enclosing theme.id. */\n\tbrandId?: string;\n\t/** Document title. Defaults to title. */\n\tpageTitle?: string;\n\t/** Short category/series label displayed above the title. Defaults to an empty string. */\n\teyebrow?: string;\n\t/** Visible element name. */\n\ttitle: string;\n\t/** Summary bullets. Defaults to an empty list. */\n\tfeatures?: SpatialElementFeature[];\n\t/** Optional primary action; omitted actions render no button. */\n\taction?: SpatialElementAction;\n\t/** Required Low/High model sources. Identical URLs share one load; both exports must share coordinates. */\n\tgeometry: SpatialElementGeometry;\n\t/** Detail lighting and background HDR. Category lighting is explicitly set on ContentPage.hdr. */\n\thdr: string;\n\t/** HDR background blur/tint. Does not change the theme's flat page background or model lighting. */\n\tbackground?: BackgroundSettings;\n\t/** Imported model pose, excluded meshes and material replacements. Rotations are in radians. */\n\tmodel?: StageModelSettings;\n\t/** Initial orbit in degrees and optional fit controls. Distance is fitted automatically. */\n\tcamera?: StageCameraSettings;\n\t/** Advanced verified resource manifest. Omit for the normal GLB/LOD workflow. */\n\tassetManifest?: VerifiedSpatialElementAssetManifest;\n\t/** Poster URL displayed during loading, without JavaScript, or when WebGPU is unavailable. */\n\tfallbackImage?: string;\n\t/** Actual poster pixel dimensions [width, height], not physical model dimensions. */\n\tfallbackImageSize?: readonly [number, number];\n\t/** Navigation trail. Entries without href are plain text; defaults to an empty list. */\n\tbreadcrumbs?: SpatialElementBreadcrumb[];\n\t/** Media rail entries. Defaults to one interactive 3D minimap; [] hides the rail's entries. */\n\tmedia?: SpatialElementMediaItem[];\n\t/** Element-specific minimap fit/hover/docked pose. Colors come from the theme. */\n\tminimap?: Omit<StagePanelMinimapOptions, keyof SpatialMinimapTheme>;\n}\n\n/** Brand-wide minimap appearance; framing and model pose remain spatial-element-specific. */\nexport type SpatialMinimapTheme = Pick<\n\tStagePanelMinimapOptions,\n\t| 'expandedHeight'\n\t| 'overlayColor'\n\t| 'overlayOpacity'\n\t| 'overlayBlur'\n\t| 'contextColor'\n\t| 'contextOpacity'\n\t| 'viewportColor'\n>;\n\n/** Category/content page metadata; only title is required. */\nexport interface ContentPageData {\n\t/** Browser document title; defaults to title. */\n\tpageTitle?: string;\n\ttitle: string;\n\teyebrow?: string;\n\tintro?: string;\n\tbreadcrumbs?: SpatialElementBreadcrumb[];\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/spatial-element/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { VerifiedSpatialElementAssetManifest } from '../catalog/spatialElementAssets.js';\nimport type { SpatialElementGeometry } from './spatialElementGeometry.js';\nimport type {\n\tBackgroundSettings,\n\tStageCameraSettings,\n\tStageInteractionTheme,\n\tStageModelSettings\n} from '../stage/stageTypes.js';\nimport type {\n\tStagePanelMinimapOptions,\n\tStagePanelShape,\n\tStagePanelTheme\n} from '../stage/panelContext.js';\n\n/**\n * Category-card projection created by {@link getSpatialListItems}.\n * Includes the element's assets automatically; pass these items to ListSection or CarouselSection.\n * Detail-only media and breadcrumbs are omitted. No catalog data belongs in the layout.\n */\nexport interface SpatialListItem extends Partial<\n\tPick<\n\t\tSpatialElementData,\n\t\t| 'geometry'\n\t\t| 'hdr'\n\t\t| 'background'\n\t\t| 'model'\n\t\t| 'camera'\n\t\t| 'assetManifest'\n\t\t| 'fallbackImage'\n\t\t| 'fallbackImageSize'\n\t>\n> {\n\t/** @internal Runtime-only pose provider installed by a section, never serialized in route data. */\n\tpose?: import('../catalog/catalogPose.js').CatalogPoseProvider;\n\t/** Optional full summary projection, sourced from the same document as the DETAIL. */\n\tsummary?: {\n\t\tfeatures: SpatialElementFeature[];\n\t\taction?: SpatialElementAction;\n\t\t/** Optional authored link to an existing element content section. */\n\t\tsectionLink?: { href: string; label: string };\n\t};\n\t/** Stable optional key when the same element occurs twice within a section. */\n\titemKey?: string;\n\t/** @internal Presentation identity assigned by a section; assets retain element identity. */\n\toccurrence?: string;\n\t/** Stable element identity, shared with the detail document. */\n\tid: string;\n\t/** Ordinary link to the detail page. */\n\thref: string;\n\t/** Short label above the title; the helper supplies an empty string when omitted. */\n\teyebrow: string;\n\t/** Visible card title. */\n\ttitle: string;\n\t/** Plain-text feature labels for compact card presentation. */\n\tfeatures: string[];\n}\n\n/** Shared CSS-glass controls for regular element sections. */\nexport interface SpatialSectionTheme {\n\ttint: string;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n}\n\n/** CSS material used only by the fixed element header and its docked subnavigation. */\nexport interface SpatialDockedPanelTheme {\n\t/** Gaussian CSS backdrop blur radius in pixels. */\n\tbackdropBlur: number;\n\t/** Surface tint, using the same color representation as a stage panel. */\n\ttint: NonNullable<StagePanelTheme['tint']>;\n\t/** Direct tint opacity from zero to one. */\n\ttintOpacity: number;\n\t/** Normalized shadow intensity from zero to one. */\n\tshadowIntensity: number;\n}\n\n/** Shared visual language supplied by a brand layout to element pages beneath it. */\nexport interface SpatialTheme {\n\t/** Optional presentation overrides for the element's HDR backdrop; lighting is unchanged. */\n\tsceneBackground?: Partial<BackgroundSettings>;\n\t/** Stable namespace shared by pages and transitions, e.g. `shop`. Not an element ID. */\n\tid: string;\n\t/** Human-readable brand name used in accessible labels. */\n\tname: string;\n\t/** Opaque CSS/Three.js color behind content and the independently revealed HDR stage. */\n\tbackground: string;\n\t/** Shared minimap appearance; element-specific framing belongs in SpatialElementData.minimap. */\n\tminimapTheme: SpatialMinimapTheme;\n\t/** Hover/selection outline appearance. */\n\tinteractionTheme: Partial<StageInteractionTheme>;\n\t/** Panel corner radius and content padding, in CSS pixels. */\n\tpanelShape: StagePanelShape;\n\t/** Default panel material. `frosted` uses CSS blur; `glass` also uses GPU refraction. */\n\tpanelTheme: StagePanelTheme;\n\t/** Appearance of the compact header and tabs shown after scrolling past the hero. */\n\tdockedPanelTheme: SpatialDockedPanelTheme;\n\t/** Appearance of ordinary HTML content sections. */\n\tsectionTheme: SpatialSectionTheme;\n\t/** Semantic text, action and navigation colors. */\n\tcolors: {\n\t\tink: string;\n\t\tbody: string;\n\t\taccent: string;\n\t\tonAccent: string;\n\t\ttabBackground: string;\n\t};\n}\n\n/** A single line in the spatial-element-summary feature list. */\nexport interface SpatialElementFeature {\n\tlabel: string;\n\t/** Optional short marker displayed before the feature text. */\n\tmarker?: string;\n}\n\n/** Primary conversion action displayed in the element summary panel. */\nexport interface SpatialElementAction {\n\tlabel: string;\n\t/** Stable behavior identity for shared presentation; never supplies an event handler. */\n\tsemanticId?: string;\n\thref?: string;\n\tariaLabel?: string;\n}\n\n/** A breadcrumb link or terminal breadcrumb label. */\nexport interface SpatialElementBreadcrumb {\n\tlabel: string;\n\thref?: string;\n}\n\n/** Media entries rendered in the element rail. */\nexport type SpatialElementMediaItem =\n\t| { id: string; kind: 'minimap'; label: string }\n\t| { id: string; kind: 'drawing'; label: string }\n\t| { id: string; kind: 'image'; label: string; src: string; alt: string };\n\n/** Optional CSS presentation for a regular HTML element section. */\nexport interface SpatialElementSectionStyle {\n\t/** Overrides the brand section tint. */\n\ttint?: string;\n\t/** Overrides the brand section tint opacity from zero to one. */\n\ttintOpacity?: number;\n\t/** Overrides the brand section backdrop blur radius in pixels. */\n\tbackdropBlur?: number;\n\ttextColor?: string;\n\t/** CSS max-width such as `920px`, `72rem`, or `100%`. */\n\twidth?: string;\n}\n\n/** Metadata supplied to a composable spatial-element `Section`. */\nexport interface SpatialElementSectionDefinition {\n\tid: string;\n\ttitle: string;\n\tstyle?: SpatialElementSectionStyle;\n}\n\n/** Minimal section metadata consumed by generated element navigation. */\nexport type SpatialElementSectionNavigationItem = Pick<\n\tSpatialElementSectionDefinition,\n\t'id' | 'title'\n>;\n\n/**\n * Serializable element content AND its 3D presentation. Supply the same source data to\n * getSpatialListItems on a category page and SpatialElementPage on the detail page.\n * Only id, title, geometry and hdr are required. Layout-wide appearance belongs in SpatialTheme.\n */\nexport interface SpatialElementData {\n\t/** Stable element identity within the shell's theme namespace; also used by findSpatialElement. */\n\tid: string;\n\t/** Optional identity assertion. When supplied, must match the enclosing theme.id. */\n\tbrandId?: string;\n\t/** Document title. Defaults to title. */\n\tpageTitle?: string;\n\t/** Short category/series label displayed above the title. Defaults to an empty string. */\n\teyebrow?: string;\n\t/** Visible element name. */\n\ttitle: string;\n\t/** Summary bullets. Defaults to an empty list. */\n\tfeatures?: SpatialElementFeature[];\n\t/** Optional primary action; omitted actions render no button. */\n\taction?: SpatialElementAction;\n\t/** Required Low/High model sources. Identical URLs share one load; both exports must share coordinates. */\n\tgeometry: SpatialElementGeometry;\n\t/** Detail lighting and background HDR. Category lighting is explicitly set on ContentPage.hdr. */\n\thdr: string;\n\t/** HDR background blur/tint. Does not change the theme's flat page background or model lighting. */\n\tbackground?: BackgroundSettings;\n\t/** Imported model pose, excluded meshes and material replacements. Rotations are in radians. */\n\tmodel?: StageModelSettings;\n\t/** Initial orbit in degrees and optional fit controls. Distance is fitted automatically. */\n\tcamera?: StageCameraSettings;\n\t/** Advanced verified resource manifest. Omit for the normal GLB/LOD workflow. */\n\tassetManifest?: VerifiedSpatialElementAssetManifest;\n\t/** Poster URL displayed during loading, without JavaScript, or when WebGPU is unavailable. */\n\tfallbackImage?: string;\n\t/** Actual poster pixel dimensions [width, height], not physical model dimensions. */\n\tfallbackImageSize?: readonly [number, number];\n\t/** Navigation trail. Entries without href are plain text; defaults to an empty list. */\n\tbreadcrumbs?: SpatialElementBreadcrumb[];\n\t/** Media rail entries. Defaults to one interactive 3D minimap; [] hides the rail's entries. */\n\tmedia?: SpatialElementMediaItem[];\n\t/** Element-specific minimap fit/hover/docked pose. Colors come from the theme. */\n\tminimap?: Omit<StagePanelMinimapOptions, keyof SpatialMinimapTheme>;\n}\n\n/** Brand-wide minimap appearance; framing and model pose remain spatial-element-specific. */\nexport type SpatialMinimapTheme = Pick<\n\tStagePanelMinimapOptions,\n\t| 'expandedHeight'\n\t| 'overlayColor'\n\t| 'overlayOpacity'\n\t| 'overlayBlur'\n\t| 'contextColor'\n\t| 'contextOpacity'\n\t| 'viewportColor'\n>;\n\n/** Category/content page metadata; only title is required. */\nexport interface ContentPageData {\n\t/** Browser document title; defaults to title. */\n\tpageTitle?: string;\n\ttitle: string;\n\teyebrow?: string;\n\tintro?: string;\n\tbreadcrumbs?: SpatialElementBreadcrumb[];\n}\n"]}
@@ -30,6 +30,8 @@ export declare const STAGE_TONE_MAPPING_EXPOSURE = 1.15;
30
30
  /** Applies stable defaults and keeps public visual controls inside their documented ranges. */
31
31
  export declare function resolveLiquidGlassPanelOptions(options?: LiquidGlassPanelOptions): Required<LiquidGlassPanelOptions>;
32
32
  export declare class LiquidGlassPanel {
33
+ /** Preserve full-backdrop coordinates while a cropped camera captures this surface. */
34
+ setBackdropUvTransform(x: number, y: number, width: number, height: number): void;
33
35
  readonly group: THREE.Group<THREE.Object3DEventMap>;
34
36
  readonly options: Required<LiquidGlassPanelOptions>;
35
37
  private readonly geometryOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"LiquidGlassPanel.d.ts","sourceRoot":"","sources":["../../src/stage/LiquidGlassPanel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AA6BtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOzC,MAAM,WAAW,uBAAuB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QAA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AsB;IA0CzE,OAAO;CAWP;AAmID;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GA+BmB,IAAI,CAAC,MAAM,CAAC,CACzF"}
@@ -56,6 +56,11 @@ function clampFinite(value, min, max, fallback) {
56
56
  return THREE.MathUtils.clamp(finiteOr(value, fallback), min, max);
57
57
  }
58
58
  export class LiquidGlassPanel {
59
+ /** Preserve full-backdrop coordinates while a cropped camera captures this surface. */
60
+ setBackdropUvTransform(x, y, width, height) {
61
+ this.backdropProjection.uvOffset.value.set(x, y);
62
+ this.backdropProjection.uvScale.value.set(width, height);
63
+ }
59
64
  group = new THREE.Group();
60
65
  options;
61
66
  geometryOptions;
@@ -215,6 +220,8 @@ function createBackdropMaterial(backdropTexture, tint, tintOpacity, projection)
215
220
  }
216
221
  function createBackdropProjectionUniforms(options) {
217
222
  return {
223
+ uvOffset: uniform(new THREE.Vector2()),
224
+ uvScale: uniform(new THREE.Vector2(1, 1)),
218
225
  panelSize: uniform(new THREE.Vector2(options.width, options.height)),
219
226
  radius: uniform(options.radius),
220
227
  bezel: uniform(options.bezel),
@@ -244,7 +251,7 @@ function createBackdropUvNode(projection) {
244
251
  .mul(vec4(samplePosition, 0, 1));
245
252
  const ndc = clipPosition.xy.div(clipPosition.w);
246
253
  const projectedUv = vec2(ndc.x.mul(0.5).add(0.5), ndc.y.mul(-0.5).add(0.5));
247
- return varying(clamp(projectedUv, 0, 1), 'vLiquidGlassBackdropUv');
254
+ return varying(clamp(projectedUv.mul(projection.uvScale).add(projection.uvOffset), 0, 1), 'vLiquidGlassBackdropUv');
248
255
  }
249
256
  function roundedRectSdfNode(point, halfSize, radius) {
250
257
  const q = abs(point).sub(halfSize).add(radius);
@@ -1 +1 @@
1
- {"version":3,"file":"LiquidGlassPanel.js","sourceRoot":"","sources":["../../src/stage/LiquidGlassPanel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAC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EAAE,CAAC;AAC3C,CAAC","sourcesContent":["import * as THREE from 'three/webgpu';\nimport {\n\tabs,\n\tacesFilmicToneMapping,\n\tcameraProjectionMatrix,\n\tcameraViewMatrix,\n\tclamp,\n\tcolor,\n\tfloat,\n\tinverse,\n\tlength,\n\tmat3,\n\tmax as tslMax,\n\tmin as tslMin,\n\tmix,\n\tmodelWorldMatrix,\n\toneMinus,\n\tpositionLocal,\n\tsqrt,\n\tsRGBTransferEOTF,\n\tsRGBTransferOETF,\n\tsmoothstep,\n\tstep,\n\ttexture,\n\tuniform,\n\tvarying,\n\tvec2,\n\tvec4\n} from 'three/tsl';\nimport type { ColorRepresentation } from 'three';\nimport type { Node } from 'three/webgpu';\nimport { PANEL_SHADOW_RECIPE, resolvePanelShadowStrength } from './panelShadow.js';\n\n/** A CSS Gaussian shadow reaches roughly half its declared alpha at an unspread edge. */\nconst WEBGPU_SHADOW_EDGE_COMPENSATION = 0.5;\nconst WEBGPU_SHADOW_EXTENT_PER_BLUR = 1.5;\n\nexport interface LiquidGlassPanelOptions {\n\twidth?: number;\n\theight?: number;\n\tradius?: number;\n\tposition?: { x: number; y: number };\n\t/** Blur radius of the sampled stage backdrop, in CSS pixels. */\n\tbackdropBlur?: number;\n\t/** Maximum displacement of the sampled backdrop near the glass edge, in CSS pixels. */\n\trefraction?: number;\n\ttint?: ColorRepresentation;\n\t/** Direct opacity of the tint over the sampled backdrop, from zero to one. */\n\ttintOpacity?: number;\n\t/** Width of the refractive/specular edge, in CSS pixels. */\n\tbezel?: number;\n\t/** Optical edge weight, from zero (flat) to one (thick glass). */\n\tthickness?: number;\n\tspecularOpacity?: number;\n\t/** Normalized strength of the panel shadow, from zero to one. */\n\tshadowIntensity?: number;\n\topacity?: number;\n}\n\nconst DEFAULT_OPTIONS = {\n\twidth: 360,\n\theight: 230,\n\tradius: 42,\n\tposition: { x: 0, y: 42 },\n\tbackdropBlur: 5,\n\trefraction: 12,\n\ttint: 0xffffff,\n\ttintOpacity: 0.28,\n\tbezel: 18,\n\tthickness: 0.35,\n\tspecularOpacity: 0.18,\n\tshadowIntensity: 0.28,\n\topacity: 1\n} satisfies Required<LiquidGlassPanelOptions>;\n\n/** Exposure shared by the stage renderer and CSS-color compensation for panel tints. */\nexport const STAGE_TONE_MAPPING_EXPOSURE = 1.15;\n\n/** Applies stable defaults and keeps public visual controls inside their documented ranges. */\nexport function resolveLiquidGlassPanelOptions(\n\toptions: LiquidGlassPanelOptions = {}\n): Required<LiquidGlassPanelOptions> {\n\tconst merged = {\n\t\t...DEFAULT_OPTIONS,\n\t\t...options,\n\t\tposition: { ...DEFAULT_OPTIONS.position, ...options.position }\n\t};\n\tconst width = clampFinite(merged.width, 1, Number.MAX_SAFE_INTEGER, DEFAULT_OPTIONS.width);\n\tconst height = clampFinite(merged.height, 1, Number.MAX_SAFE_INTEGER, DEFAULT_OPTIONS.height);\n\n\treturn {\n\t\t...merged,\n\t\twidth,\n\t\theight,\n\t\tradius: clampFinite(merged.radius, 0, Math.min(width, height) * 0.5, DEFAULT_OPTIONS.radius),\n\t\tposition: {\n\t\t\tx: finiteOr(merged.position.x, DEFAULT_OPTIONS.position.x),\n\t\t\ty: finiteOr(merged.position.y, DEFAULT_OPTIONS.position.y)\n\t\t},\n\t\tbackdropBlur: clampFinite(merged.backdropBlur, 0, 100, DEFAULT_OPTIONS.backdropBlur),\n\t\trefraction: clampFinite(merged.refraction, 0, 100, DEFAULT_OPTIONS.refraction),\n\t\ttintOpacity: clampFinite(merged.tintOpacity, 0, 1, DEFAULT_OPTIONS.tintOpacity),\n\t\tbezel: clampFinite(merged.bezel, 0, Math.min(width, height) * 0.5, DEFAULT_OPTIONS.bezel),\n\t\tthickness: clampFinite(merged.thickness, 0, 1, DEFAULT_OPTIONS.thickness),\n\t\tspecularOpacity: clampFinite(merged.specularOpacity, 0, 1, DEFAULT_OPTIONS.specularOpacity),\n\t\tshadowIntensity: clampFinite(merged.shadowIntensity, 0, 1, DEFAULT_OPTIONS.shadowIntensity),\n\t\topacity: clampFinite(merged.opacity, 0, 1, DEFAULT_OPTIONS.opacity)\n\t};\n}\n\nfunction finiteOr(value: number, fallback: number) {\n\treturn Number.isFinite(value) ? value : fallback;\n}\n\nfunction clampFinite(value: number, min: number, max: number, fallback: number) {\n\treturn THREE.MathUtils.clamp(finiteOr(value, fallback), min, max);\n}\n\nexport class LiquidGlassPanel {\n\treadonly group = new THREE.Group();\n\treadonly options: Required<LiquidGlassPanelOptions>;\n\n\tprivate readonly geometryOptions: Required<LiquidGlassPanelOptions>;\n\tprivate readonly authoredBezel: number;\n\tprivate readonly authoredRadius: number;\n\tprivate readonly backdropGeometry: THREE.BufferGeometry;\n\tprivate readonly bezelGeometry: THREE.BufferGeometry;\n\tprivate readonly shadowLayers: {\n\t\tgeometry: THREE.BufferGeometry;\n\t\tmaterial: THREE.MeshBasicMaterial;\n\t\tmesh: THREE.Mesh;\n\t\talphaScale: number;\n\t}[];\n\tprivate readonly backdropMaterial: THREE.MeshBasicNodeMaterial;\n\tprivate readonly backdropTextureNode: ReturnType<typeof texture>;\n\tprivate readonly depthMaterial: THREE.MeshBasicMaterial;\n\tprivate readonly sheenMaterial: THREE.MeshBasicMaterial;\n\tprivate readonly backdropProjection: ReturnType<typeof createBackdropProjectionUniforms>;\n\n\tconstructor(backdropTexture: THREE.Texture, options: LiquidGlassPanelOptions = {}) {\n\t\tthis.options = resolveLiquidGlassPanelOptions(options);\n\t\t// Hidden native popovers initially measure 1px. Keep the authored optical\n\t\t// dimensions so opening/resizing does not permanently flatten their glass edge.\n\t\tthis.authoredBezel = Math.max(0, finiteOr(options.bezel ?? DEFAULT_OPTIONS.bezel, DEFAULT_OPTIONS.bezel));\n\t\tthis.authoredRadius = Math.max(0, finiteOr(options.radius ?? DEFAULT_OPTIONS.radius, DEFAULT_OPTIONS.radius));\n\t\tthis.geometryOptions = {\n\t\t\t...this.options,\n\t\t\tposition: { ...this.options.position }\n\t\t};\n\t\tthis.backdropProjection = createBackdropProjectionUniforms(this.options);\n\n\t\tthis.group.position.set(this.options.position.x, this.options.position.y, 0);\n\t\tthis.backdropGeometry = createRoundedGridGeometry(\n\t\t\tthis.geometryOptions.width,\n\t\t\tthis.geometryOptions.height,\n\t\t\tthis.geometryOptions.radius,\n\t\t\t128,\n\t\t\t82\n\t\t);\n\t\tthis.bezelGeometry = createRoundedBandGeometry(\n\t\t\tthis.geometryOptions.width,\n\t\t\tthis.geometryOptions.height,\n\t\t\tthis.geometryOptions.radius,\n\t\t\t-this.geometryOptions.bezel,\n\t\t\t14,\n\t\t\t1.7\n\t\t);\n\t\tthis.shadowLayers = PANEL_SHADOW_RECIPE.map((layer, index) => {\n\t\t\tconst shadowStrength = resolvePanelShadowStrength(this.options.shadowIntensity);\n\t\t\tconst geometry = createRoundedBandGeometry(\n\t\t\t\tthis.geometryOptions.width,\n\t\t\t\tthis.geometryOptions.height,\n\t\t\t\tthis.geometryOptions.radius,\n\t\t\t\tlayer.blur * WEBGPU_SHADOW_EXTENT_PER_BLUR,\n\t\t\t\tMath.max(8, Math.round(layer.blur)),\n\t\t\t\t2.1\n\t\t\t);\n\t\t\tconst material = createVertexAlphaMaterial(\n\t\t\t\t0x000000,\n\t\t\t\tshadowStrength * layer.alphaScale * WEBGPU_SHADOW_EDGE_COMPENSATION\n\t\t\t);\n\t\t\tconst mesh = new THREE.Mesh(geometry, material);\n\t\t\tmesh.position.set(0, -layer.offsetY, 0);\n\t\t\tmesh.renderOrder = PANEL_SHADOW_RECIPE.length - index;\n\t\t\treturn { geometry, material, mesh, alphaScale: layer.alphaScale };\n\t\t});\n\t\tthis.depthMaterial = createVertexAlphaMaterial(\n\t\t\tgetDepthColor(this.options.tint),\n\t\t\tgetDepthOpacity(this.options.thickness)\n\t\t);\n\t\tthis.sheenMaterial = createVertexAlphaMaterial(\n\t\t\tgetSpecularColor(this.options.tint, this.options.tintOpacity),\n\t\t\tthis.options.specularOpacity,\n\t\t\tTHREE.AdditiveBlending\n\t\t);\n\t\tconst backdropShader = createBackdropMaterial(\n\t\t\tbackdropTexture,\n\t\t\tthis.options.tint,\n\t\t\tthis.options.tintOpacity,\n\t\t\tthis.backdropProjection\n\t\t);\n\t\tthis.backdropMaterial = backdropShader.material;\n\t\tthis.backdropTextureNode = backdropShader.textureNode;\n\n\t\tconst backdrop = new THREE.Mesh(this.backdropGeometry, this.backdropMaterial);\n\t\tbackdrop.position.z = 0;\n\t\tbackdrop.renderOrder = 3;\n\n\t\tconst depthTint = new THREE.Mesh(this.bezelGeometry, this.depthMaterial);\n\t\tdepthTint.position.z = 0;\n\t\tdepthTint.renderOrder = 4;\n\n\t\tconst sheen = new THREE.Mesh(this.bezelGeometry, this.sheenMaterial);\n\t\tsheen.position.z = 0;\n\t\tsheen.renderOrder = 6;\n\n\t\tthis.group.add(...this.shadowLayers.map(({ mesh }) => mesh), backdrop, depthTint, sheen);\n\t\tthis.setVisibilityAlpha(1);\n\t}\n\n\tsetVisibilityAlpha(alpha: number) {\n\t\tconst scale = THREE.MathUtils.clamp(alpha * this.options.opacity, 0, 1);\n\t\tthis.group.visible = scale > 0.01;\n\t\tthis.backdropMaterial.opacity = scale;\n\t\tthis.depthMaterial.opacity = getDepthOpacity(this.options.thickness) * scale;\n\t\tthis.sheenMaterial.opacity = this.options.specularOpacity * scale;\n\t\tthis.shadowLayers.forEach(({ material, alphaScale }) => {\n\t\t\tmaterial.opacity =\n\t\t\t\tresolvePanelShadowStrength(this.options.shadowIntensity) *\n\t\t\t\talphaScale *\n\t\t\t\tWEBGPU_SHADOW_EDGE_COMPENSATION *\n\t\t\t\tscale;\n\t\t});\n\t}\n\n\tsetBackdropTexture(backdropTexture: THREE.Texture) {\n\t\tif (this.backdropTextureNode.value === backdropTexture) return;\n\t\tthis.backdropTextureNode.value = backdropTexture;\n\t}\n\n\tsetVisualSize(width: number, height: number, radius = this.authoredRadius) {\n\t\tconst nextWidth = Math.max(width, 1);\n\t\tconst nextHeight = Math.max(height, 1);\n\t\tconst nextRadius = Math.min(Math.max(radius, 0), nextWidth * 0.5, nextHeight * 0.5);\n\t\tconst nextBezel = Math.min(this.authoredBezel, nextWidth * 0.5, nextHeight * 0.5);\n\n\t\tif (\n\t\t\tMath.abs(this.geometryOptions.width - nextWidth) < 0.01 &&\n\t\t\tMath.abs(this.geometryOptions.height - nextHeight) < 0.01 &&\n\t\t\tMath.abs(this.geometryOptions.radius - nextRadius) < 0.01\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.geometryOptions.width = nextWidth;\n\t\tthis.geometryOptions.height = nextHeight;\n\t\tthis.geometryOptions.radius = nextRadius;\n\t\tthis.geometryOptions.bezel = nextBezel;\n\t\tthis.backdropProjection.panelSize.value.set(nextWidth, nextHeight);\n\t\tthis.backdropProjection.radius.value = nextRadius;\n\t\tthis.backdropProjection.bezel.value = nextBezel;\n\t\tcreateRoundedGridGeometry(nextWidth, nextHeight, nextRadius, 128, 82, this.backdropGeometry);\n\t\tcopyGeometry(\n\t\t\tthis.bezelGeometry,\n\t\t\tcreateRoundedBandGeometry(nextWidth, nextHeight, nextRadius, -nextBezel, 14, 1.7)\n\t\t);\n\t\tthis.shadowLayers.forEach(({ geometry }, index) => {\n\t\t\tconst layer = PANEL_SHADOW_RECIPE[index];\n\t\t\tcopyGeometry(\n\t\t\t\tgeometry,\n\t\t\t\tcreateRoundedBandGeometry(\n\t\t\t\t\tnextWidth,\n\t\t\t\t\tnextHeight,\n\t\t\t\t\tnextRadius,\n\t\t\t\t\tlayer.blur * WEBGPU_SHADOW_EXTENT_PER_BLUR,\n\t\t\t\t\tMath.max(8, Math.round(layer.blur)),\n\t\t\t\t\t2.1\n\t\t\t\t)\n\t\t\t);\n\t\t});\n\t}\n\n\tdispose() {\n\t\tthis.backdropGeometry.dispose();\n\t\tthis.bezelGeometry.dispose();\n\t\tthis.shadowLayers.forEach(({ geometry, material }) => {\n\t\t\tgeometry.dispose();\n\t\t\tmaterial.dispose();\n\t\t});\n\t\tthis.backdropMaterial.dispose();\n\t\tthis.depthMaterial.dispose();\n\t\tthis.sheenMaterial.dispose();\n\t}\n}\n\nfunction copyGeometry(target: THREE.BufferGeometry, source: THREE.BufferGeometry) {\n\tconst names = Object.keys(source.attributes);\n\tconst reusable =\n\t\tnames.length === Object.keys(target.attributes).length &&\n\t\tnames.every((name) => {\n\t\t\tconst before = target.getAttribute(name);\n\t\t\tconst after = source.getAttribute(name);\n\t\t\treturn (\n\t\t\t\tbefore instanceof THREE.BufferAttribute &&\n\t\t\t\tafter instanceof THREE.BufferAttribute &&\n\t\t\t\tbefore.itemSize === after.itemSize &&\n\t\t\t\tbefore.array.constructor === after.array.constructor &&\n\t\t\t\tbefore.array.length === after.array.length\n\t\t\t);\n\t\t}) &&\n\t\ttarget.index?.count === source.index?.count;\n\tif (reusable) {\n\t\tfor (const name of names) {\n\t\t\tconst attribute = target.getAttribute(name) as THREE.BufferAttribute;\n\t\t\tattribute.array.set((source.getAttribute(name) as THREE.BufferAttribute).array);\n\t\t\tattribute.needsUpdate = true;\n\t\t}\n\t\tif (target.index && source.index) {\n\t\t\ttarget.index.array.set(source.index.array);\n\t\t\ttarget.index.needsUpdate = true;\n\t\t}\n\t\ttarget.computeBoundingBox();\n\t\ttarget.computeBoundingSphere();\n\t} else {\n\t\t// Preserve the authored band if a future recipe changes its buffer layout.\n\t\ttarget.dispose();\n\t\ttarget.copy(source);\n\t}\n\tsource.dispose();\n}\n\nfunction createBackdropMaterial(\n\tbackdropTexture: THREE.Texture,\n\ttint: ColorRepresentation,\n\ttintOpacity: number,\n\tprojection: ReturnType<typeof createBackdropProjectionUniforms>\n) {\n\tconst material = new THREE.MeshBasicNodeMaterial({\n\t\tdepthTest: false,\n\t\tdepthWrite: false,\n\t\ttransparent: true\n\t});\n\tconst displayTintValue = new THREE.Color(tint);\n\tTHREE.ColorManagement.workingToColorSpace(displayTintValue, THREE.SRGBColorSpace);\n\tconst textureNode = texture(backdropTexture, createBackdropUvNode(projection));\n\tconst backdropLinear = textureNode.rgb;\n\tconst backdropDisplay = sRGBTransferOETF(\n\t\tacesFilmicToneMapping(backdropLinear, float(STAGE_TONE_MAPPING_EXPOSURE))\n\t) as Node<'vec3'>;\n\tconst compositeDisplay = mix(backdropDisplay, color(displayTintValue), float(tintOpacity));\n\tmaterial.colorNode = inverseAcesToneMapping(sRGBTransferEOTF(compositeDisplay) as Node<'vec3'>);\n\tmaterial.toneMapped = false;\n\n\treturn { material, textureNode };\n}\n\nfunction createBackdropProjectionUniforms(options: Required<LiquidGlassPanelOptions>) {\n\treturn {\n\t\tpanelSize: uniform(new THREE.Vector2(options.width, options.height)),\n\t\tradius: uniform(options.radius),\n\t\tbezel: uniform(options.bezel),\n\t\trefraction: uniform(options.refraction)\n\t};\n}\n\n/**\n * Computes the refracted backdrop coordinate once per vertex. The resulting\n * varying is interpolated by the rasterizer, so panel movement and camera\n * changes no longer require rewriting and uploading the complete UV buffer.\n */\nfunction createBackdropUvNode(projection: ReturnType<typeof createBackdropProjectionUniforms>) {\n\tconst localPosition = positionLocal.xy;\n\tconst halfSize = projection.panelSize.mul(0.5);\n\tconst radius = tslMin(projection.radius, tslMin(halfSize.x, halfSize.y));\n\tconst signedDistance = roundedRectSdfNode(localPosition, halfSize, radius);\n\tconst insideDistance = tslMax(signedDistance.negate(), 0);\n\tconst edge = oneMinus(smoothstep(0, tslMax(projection.bezel, 0.0001), insideDistance)).mul(\n\t\tstep(0.0001, projection.bezel)\n\t);\n\tconst normalizedPosition = localPosition.div(tslMax(halfSize, 1));\n\tconst centerLens = oneMinus(tslMin(1, length(normalizedPosition)));\n\tconst gradient = roundedRectGradientNode(localPosition, halfSize, radius);\n\tconst refractionOffset = projection.refraction.mul(edge.mul(1.15).add(centerLens.mul(0.04)));\n\tconst samplePosition = localPosition.add(gradient.mul(refractionOffset));\n\tconst clipPosition = cameraProjectionMatrix\n\t\t.mul(cameraViewMatrix)\n\t\t.mul(modelWorldMatrix)\n\t\t.mul(vec4(samplePosition, 0, 1));\n\tconst ndc = clipPosition.xy.div(clipPosition.w);\n\tconst projectedUv = vec2(ndc.x.mul(0.5).add(0.5), ndc.y.mul(-0.5).add(0.5));\n\n\treturn varying(clamp(projectedUv, 0, 1), 'vLiquidGlassBackdropUv');\n}\n\nfunction roundedRectSdfNode(point: Node<'vec2'>, halfSize: Node<'vec2'>, radius: Node<'float'>) {\n\tconst q = abs(point).sub(halfSize).add(radius);\n\treturn tslMin(tslMax(q.x, q.y), 0)\n\t\t.add(length(tslMax(q, 0)))\n\t\t.sub(radius) as Node<'float'>;\n}\n\nfunction roundedRectGradientNode(\n\tpoint: Node<'vec2'>,\n\thalfSize: Node<'vec2'>,\n\tradius: Node<'float'>\n) {\n\tconst epsilon = 0.5;\n\tconst dx = roundedRectSdfNode(point.add(vec2(epsilon, 0)), halfSize, radius).sub(\n\t\troundedRectSdfNode(point.sub(vec2(epsilon, 0)), halfSize, radius)\n\t);\n\tconst dy = roundedRectSdfNode(point.add(vec2(0, epsilon)), halfSize, radius).sub(\n\t\troundedRectSdfNode(point.sub(vec2(0, epsilon)), halfSize, radius)\n\t);\n\tconst gradient = vec2(dx, dy);\n\n\treturn gradient.div(tslMax(length(gradient), 0.00001));\n}\n\nfunction getDepthOpacity(thickness: number) {\n\treturn THREE.MathUtils.clamp(thickness, 0, 1) * 0.12;\n}\n\n/**\n * Inverts the stage's ACES curve so the final global output pass preserves a\n * CSS-style tint composite instead of tone-mapping it a second time.\n */\nexport function inverseAcesToneMapping(target: Node<'vec3'>) {\n\tconst inputMatrix = mat3(\n\t\t0.59719,\n\t\t0.35458,\n\t\t0.04823,\n\t\t0.076,\n\t\t0.90834,\n\t\t0.01566,\n\t\t0.0284,\n\t\t0.13383,\n\t\t0.83777\n\t);\n\tconst outputMatrix = mat3(\n\t\t1.60475,\n\t\t-0.53108,\n\t\t-0.07367,\n\t\t-0.10208,\n\t\t1.10813,\n\t\t-0.00605,\n\t\t-0.00327,\n\t\t-0.07276,\n\t\t1.07602\n\t);\n\tconst fittedTarget = tslMax(inverse(outputMatrix).mul(target), 0) as Node<'vec3'>;\n\tconst a = float(1).sub(fittedTarget.mul(0.983729));\n\tconst b = float(0.0245786).sub(fittedTarget.mul(0.432951));\n\tconst c = float(-0.000090537).sub(fittedTarget.mul(0.238081));\n\tconst discriminant = tslMax(b.mul(b).sub(a.mul(c).mul(4)), 0);\n\tconst fittedInput = b.negate().add(sqrt(discriminant)).div(a.mul(2)) as Node<'vec3'>;\n\tconst transformedInput = inverse(inputMatrix).mul(fittedInput) as Node<'vec3'>;\n\n\treturn tslMax(transformedInput.mul(0.6 / STAGE_TONE_MAPPING_EXPOSURE), 0) as Node<'vec3'>;\n}\n\nfunction getDepthColor(tint: ColorRepresentation) {\n\treturn new THREE.Color(tint).lerp(new THREE.Color(0x101820), 0.72);\n}\n\nfunction getSpecularColor(tint: ColorRepresentation, tintOpacity: number) {\n\tconst tintColor = new THREE.Color(tint);\n\tconst tintDarkness = 1 - Math.max(tintColor.r, tintColor.g, tintColor.b);\n\tconst tintInfluence = THREE.MathUtils.clamp(tintOpacity + tintDarkness * 0.55, 0, 1);\n\n\treturn new THREE.Color(0xffffff).lerp(tintColor, tintInfluence);\n}\n\nfunction createVertexAlphaMaterial(\n\tcolor: ColorRepresentation,\n\topacity: number,\n\tblending: typeof THREE.NormalBlending | typeof THREE.AdditiveBlending = THREE.NormalBlending\n) {\n\tconst material = new THREE.MeshBasicMaterial({\n\t\tblending,\n\t\tcolor,\n\t\tdepthTest: false,\n\t\tdepthWrite: false,\n\t\topacity,\n\t\tside: THREE.DoubleSide,\n\t\ttransparent: true,\n\t\tvertexColors: true\n\t});\n\tmaterial.toneMapped = false;\n\n\treturn material;\n}\n\nconst roundedGridVertices = new WeakMap<THREE.BufferGeometry, Int32Array>();\n\nfunction createRoundedGridGeometry(\n\twidth: number,\n\theight: number,\n\tradius: number,\n\tcolumns: number,\n\trows: number,\n\tgeometry = new THREE.BufferGeometry()\n) {\n\tconst halfWidth = width * 0.5;\n\tconst halfHeight = height * 0.5;\n\tconst r = Math.min(radius, halfWidth, halfHeight);\n\t// Corner cells enter/leave the surface as its size changes. Reserve the full grid\n\t// once, keeping GPU buffer identity while drawRange selects the exact authored mesh.\n\tlet vertexIndex = roundedGridVertices.get(geometry);\n\tif (!vertexIndex) {\n\t\tconst capacity = (columns + 1) * (rows + 1);\n\t\tvertexIndex = new Int32Array(capacity);\n\t\troundedGridVertices.set(geometry, vertexIndex);\n\t\tgeometry.setAttribute(\n\t\t\t'position',\n\t\t\tnew THREE.BufferAttribute(new Float32Array(capacity * 3), 3).setUsage(THREE.DynamicDrawUsage)\n\t\t);\n\t\tgeometry.setIndex(\n\t\t\tnew THREE.BufferAttribute(new Uint16Array(columns * rows * 6), 1).setUsage(\n\t\t\t\tTHREE.DynamicDrawUsage\n\t\t\t)\n\t\t);\n\t}\n\tvertexIndex.fill(-1);\n\tconst position = geometry.getAttribute('position') as THREE.BufferAttribute;\n\tconst positions = position.array;\n\tconst indexAttribute = geometry.index!;\n\tconst indices = indexAttribute.array;\n\tlet vertexCount = 0;\n\tlet indexCount = 0;\n\n\tconst addVertex = (gridX: number, gridY: number) => {\n\t\tconst key = gridY * (columns + 1) + gridX;\n\t\tconst existing = vertexIndex[key];\n\t\tif (existing !== -1) return existing;\n\n\t\tlet x = -halfWidth + (gridX / columns) * width;\n\t\tlet y = -halfHeight + (gridY / rows) * height;\n\t\tconst distance = roundedRectSdf(x, y, halfWidth, halfHeight, r);\n\n\t\tif (distance > 0) {\n\t\t\tconst gradient = roundedRectGradient(x, y, halfWidth, halfHeight, r);\n\t\t\tx -= gradient.x * distance;\n\t\t\ty -= gradient.y * distance;\n\t\t}\n\n\t\tconst index = vertexCount++;\n\t\tpositions[index * 3] = x;\n\t\tpositions[index * 3 + 1] = y;\n\t\tpositions[index * 3 + 2] = 0;\n\t\tvertexIndex[key] = index;\n\n\t\treturn index;\n\t};\n\n\tfor (let y = 0; y < rows; y += 1) {\n\t\tfor (let x = 0; x < columns; x += 1) {\n\t\t\tconst x0 = -halfWidth + (x / columns) * width;\n\t\t\tconst x1 = -halfWidth + ((x + 1) / columns) * width;\n\t\t\tconst y0 = -halfHeight + (y / rows) * height;\n\t\t\tconst y1 = -halfHeight + ((y + 1) / rows) * height;\n\t\t\tconst centerX = -halfWidth + ((x + 0.5) / columns) * width;\n\t\t\tconst centerY = -halfHeight + ((y + 0.5) / rows) * height;\n\t\t\tconst inside =\n\t\t\t\troundedRectSdf(centerX, centerY, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x0, y0, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x1, y0, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x0, y1, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x1, y1, halfWidth, halfHeight, r) <= 0;\n\n\t\t\tif (!inside) continue;\n\n\t\t\tconst a = addVertex(x, y);\n\t\t\tconst b = addVertex(x + 1, y);\n\t\t\tconst c = addVertex(x, y + 1);\n\t\t\tconst d = addVertex(x + 1, y + 1);\n\t\t\tindices[indexCount++] = a;\n\t\t\tindices[indexCount++] = b;\n\t\t\tindices[indexCount++] = c;\n\t\t\tindices[indexCount++] = b;\n\t\t\tindices[indexCount++] = d;\n\t\t\tindices[indexCount++] = c;\n\t\t}\n\t}\n\n\tpositions.fill(0, vertexCount * 3);\n\tindices.fill(0, indexCount);\n\tgeometry.setDrawRange(0, indexCount);\n\tposition.needsUpdate = true;\n\tindexAttribute.needsUpdate = true;\n\tgeometry.computeVertexNormals();\n\tgeometry.computeBoundingBox();\n\tgeometry.computeBoundingSphere();\n\n\treturn geometry;\n}\n\nfunction createRoundedBandGeometry(\n\twidth: number,\n\theight: number,\n\tradius: number,\n\tspread: number,\n\trings: number,\n\talphaPower: number\n) {\n\tconst positions: number[] = [];\n\tconst colors: number[] = [];\n\tconst indices: number[] = [];\n\tconst pointsPerRing = 96;\n\n\tfor (let ring = 0; ring <= rings; ring += 1) {\n\t\tconst t = ring / rings;\n\t\tconst offset = spread * t;\n\t\tconst ringWidth = Math.max(1, width + offset * 2);\n\t\tconst ringHeight = Math.max(1, height + offset * 2);\n\t\tconst ringRadius = Math.max(0, Math.min(radius + offset, ringWidth * 0.5, ringHeight * 0.5));\n\t\tconst alpha = Math.pow(1 - t, alphaPower);\n\t\tconst points = createRoundedRectPoints(ringWidth, ringHeight, ringRadius, pointsPerRing / 4);\n\n\t\tpoints.forEach(({ x, y }) => {\n\t\t\tpositions.push(x, y, 0);\n\t\t\tcolors.push(1, 1, 1, alpha);\n\t\t});\n\t}\n\n\tfor (let ring = 0; ring < rings; ring += 1) {\n\t\tconst current = ring * pointsPerRing;\n\t\tconst next = (ring + 1) * pointsPerRing;\n\n\t\tfor (let index = 0; index < pointsPerRing; index += 1) {\n\t\t\tconst a = current + index;\n\t\t\tconst b = current + ((index + 1) % pointsPerRing);\n\t\t\tconst c = next + index;\n\t\t\tconst d = next + ((index + 1) % pointsPerRing);\n\t\t\tindices.push(a, b, c, b, d, c);\n\t\t}\n\t}\n\n\tconst geometry = new THREE.BufferGeometry();\n\tgeometry.setIndex(indices);\n\tgeometry.setAttribute('position', new THREE.Float32BufferAttribute(positions, 3));\n\tgeometry.setAttribute('color', new THREE.Float32BufferAttribute(colors, 4));\n\tgeometry.computeVertexNormals();\n\n\treturn geometry;\n}\n\nfunction createRoundedRectPoints(\n\twidth: number,\n\theight: number,\n\tradius: number,\n\tsegmentsPerCorner: number\n) {\n\tconst halfWidth = width * 0.5;\n\tconst halfHeight = height * 0.5;\n\tconst r = Math.min(radius, halfWidth, halfHeight);\n\tconst corners = [\n\t\t{ x: halfWidth - r, y: halfHeight - r, start: Math.PI * 0.5, end: 0 },\n\t\t{ x: halfWidth - r, y: -halfHeight + r, start: 0, end: -Math.PI * 0.5 },\n\t\t{ x: -halfWidth + r, y: -halfHeight + r, start: -Math.PI * 0.5, end: -Math.PI },\n\t\t{ x: -halfWidth + r, y: halfHeight - r, start: Math.PI, end: Math.PI * 0.5 }\n\t];\n\tconst points: { x: number; y: number }[] = [];\n\n\tcorners.forEach((corner) => {\n\t\tfor (let step = 0; step < segmentsPerCorner; step += 1) {\n\t\t\tconst t = step / segmentsPerCorner;\n\t\t\tconst angle = THREE.MathUtils.lerp(corner.start, corner.end, t);\n\t\t\tpoints.push({\n\t\t\t\tx: corner.x + Math.cos(angle) * r,\n\t\t\t\ty: corner.y + Math.sin(angle) * r\n\t\t\t});\n\t\t}\n\t});\n\n\treturn points;\n}\n\nfunction roundedRectSdf(\n\tx: number,\n\ty: number,\n\thalfWidth: number,\n\thalfHeight: number,\n\tradius: number\n) {\n\tconst qx = Math.abs(x) - halfWidth + radius;\n\tconst qy = Math.abs(y) - halfHeight + radius;\n\treturn Math.min(Math.max(qx, qy), 0) + Math.hypot(Math.max(qx, 0), Math.max(qy, 0)) - radius;\n}\n\nfunction roundedRectGradient(\n\tx: number,\n\ty: number,\n\thalfWidth: number,\n\thalfHeight: number,\n\tradius: number\n) {\n\tconst eps = 0.5;\n\tconst dx =\n\t\troundedRectSdf(x + eps, y, halfWidth, halfHeight, radius) -\n\t\troundedRectSdf(x - eps, y, halfWidth, halfHeight, radius);\n\tconst dy =\n\t\troundedRectSdf(x, y + eps, halfWidth, halfHeight, radius) -\n\t\troundedRectSdf(x, y - eps, halfWidth, halfHeight, radius);\n\tconst length = Math.hypot(dx, dy) || 1;\n\n\treturn { x: dx / length, y: dy / length };\n}\n"]}
1
+ {"version":3,"file":"LiquidGlassPanel.js","sourceRoot":"","sources":["../../src/stage/LiquidGlassPanel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EACN,GAAG,EACH,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAM,EACN,IAAI,EACJ,GAAG,IAAI,MAAM,EACb,GAAG,IAAI,MAAM,EACb,GAAG,EACH,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,IAAI,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,UAAU,EAAE,MAAM,CAAC;QACzD,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["import * as THREE from 'three/webgpu';\nimport {\n\tabs,\n\tacesFilmicToneMapping,\n\tcameraProjectionMatrix,\n\tcameraViewMatrix,\n\tclamp,\n\tcolor,\n\tfloat,\n\tinverse,\n\tlength,\n\tmat3,\n\tmax as tslMax,\n\tmin as tslMin,\n\tmix,\n\tmodelWorldMatrix,\n\toneMinus,\n\tpositionLocal,\n\tsqrt,\n\tsRGBTransferEOTF,\n\tsRGBTransferOETF,\n\tsmoothstep,\n\tstep,\n\ttexture,\n\tuniform,\n\tvarying,\n\tvec2,\n\tvec4\n} from 'three/tsl';\nimport type { ColorRepresentation } from 'three';\nimport type { Node } from 'three/webgpu';\nimport { PANEL_SHADOW_RECIPE, resolvePanelShadowStrength } from './panelShadow.js';\n\n/** A CSS Gaussian shadow reaches roughly half its declared alpha at an unspread edge. */\nconst WEBGPU_SHADOW_EDGE_COMPENSATION = 0.5;\nconst WEBGPU_SHADOW_EXTENT_PER_BLUR = 1.5;\n\nexport interface LiquidGlassPanelOptions {\n\twidth?: number;\n\theight?: number;\n\tradius?: number;\n\tposition?: { x: number; y: number };\n\t/** Blur radius of the sampled stage backdrop, in CSS pixels. */\n\tbackdropBlur?: number;\n\t/** Maximum displacement of the sampled backdrop near the glass edge, in CSS pixels. */\n\trefraction?: number;\n\ttint?: ColorRepresentation;\n\t/** Direct opacity of the tint over the sampled backdrop, from zero to one. */\n\ttintOpacity?: number;\n\t/** Width of the refractive/specular edge, in CSS pixels. */\n\tbezel?: number;\n\t/** Optical edge weight, from zero (flat) to one (thick glass). */\n\tthickness?: number;\n\tspecularOpacity?: number;\n\t/** Normalized strength of the panel shadow, from zero to one. */\n\tshadowIntensity?: number;\n\topacity?: number;\n}\n\nconst DEFAULT_OPTIONS = {\n\twidth: 360,\n\theight: 230,\n\tradius: 42,\n\tposition: { x: 0, y: 42 },\n\tbackdropBlur: 5,\n\trefraction: 12,\n\ttint: 0xffffff,\n\ttintOpacity: 0.28,\n\tbezel: 18,\n\tthickness: 0.35,\n\tspecularOpacity: 0.18,\n\tshadowIntensity: 0.28,\n\topacity: 1\n} satisfies Required<LiquidGlassPanelOptions>;\n\n/** Exposure shared by the stage renderer and CSS-color compensation for panel tints. */\nexport const STAGE_TONE_MAPPING_EXPOSURE = 1.15;\n\n/** Applies stable defaults and keeps public visual controls inside their documented ranges. */\nexport function resolveLiquidGlassPanelOptions(\n\toptions: LiquidGlassPanelOptions = {}\n): Required<LiquidGlassPanelOptions> {\n\tconst merged = {\n\t\t...DEFAULT_OPTIONS,\n\t\t...options,\n\t\tposition: { ...DEFAULT_OPTIONS.position, ...options.position }\n\t};\n\tconst width = clampFinite(merged.width, 1, Number.MAX_SAFE_INTEGER, DEFAULT_OPTIONS.width);\n\tconst height = clampFinite(merged.height, 1, Number.MAX_SAFE_INTEGER, DEFAULT_OPTIONS.height);\n\n\treturn {\n\t\t...merged,\n\t\twidth,\n\t\theight,\n\t\tradius: clampFinite(merged.radius, 0, Math.min(width, height) * 0.5, DEFAULT_OPTIONS.radius),\n\t\tposition: {\n\t\t\tx: finiteOr(merged.position.x, DEFAULT_OPTIONS.position.x),\n\t\t\ty: finiteOr(merged.position.y, DEFAULT_OPTIONS.position.y)\n\t\t},\n\t\tbackdropBlur: clampFinite(merged.backdropBlur, 0, 100, DEFAULT_OPTIONS.backdropBlur),\n\t\trefraction: clampFinite(merged.refraction, 0, 100, DEFAULT_OPTIONS.refraction),\n\t\ttintOpacity: clampFinite(merged.tintOpacity, 0, 1, DEFAULT_OPTIONS.tintOpacity),\n\t\tbezel: clampFinite(merged.bezel, 0, Math.min(width, height) * 0.5, DEFAULT_OPTIONS.bezel),\n\t\tthickness: clampFinite(merged.thickness, 0, 1, DEFAULT_OPTIONS.thickness),\n\t\tspecularOpacity: clampFinite(merged.specularOpacity, 0, 1, DEFAULT_OPTIONS.specularOpacity),\n\t\tshadowIntensity: clampFinite(merged.shadowIntensity, 0, 1, DEFAULT_OPTIONS.shadowIntensity),\n\t\topacity: clampFinite(merged.opacity, 0, 1, DEFAULT_OPTIONS.opacity)\n\t};\n}\n\nfunction finiteOr(value: number, fallback: number) {\n\treturn Number.isFinite(value) ? value : fallback;\n}\n\nfunction clampFinite(value: number, min: number, max: number, fallback: number) {\n\treturn THREE.MathUtils.clamp(finiteOr(value, fallback), min, max);\n}\n\nexport class LiquidGlassPanel {\n\t/** Preserve full-backdrop coordinates while a cropped camera captures this surface. */\n\tsetBackdropUvTransform(x: number, y: number, width: number, height: number) {\n\t\tthis.backdropProjection.uvOffset.value.set(x, y);\n\t\tthis.backdropProjection.uvScale.value.set(width, height);\n\t}\n\treadonly group = new THREE.Group();\n\treadonly options: Required<LiquidGlassPanelOptions>;\n\n\tprivate readonly geometryOptions: Required<LiquidGlassPanelOptions>;\n\tprivate readonly authoredBezel: number;\n\tprivate readonly authoredRadius: number;\n\tprivate readonly backdropGeometry: THREE.BufferGeometry;\n\tprivate readonly bezelGeometry: THREE.BufferGeometry;\n\tprivate readonly shadowLayers: {\n\t\tgeometry: THREE.BufferGeometry;\n\t\tmaterial: THREE.MeshBasicMaterial;\n\t\tmesh: THREE.Mesh;\n\t\talphaScale: number;\n\t}[];\n\tprivate readonly backdropMaterial: THREE.MeshBasicNodeMaterial;\n\tprivate readonly backdropTextureNode: ReturnType<typeof texture>;\n\tprivate readonly depthMaterial: THREE.MeshBasicMaterial;\n\tprivate readonly sheenMaterial: THREE.MeshBasicMaterial;\n\tprivate readonly backdropProjection: ReturnType<typeof createBackdropProjectionUniforms>;\n\n\tconstructor(backdropTexture: THREE.Texture, options: LiquidGlassPanelOptions = {}) {\n\t\tthis.options = resolveLiquidGlassPanelOptions(options);\n\t\t// Hidden native popovers initially measure 1px. Keep the authored optical\n\t\t// dimensions so opening/resizing does not permanently flatten their glass edge.\n\t\tthis.authoredBezel = Math.max(0, finiteOr(options.bezel ?? DEFAULT_OPTIONS.bezel, DEFAULT_OPTIONS.bezel));\n\t\tthis.authoredRadius = Math.max(0, finiteOr(options.radius ?? DEFAULT_OPTIONS.radius, DEFAULT_OPTIONS.radius));\n\t\tthis.geometryOptions = {\n\t\t\t...this.options,\n\t\t\tposition: { ...this.options.position }\n\t\t};\n\t\tthis.backdropProjection = createBackdropProjectionUniforms(this.options);\n\n\t\tthis.group.position.set(this.options.position.x, this.options.position.y, 0);\n\t\tthis.backdropGeometry = createRoundedGridGeometry(\n\t\t\tthis.geometryOptions.width,\n\t\t\tthis.geometryOptions.height,\n\t\t\tthis.geometryOptions.radius,\n\t\t\t128,\n\t\t\t82\n\t\t);\n\t\tthis.bezelGeometry = createRoundedBandGeometry(\n\t\t\tthis.geometryOptions.width,\n\t\t\tthis.geometryOptions.height,\n\t\t\tthis.geometryOptions.radius,\n\t\t\t-this.geometryOptions.bezel,\n\t\t\t14,\n\t\t\t1.7\n\t\t);\n\t\tthis.shadowLayers = PANEL_SHADOW_RECIPE.map((layer, index) => {\n\t\t\tconst shadowStrength = resolvePanelShadowStrength(this.options.shadowIntensity);\n\t\t\tconst geometry = createRoundedBandGeometry(\n\t\t\t\tthis.geometryOptions.width,\n\t\t\t\tthis.geometryOptions.height,\n\t\t\t\tthis.geometryOptions.radius,\n\t\t\t\tlayer.blur * WEBGPU_SHADOW_EXTENT_PER_BLUR,\n\t\t\t\tMath.max(8, Math.round(layer.blur)),\n\t\t\t\t2.1\n\t\t\t);\n\t\t\tconst material = createVertexAlphaMaterial(\n\t\t\t\t0x000000,\n\t\t\t\tshadowStrength * layer.alphaScale * WEBGPU_SHADOW_EDGE_COMPENSATION\n\t\t\t);\n\t\t\tconst mesh = new THREE.Mesh(geometry, material);\n\t\t\tmesh.position.set(0, -layer.offsetY, 0);\n\t\t\tmesh.renderOrder = PANEL_SHADOW_RECIPE.length - index;\n\t\t\treturn { geometry, material, mesh, alphaScale: layer.alphaScale };\n\t\t});\n\t\tthis.depthMaterial = createVertexAlphaMaterial(\n\t\t\tgetDepthColor(this.options.tint),\n\t\t\tgetDepthOpacity(this.options.thickness)\n\t\t);\n\t\tthis.sheenMaterial = createVertexAlphaMaterial(\n\t\t\tgetSpecularColor(this.options.tint, this.options.tintOpacity),\n\t\t\tthis.options.specularOpacity,\n\t\t\tTHREE.AdditiveBlending\n\t\t);\n\t\tconst backdropShader = createBackdropMaterial(\n\t\t\tbackdropTexture,\n\t\t\tthis.options.tint,\n\t\t\tthis.options.tintOpacity,\n\t\t\tthis.backdropProjection\n\t\t);\n\t\tthis.backdropMaterial = backdropShader.material;\n\t\tthis.backdropTextureNode = backdropShader.textureNode;\n\n\t\tconst backdrop = new THREE.Mesh(this.backdropGeometry, this.backdropMaterial);\n\t\tbackdrop.position.z = 0;\n\t\tbackdrop.renderOrder = 3;\n\n\t\tconst depthTint = new THREE.Mesh(this.bezelGeometry, this.depthMaterial);\n\t\tdepthTint.position.z = 0;\n\t\tdepthTint.renderOrder = 4;\n\n\t\tconst sheen = new THREE.Mesh(this.bezelGeometry, this.sheenMaterial);\n\t\tsheen.position.z = 0;\n\t\tsheen.renderOrder = 6;\n\n\t\tthis.group.add(...this.shadowLayers.map(({ mesh }) => mesh), backdrop, depthTint, sheen);\n\t\tthis.setVisibilityAlpha(1);\n\t}\n\n\tsetVisibilityAlpha(alpha: number) {\n\t\tconst scale = THREE.MathUtils.clamp(alpha * this.options.opacity, 0, 1);\n\t\tthis.group.visible = scale > 0.01;\n\t\tthis.backdropMaterial.opacity = scale;\n\t\tthis.depthMaterial.opacity = getDepthOpacity(this.options.thickness) * scale;\n\t\tthis.sheenMaterial.opacity = this.options.specularOpacity * scale;\n\t\tthis.shadowLayers.forEach(({ material, alphaScale }) => {\n\t\t\tmaterial.opacity =\n\t\t\t\tresolvePanelShadowStrength(this.options.shadowIntensity) *\n\t\t\t\talphaScale *\n\t\t\t\tWEBGPU_SHADOW_EDGE_COMPENSATION *\n\t\t\t\tscale;\n\t\t});\n\t}\n\n\tsetBackdropTexture(backdropTexture: THREE.Texture) {\n\t\tif (this.backdropTextureNode.value === backdropTexture) return;\n\t\tthis.backdropTextureNode.value = backdropTexture;\n\t}\n\n\tsetVisualSize(width: number, height: number, radius = this.authoredRadius) {\n\t\tconst nextWidth = Math.max(width, 1);\n\t\tconst nextHeight = Math.max(height, 1);\n\t\tconst nextRadius = Math.min(Math.max(radius, 0), nextWidth * 0.5, nextHeight * 0.5);\n\t\tconst nextBezel = Math.min(this.authoredBezel, nextWidth * 0.5, nextHeight * 0.5);\n\n\t\tif (\n\t\t\tMath.abs(this.geometryOptions.width - nextWidth) < 0.01 &&\n\t\t\tMath.abs(this.geometryOptions.height - nextHeight) < 0.01 &&\n\t\t\tMath.abs(this.geometryOptions.radius - nextRadius) < 0.01\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.geometryOptions.width = nextWidth;\n\t\tthis.geometryOptions.height = nextHeight;\n\t\tthis.geometryOptions.radius = nextRadius;\n\t\tthis.geometryOptions.bezel = nextBezel;\n\t\tthis.backdropProjection.panelSize.value.set(nextWidth, nextHeight);\n\t\tthis.backdropProjection.radius.value = nextRadius;\n\t\tthis.backdropProjection.bezel.value = nextBezel;\n\t\tcreateRoundedGridGeometry(nextWidth, nextHeight, nextRadius, 128, 82, this.backdropGeometry);\n\t\tcopyGeometry(\n\t\t\tthis.bezelGeometry,\n\t\t\tcreateRoundedBandGeometry(nextWidth, nextHeight, nextRadius, -nextBezel, 14, 1.7)\n\t\t);\n\t\tthis.shadowLayers.forEach(({ geometry }, index) => {\n\t\t\tconst layer = PANEL_SHADOW_RECIPE[index];\n\t\t\tcopyGeometry(\n\t\t\t\tgeometry,\n\t\t\t\tcreateRoundedBandGeometry(\n\t\t\t\t\tnextWidth,\n\t\t\t\t\tnextHeight,\n\t\t\t\t\tnextRadius,\n\t\t\t\t\tlayer.blur * WEBGPU_SHADOW_EXTENT_PER_BLUR,\n\t\t\t\t\tMath.max(8, Math.round(layer.blur)),\n\t\t\t\t\t2.1\n\t\t\t\t)\n\t\t\t);\n\t\t});\n\t}\n\n\tdispose() {\n\t\tthis.backdropGeometry.dispose();\n\t\tthis.bezelGeometry.dispose();\n\t\tthis.shadowLayers.forEach(({ geometry, material }) => {\n\t\t\tgeometry.dispose();\n\t\t\tmaterial.dispose();\n\t\t});\n\t\tthis.backdropMaterial.dispose();\n\t\tthis.depthMaterial.dispose();\n\t\tthis.sheenMaterial.dispose();\n\t}\n}\n\nfunction copyGeometry(target: THREE.BufferGeometry, source: THREE.BufferGeometry) {\n\tconst names = Object.keys(source.attributes);\n\tconst reusable =\n\t\tnames.length === Object.keys(target.attributes).length &&\n\t\tnames.every((name) => {\n\t\t\tconst before = target.getAttribute(name);\n\t\t\tconst after = source.getAttribute(name);\n\t\t\treturn (\n\t\t\t\tbefore instanceof THREE.BufferAttribute &&\n\t\t\t\tafter instanceof THREE.BufferAttribute &&\n\t\t\t\tbefore.itemSize === after.itemSize &&\n\t\t\t\tbefore.array.constructor === after.array.constructor &&\n\t\t\t\tbefore.array.length === after.array.length\n\t\t\t);\n\t\t}) &&\n\t\ttarget.index?.count === source.index?.count;\n\tif (reusable) {\n\t\tfor (const name of names) {\n\t\t\tconst attribute = target.getAttribute(name) as THREE.BufferAttribute;\n\t\t\tattribute.array.set((source.getAttribute(name) as THREE.BufferAttribute).array);\n\t\t\tattribute.needsUpdate = true;\n\t\t}\n\t\tif (target.index && source.index) {\n\t\t\ttarget.index.array.set(source.index.array);\n\t\t\ttarget.index.needsUpdate = true;\n\t\t}\n\t\ttarget.computeBoundingBox();\n\t\ttarget.computeBoundingSphere();\n\t} else {\n\t\t// Preserve the authored band if a future recipe changes its buffer layout.\n\t\ttarget.dispose();\n\t\ttarget.copy(source);\n\t}\n\tsource.dispose();\n}\n\nfunction createBackdropMaterial(\n\tbackdropTexture: THREE.Texture,\n\ttint: ColorRepresentation,\n\ttintOpacity: number,\n\tprojection: ReturnType<typeof createBackdropProjectionUniforms>\n) {\n\tconst material = new THREE.MeshBasicNodeMaterial({\n\t\tdepthTest: false,\n\t\tdepthWrite: false,\n\t\ttransparent: true\n\t});\n\tconst displayTintValue = new THREE.Color(tint);\n\tTHREE.ColorManagement.workingToColorSpace(displayTintValue, THREE.SRGBColorSpace);\n\tconst textureNode = texture(backdropTexture, createBackdropUvNode(projection));\n\tconst backdropLinear = textureNode.rgb;\n\tconst backdropDisplay = sRGBTransferOETF(\n\t\tacesFilmicToneMapping(backdropLinear, float(STAGE_TONE_MAPPING_EXPOSURE))\n\t) as Node<'vec3'>;\n\tconst compositeDisplay = mix(backdropDisplay, color(displayTintValue), float(tintOpacity));\n\tmaterial.colorNode = inverseAcesToneMapping(sRGBTransferEOTF(compositeDisplay) as Node<'vec3'>);\n\tmaterial.toneMapped = false;\n\n\treturn { material, textureNode };\n}\n\nfunction createBackdropProjectionUniforms(options: Required<LiquidGlassPanelOptions>) {\n\treturn {\n\t\tuvOffset: uniform(new THREE.Vector2()),\n\t\tuvScale: uniform(new THREE.Vector2(1, 1)),\n\t\tpanelSize: uniform(new THREE.Vector2(options.width, options.height)),\n\t\tradius: uniform(options.radius),\n\t\tbezel: uniform(options.bezel),\n\t\trefraction: uniform(options.refraction)\n\t};\n}\n\n/**\n * Computes the refracted backdrop coordinate once per vertex. The resulting\n * varying is interpolated by the rasterizer, so panel movement and camera\n * changes no longer require rewriting and uploading the complete UV buffer.\n */\nfunction createBackdropUvNode(projection: ReturnType<typeof createBackdropProjectionUniforms>) {\n\tconst localPosition = positionLocal.xy;\n\tconst halfSize = projection.panelSize.mul(0.5);\n\tconst radius = tslMin(projection.radius, tslMin(halfSize.x, halfSize.y));\n\tconst signedDistance = roundedRectSdfNode(localPosition, halfSize, radius);\n\tconst insideDistance = tslMax(signedDistance.negate(), 0);\n\tconst edge = oneMinus(smoothstep(0, tslMax(projection.bezel, 0.0001), insideDistance)).mul(\n\t\tstep(0.0001, projection.bezel)\n\t);\n\tconst normalizedPosition = localPosition.div(tslMax(halfSize, 1));\n\tconst centerLens = oneMinus(tslMin(1, length(normalizedPosition)));\n\tconst gradient = roundedRectGradientNode(localPosition, halfSize, radius);\n\tconst refractionOffset = projection.refraction.mul(edge.mul(1.15).add(centerLens.mul(0.04)));\n\tconst samplePosition = localPosition.add(gradient.mul(refractionOffset));\n\tconst clipPosition = cameraProjectionMatrix\n\t\t.mul(cameraViewMatrix)\n\t\t.mul(modelWorldMatrix)\n\t\t.mul(vec4(samplePosition, 0, 1));\n\tconst ndc = clipPosition.xy.div(clipPosition.w);\n\tconst projectedUv = vec2(ndc.x.mul(0.5).add(0.5), ndc.y.mul(-0.5).add(0.5));\n\n\treturn varying(clamp(projectedUv.mul(projection.uvScale).add(projection.uvOffset), 0, 1), 'vLiquidGlassBackdropUv');\n}\n\nfunction roundedRectSdfNode(point: Node<'vec2'>, halfSize: Node<'vec2'>, radius: Node<'float'>) {\n\tconst q = abs(point).sub(halfSize).add(radius);\n\treturn tslMin(tslMax(q.x, q.y), 0)\n\t\t.add(length(tslMax(q, 0)))\n\t\t.sub(radius) as Node<'float'>;\n}\n\nfunction roundedRectGradientNode(\n\tpoint: Node<'vec2'>,\n\thalfSize: Node<'vec2'>,\n\tradius: Node<'float'>\n) {\n\tconst epsilon = 0.5;\n\tconst dx = roundedRectSdfNode(point.add(vec2(epsilon, 0)), halfSize, radius).sub(\n\t\troundedRectSdfNode(point.sub(vec2(epsilon, 0)), halfSize, radius)\n\t);\n\tconst dy = roundedRectSdfNode(point.add(vec2(0, epsilon)), halfSize, radius).sub(\n\t\troundedRectSdfNode(point.sub(vec2(0, epsilon)), halfSize, radius)\n\t);\n\tconst gradient = vec2(dx, dy);\n\n\treturn gradient.div(tslMax(length(gradient), 0.00001));\n}\n\nfunction getDepthOpacity(thickness: number) {\n\treturn THREE.MathUtils.clamp(thickness, 0, 1) * 0.12;\n}\n\n/**\n * Inverts the stage's ACES curve so the final global output pass preserves a\n * CSS-style tint composite instead of tone-mapping it a second time.\n */\nexport function inverseAcesToneMapping(target: Node<'vec3'>) {\n\tconst inputMatrix = mat3(\n\t\t0.59719,\n\t\t0.35458,\n\t\t0.04823,\n\t\t0.076,\n\t\t0.90834,\n\t\t0.01566,\n\t\t0.0284,\n\t\t0.13383,\n\t\t0.83777\n\t);\n\tconst outputMatrix = mat3(\n\t\t1.60475,\n\t\t-0.53108,\n\t\t-0.07367,\n\t\t-0.10208,\n\t\t1.10813,\n\t\t-0.00605,\n\t\t-0.00327,\n\t\t-0.07276,\n\t\t1.07602\n\t);\n\tconst fittedTarget = tslMax(inverse(outputMatrix).mul(target), 0) as Node<'vec3'>;\n\tconst a = float(1).sub(fittedTarget.mul(0.983729));\n\tconst b = float(0.0245786).sub(fittedTarget.mul(0.432951));\n\tconst c = float(-0.000090537).sub(fittedTarget.mul(0.238081));\n\tconst discriminant = tslMax(b.mul(b).sub(a.mul(c).mul(4)), 0);\n\tconst fittedInput = b.negate().add(sqrt(discriminant)).div(a.mul(2)) as Node<'vec3'>;\n\tconst transformedInput = inverse(inputMatrix).mul(fittedInput) as Node<'vec3'>;\n\n\treturn tslMax(transformedInput.mul(0.6 / STAGE_TONE_MAPPING_EXPOSURE), 0) as Node<'vec3'>;\n}\n\nfunction getDepthColor(tint: ColorRepresentation) {\n\treturn new THREE.Color(tint).lerp(new THREE.Color(0x101820), 0.72);\n}\n\nfunction getSpecularColor(tint: ColorRepresentation, tintOpacity: number) {\n\tconst tintColor = new THREE.Color(tint);\n\tconst tintDarkness = 1 - Math.max(tintColor.r, tintColor.g, tintColor.b);\n\tconst tintInfluence = THREE.MathUtils.clamp(tintOpacity + tintDarkness * 0.55, 0, 1);\n\n\treturn new THREE.Color(0xffffff).lerp(tintColor, tintInfluence);\n}\n\nfunction createVertexAlphaMaterial(\n\tcolor: ColorRepresentation,\n\topacity: number,\n\tblending: typeof THREE.NormalBlending | typeof THREE.AdditiveBlending = THREE.NormalBlending\n) {\n\tconst material = new THREE.MeshBasicMaterial({\n\t\tblending,\n\t\tcolor,\n\t\tdepthTest: false,\n\t\tdepthWrite: false,\n\t\topacity,\n\t\tside: THREE.DoubleSide,\n\t\ttransparent: true,\n\t\tvertexColors: true\n\t});\n\tmaterial.toneMapped = false;\n\n\treturn material;\n}\n\nconst roundedGridVertices = new WeakMap<THREE.BufferGeometry, Int32Array>();\n\nfunction createRoundedGridGeometry(\n\twidth: number,\n\theight: number,\n\tradius: number,\n\tcolumns: number,\n\trows: number,\n\tgeometry = new THREE.BufferGeometry()\n) {\n\tconst halfWidth = width * 0.5;\n\tconst halfHeight = height * 0.5;\n\tconst r = Math.min(radius, halfWidth, halfHeight);\n\t// Corner cells enter/leave the surface as its size changes. Reserve the full grid\n\t// once, keeping GPU buffer identity while drawRange selects the exact authored mesh.\n\tlet vertexIndex = roundedGridVertices.get(geometry);\n\tif (!vertexIndex) {\n\t\tconst capacity = (columns + 1) * (rows + 1);\n\t\tvertexIndex = new Int32Array(capacity);\n\t\troundedGridVertices.set(geometry, vertexIndex);\n\t\tgeometry.setAttribute(\n\t\t\t'position',\n\t\t\tnew THREE.BufferAttribute(new Float32Array(capacity * 3), 3).setUsage(THREE.DynamicDrawUsage)\n\t\t);\n\t\tgeometry.setIndex(\n\t\t\tnew THREE.BufferAttribute(new Uint16Array(columns * rows * 6), 1).setUsage(\n\t\t\t\tTHREE.DynamicDrawUsage\n\t\t\t)\n\t\t);\n\t}\n\tvertexIndex.fill(-1);\n\tconst position = geometry.getAttribute('position') as THREE.BufferAttribute;\n\tconst positions = position.array;\n\tconst indexAttribute = geometry.index!;\n\tconst indices = indexAttribute.array;\n\tlet vertexCount = 0;\n\tlet indexCount = 0;\n\n\tconst addVertex = (gridX: number, gridY: number) => {\n\t\tconst key = gridY * (columns + 1) + gridX;\n\t\tconst existing = vertexIndex[key];\n\t\tif (existing !== -1) return existing;\n\n\t\tlet x = -halfWidth + (gridX / columns) * width;\n\t\tlet y = -halfHeight + (gridY / rows) * height;\n\t\tconst distance = roundedRectSdf(x, y, halfWidth, halfHeight, r);\n\n\t\tif (distance > 0) {\n\t\t\tconst gradient = roundedRectGradient(x, y, halfWidth, halfHeight, r);\n\t\t\tx -= gradient.x * distance;\n\t\t\ty -= gradient.y * distance;\n\t\t}\n\n\t\tconst index = vertexCount++;\n\t\tpositions[index * 3] = x;\n\t\tpositions[index * 3 + 1] = y;\n\t\tpositions[index * 3 + 2] = 0;\n\t\tvertexIndex[key] = index;\n\n\t\treturn index;\n\t};\n\n\tfor (let y = 0; y < rows; y += 1) {\n\t\tfor (let x = 0; x < columns; x += 1) {\n\t\t\tconst x0 = -halfWidth + (x / columns) * width;\n\t\t\tconst x1 = -halfWidth + ((x + 1) / columns) * width;\n\t\t\tconst y0 = -halfHeight + (y / rows) * height;\n\t\t\tconst y1 = -halfHeight + ((y + 1) / rows) * height;\n\t\t\tconst centerX = -halfWidth + ((x + 0.5) / columns) * width;\n\t\t\tconst centerY = -halfHeight + ((y + 0.5) / rows) * height;\n\t\t\tconst inside =\n\t\t\t\troundedRectSdf(centerX, centerY, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x0, y0, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x1, y0, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x0, y1, halfWidth, halfHeight, r) <= 0 ||\n\t\t\t\troundedRectSdf(x1, y1, halfWidth, halfHeight, r) <= 0;\n\n\t\t\tif (!inside) continue;\n\n\t\t\tconst a = addVertex(x, y);\n\t\t\tconst b = addVertex(x + 1, y);\n\t\t\tconst c = addVertex(x, y + 1);\n\t\t\tconst d = addVertex(x + 1, y + 1);\n\t\t\tindices[indexCount++] = a;\n\t\t\tindices[indexCount++] = b;\n\t\t\tindices[indexCount++] = c;\n\t\t\tindices[indexCount++] = b;\n\t\t\tindices[indexCount++] = d;\n\t\t\tindices[indexCount++] = c;\n\t\t}\n\t}\n\n\tpositions.fill(0, vertexCount * 3);\n\tindices.fill(0, indexCount);\n\tgeometry.setDrawRange(0, indexCount);\n\tposition.needsUpdate = true;\n\tindexAttribute.needsUpdate = true;\n\tgeometry.computeVertexNormals();\n\tgeometry.computeBoundingBox();\n\tgeometry.computeBoundingSphere();\n\n\treturn geometry;\n}\n\nfunction createRoundedBandGeometry(\n\twidth: number,\n\theight: number,\n\tradius: number,\n\tspread: number,\n\trings: number,\n\talphaPower: number\n) {\n\tconst positions: number[] = [];\n\tconst colors: number[] = [];\n\tconst indices: number[] = [];\n\tconst pointsPerRing = 96;\n\n\tfor (let ring = 0; ring <= rings; ring += 1) {\n\t\tconst t = ring / rings;\n\t\tconst offset = spread * t;\n\t\tconst ringWidth = Math.max(1, width + offset * 2);\n\t\tconst ringHeight = Math.max(1, height + offset * 2);\n\t\tconst ringRadius = Math.max(0, Math.min(radius + offset, ringWidth * 0.5, ringHeight * 0.5));\n\t\tconst alpha = Math.pow(1 - t, alphaPower);\n\t\tconst points = createRoundedRectPoints(ringWidth, ringHeight, ringRadius, pointsPerRing / 4);\n\n\t\tpoints.forEach(({ x, y }) => {\n\t\t\tpositions.push(x, y, 0);\n\t\t\tcolors.push(1, 1, 1, alpha);\n\t\t});\n\t}\n\n\tfor (let ring = 0; ring < rings; ring += 1) {\n\t\tconst current = ring * pointsPerRing;\n\t\tconst next = (ring + 1) * pointsPerRing;\n\n\t\tfor (let index = 0; index < pointsPerRing; index += 1) {\n\t\t\tconst a = current + index;\n\t\t\tconst b = current + ((index + 1) % pointsPerRing);\n\t\t\tconst c = next + index;\n\t\t\tconst d = next + ((index + 1) % pointsPerRing);\n\t\t\tindices.push(a, b, c, b, d, c);\n\t\t}\n\t}\n\n\tconst geometry = new THREE.BufferGeometry();\n\tgeometry.setIndex(indices);\n\tgeometry.setAttribute('position', new THREE.Float32BufferAttribute(positions, 3));\n\tgeometry.setAttribute('color', new THREE.Float32BufferAttribute(colors, 4));\n\tgeometry.computeVertexNormals();\n\n\treturn geometry;\n}\n\nfunction createRoundedRectPoints(\n\twidth: number,\n\theight: number,\n\tradius: number,\n\tsegmentsPerCorner: number\n) {\n\tconst halfWidth = width * 0.5;\n\tconst halfHeight = height * 0.5;\n\tconst r = Math.min(radius, halfWidth, halfHeight);\n\tconst corners = [\n\t\t{ x: halfWidth - r, y: halfHeight - r, start: Math.PI * 0.5, end: 0 },\n\t\t{ x: halfWidth - r, y: -halfHeight + r, start: 0, end: -Math.PI * 0.5 },\n\t\t{ x: -halfWidth + r, y: -halfHeight + r, start: -Math.PI * 0.5, end: -Math.PI },\n\t\t{ x: -halfWidth + r, y: halfHeight - r, start: Math.PI, end: Math.PI * 0.5 }\n\t];\n\tconst points: { x: number; y: number }[] = [];\n\n\tcorners.forEach((corner) => {\n\t\tfor (let step = 0; step < segmentsPerCorner; step += 1) {\n\t\t\tconst t = step / segmentsPerCorner;\n\t\t\tconst angle = THREE.MathUtils.lerp(corner.start, corner.end, t);\n\t\t\tpoints.push({\n\t\t\t\tx: corner.x + Math.cos(angle) * r,\n\t\t\t\ty: corner.y + Math.sin(angle) * r\n\t\t\t});\n\t\t}\n\t});\n\n\treturn points;\n}\n\nfunction roundedRectSdf(\n\tx: number,\n\ty: number,\n\thalfWidth: number,\n\thalfHeight: number,\n\tradius: number\n) {\n\tconst qx = Math.abs(x) - halfWidth + radius;\n\tconst qy = Math.abs(y) - halfHeight + radius;\n\treturn Math.min(Math.max(qx, qy), 0) + Math.hypot(Math.max(qx, 0), Math.max(qy, 0)) - radius;\n}\n\nfunction roundedRectGradient(\n\tx: number,\n\ty: number,\n\thalfWidth: number,\n\thalfHeight: number,\n\tradius: number\n) {\n\tconst eps = 0.5;\n\tconst dx =\n\t\troundedRectSdf(x + eps, y, halfWidth, halfHeight, radius) -\n\t\troundedRectSdf(x - eps, y, halfWidth, halfHeight, radius);\n\tconst dy =\n\t\troundedRectSdf(x, y + eps, halfWidth, halfHeight, radius) -\n\t\troundedRectSdf(x, y - eps, halfWidth, halfHeight, radius);\n\tconst length = Math.hypot(dx, dy) || 1;\n\n\treturn { x: dx / length, y: dy / length };\n}\n"]}
@@ -19,12 +19,14 @@ export interface MinimapPorts {
19
19
  restCamera: THREE.Quaternion;
20
20
  restModel: THREE.Quaternion;
21
21
  hasControls: boolean;
22
- referenceTarget: THREE.Vector3;
22
+ /** Shared model frame center, also used as the initial orbit target. */
23
+ center: THREE.Vector3;
23
24
  };
24
25
  frame(): {
25
26
  hovering: boolean;
26
27
  interacting: boolean;
27
28
  scrolling: boolean;
29
+ fullscreen?: boolean;
28
30
  };
29
31
  environment(): THREE.RenderTarget | undefined;
30
32
  capture(): {
@@ -1 +1 @@
1
- {"version":3,"file":"MinimapController.d.ts","sourceRoot":"","sources":["../../src/stage/MinimapController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAuBtC,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,OAAO,CAAC;AAC5C,OAAO,EAGN,KAAK,uBAAuB,EAC5B,MAAM,uBAAuB,CAAC;AAmC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAOvE,OAAO,KAAK,EAA+B,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEhG,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAElG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,MAAM,WAAW,YAAY;IAC5B,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC;IAC/B,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAChC,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACrC,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC;I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