@spatial-elements/core 1.0.0-beta.5 → 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 (73) hide show
  1. package/dist/catalog/CarouselGlassCompositor.d.ts +7 -2
  2. package/dist/catalog/CarouselGlassCompositor.d.ts.map +1 -1
  3. package/dist/catalog/CarouselGlassCompositor.js +85 -24
  4. package/dist/catalog/CarouselGlassCompositor.js.map +1 -1
  5. package/dist/catalog/CarouselGround.d.ts +21 -0
  6. package/dist/catalog/CarouselGround.d.ts.map +1 -0
  7. package/dist/catalog/CarouselGround.js +107 -0
  8. package/dist/catalog/CarouselGround.js.map +1 -0
  9. package/dist/catalog/CatalogDepthBlur.d.ts +26 -0
  10. package/dist/catalog/CatalogDepthBlur.d.ts.map +1 -0
  11. package/dist/catalog/CatalogDepthBlur.js +87 -0
  12. package/dist/catalog/CatalogDepthBlur.js.map +1 -0
  13. package/dist/catalog/CatalogModelOutline.d.ts +31 -0
  14. package/dist/catalog/CatalogModelOutline.d.ts.map +1 -0
  15. package/dist/catalog/CatalogModelOutline.js +127 -0
  16. package/dist/catalog/CatalogModelOutline.js.map +1 -0
  17. package/dist/catalog/CatalogSpatialElementLayer.d.ts +29 -2
  18. package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
  19. package/dist/catalog/CatalogSpatialElementLayer.js +170 -41
  20. package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
  21. package/dist/catalog/CatalogTransition.d.ts.map +1 -1
  22. package/dist/catalog/CatalogTransition.js +49 -4
  23. package/dist/catalog/CatalogTransition.js.map +1 -1
  24. package/dist/catalog/SpatialGeometryCapture.d.ts +9 -0
  25. package/dist/catalog/SpatialGeometryCapture.d.ts.map +1 -1
  26. package/dist/catalog/SpatialGeometryCapture.js +11 -1
  27. package/dist/catalog/SpatialGeometryCapture.js.map +1 -1
  28. package/dist/catalog/cardModelFit.d.ts +7 -0
  29. package/dist/catalog/cardModelFit.d.ts.map +1 -0
  30. package/dist/catalog/cardModelFit.js +16 -0
  31. package/dist/catalog/cardModelFit.js.map +1 -0
  32. package/dist/catalog/cardProjection.d.ts +8 -0
  33. package/dist/catalog/cardProjection.d.ts.map +1 -0
  34. package/dist/catalog/cardProjection.js +51 -0
  35. package/dist/catalog/cardProjection.js.map +1 -0
  36. package/dist/catalog/carouselMotion.d.ts +35 -0
  37. package/dist/catalog/carouselMotion.d.ts.map +1 -1
  38. package/dist/catalog/carouselMotion.js +85 -4
  39. package/dist/catalog/carouselMotion.js.map +1 -1
  40. package/dist/catalog/carouselProximity.d.ts +11 -0
  41. package/dist/catalog/carouselProximity.d.ts.map +1 -0
  42. package/dist/catalog/carouselProximity.js +13 -0
  43. package/dist/catalog/carouselProximity.js.map +1 -0
  44. package/dist/catalog/carouselSupport.d.ts +4 -0
  45. package/dist/catalog/carouselSupport.d.ts.map +1 -0
  46. package/dist/catalog/carouselSupport.js +30 -0
  47. package/dist/catalog/carouselSupport.js.map +1 -0
  48. package/dist/catalog/catalogPose.d.ts +36 -6
  49. package/dist/catalog/catalogPose.d.ts.map +1 -1
  50. package/dist/catalog/catalogPose.js +79 -23
  51. package/dist/catalog/catalogPose.js.map +1 -1
  52. package/dist/stage/LiquidGlassPanel.d.ts +2 -0
  53. package/dist/stage/LiquidGlassPanel.d.ts.map +1 -1
  54. package/dist/stage/LiquidGlassPanel.js +8 -1
  55. package/dist/stage/LiquidGlassPanel.js.map +1 -1
  56. package/dist/stage/PanelPresentationController.d.ts.map +1 -1
  57. package/dist/stage/PanelPresentationController.js +7 -0
  58. package/dist/stage/PanelPresentationController.js.map +1 -1
  59. package/dist/stage/StageExperience.d.ts +40 -0
  60. package/dist/stage/StageExperience.d.ts.map +1 -1
  61. package/dist/stage/StageExperience.js +11 -13
  62. package/dist/stage/StageExperience.js.map +1 -1
  63. package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
  64. package/dist/stage/StageRenderPipeline.js +11 -62
  65. package/dist/stage/StageRenderPipeline.js.map +1 -1
  66. package/dist/stage/interactionOutline.d.ts +14 -0
  67. package/dist/stage/interactionOutline.d.ts.map +1 -0
  68. package/dist/stage/interactionOutline.js +81 -0
  69. package/dist/stage/interactionOutline.js.map +1 -0
  70. package/dist/stage/panelContext.d.ts +2 -0
  71. package/dist/stage/panelContext.d.ts.map +1 -1
  72. package/dist/stage/panelContext.js.map +1 -1
  73. package/package.json +1 -1
@@ -0,0 +1,127 @@
1
+ import * as THREE from 'three/webgpu';
2
+ import { texture } from 'three/tsl';
3
+ import { createOutlineOpacity, createOutlineUniforms, isOutlineMesh } from '../stage/interactionOutline.js';
4
+ import { isMesh } from '../stage/stageSceneUtils.js';
5
+ /** A shared, cropped silhouette target. Idle hover fades reuse its last mask. */
6
+ export class CatalogModelOutline {
7
+ scene = new THREE.Scene();
8
+ camera = new THREE.PerspectiveCamera();
9
+ controls = createOutlineUniforms();
10
+ modelMatrix = new THREE.Matrix4();
11
+ cameraMatrix = new THREE.Matrix4();
12
+ projection = new THREE.Matrix4();
13
+ masks = new WeakMap();
14
+ source;
15
+ capture;
16
+ maskMaterial;
17
+ material;
18
+ quad;
19
+ captures = 0;
20
+ passes = 0;
21
+ getRenderTargets() { return this.capture ? [this.capture] : []; }
22
+ getStats() { return { captures: this.captures, passes: this.passes, targets: this.getRenderTargets().length, size: this.capture?.width ?? 0 }; }
23
+ render(renderer, camera, model, bounds, clip, opacity, theme) {
24
+ if (opacity <= 0.001)
25
+ return;
26
+ const padding = Math.ceil(theme.outlineThickness * Math.max(1, theme.outlineGlowThickness) + 2);
27
+ const left = Math.max(0, clip.left, Math.floor(bounds.left - padding));
28
+ const top = Math.max(0, clip.top, Math.floor(bounds.top - padding));
29
+ const right = Math.min(innerWidth, clip.left + clip.width, Math.ceil(bounds.left + bounds.width + padding));
30
+ const bottom = Math.min(innerHeight, clip.top + clip.height, Math.ceil(bounds.top + bounds.height + padding));
31
+ const width = right - left, height = bottom - top;
32
+ if (width <= 0 || height <= 0)
33
+ return;
34
+ if (!this.capture) {
35
+ this.capture = new THREE.RenderTarget(512, 512, { depthBuffer: true, samples: 4 });
36
+ this.capture.texture.generateMipmaps = false;
37
+ this.maskMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff, side: THREE.DoubleSide, toneMapped: false });
38
+ this.material = new THREE.MeshBasicNodeMaterial({ transparent: true, depthTest: false, depthWrite: false, toneMapped: false });
39
+ this.material.colorNode = this.controls.color;
40
+ this.material.opacityNode = createOutlineOpacity(texture(this.capture.texture), this.controls);
41
+ this.quad = new THREE.QuadMesh(this.material);
42
+ }
43
+ let mask = this.masks.get(model);
44
+ if (!mask) {
45
+ mask = model.clone(true);
46
+ mask.traverse(child => {
47
+ if (!isMesh(child))
48
+ return;
49
+ child.visible &&= isOutlineMesh(child, theme);
50
+ child.material = this.maskMaterial;
51
+ });
52
+ mask.matrixAutoUpdate = false;
53
+ this.masks.set(model, mask);
54
+ }
55
+ model.updateWorldMatrix(true, false);
56
+ mask.matrix.copy(model.matrixWorld);
57
+ mask.matrixWorldNeedsUpdate = true;
58
+ this.camera.copy(camera);
59
+ // Crop the actual projection, including custom transition camera matrices.
60
+ this.camera.projectionMatrix.copy(new THREE.Matrix4().set(innerWidth / width, 0, 0, (innerWidth - 2 * left - width) / width, 0, innerHeight / height, 0, (2 * top + height - innerHeight) / height, 0, 0, 1, 0, 0, 0, 0, 1).multiply(camera.projectionMatrix));
61
+ this.camera.projectionMatrixInverse.copy(this.camera.projectionMatrix).invert();
62
+ const changed = this.source !== model || !this.modelMatrix.equals(model.matrixWorld) ||
63
+ !this.cameraMatrix.equals(camera.matrixWorld) || !this.projection.equals(this.camera.projectionMatrix);
64
+ if (this.source !== model) {
65
+ this.scene.clear();
66
+ this.scene.add(mask);
67
+ this.source = model;
68
+ }
69
+ this.controls.color.value.set(theme.outlineColor);
70
+ this.controls.strength.value = theme.outlineOpacity;
71
+ this.controls.glow.value = theme.outlineGlow;
72
+ this.controls.opacityScale.value = opacity;
73
+ this.controls.texel.value.set(theme.outlineThickness / width, theme.outlineThickness / height);
74
+ this.controls.glowTexel.value.copy(this.controls.texel.value).multiplyScalar(theme.outlineGlowThickness);
75
+ const destination = renderer.getRenderTarget();
76
+ const viewport = destination ? destination.viewport.clone() : renderer.getViewport(new THREE.Vector4());
77
+ const clearColor = renderer.getClearColor(new THREE.Color()), clearAlpha = renderer.getClearAlpha();
78
+ const scissorTest = renderer.getScissorTest();
79
+ try {
80
+ renderer.setScissorTest(false);
81
+ if (changed) {
82
+ renderer.setRenderTarget(this.capture);
83
+ renderer.setClearColor(0x000000, 0);
84
+ renderer.clear();
85
+ renderer.render(this.scene, this.camera);
86
+ this.modelMatrix.copy(model.matrixWorld);
87
+ this.cameraMatrix.copy(camera.matrixWorld);
88
+ this.projection.copy(this.camera.projectionMatrix);
89
+ this.captures++;
90
+ }
91
+ renderer.setRenderTarget(destination);
92
+ const scaleX = viewport.z / innerWidth, scaleY = viewport.w / innerHeight;
93
+ const output = new THREE.Vector4(viewport.x + left * scaleX, viewport.y + top * scaleY, width * scaleX, height * scaleY);
94
+ if (destination)
95
+ destination.viewport.copy(output);
96
+ else
97
+ renderer.setViewport(output);
98
+ this.quad.render(renderer);
99
+ this.passes++;
100
+ }
101
+ finally {
102
+ renderer.setRenderTarget(destination);
103
+ if (destination)
104
+ destination.viewport.copy(viewport);
105
+ else
106
+ renderer.setViewport(viewport);
107
+ renderer.setClearColor(clearColor, clearAlpha);
108
+ renderer.setScissorTest(scissorTest);
109
+ }
110
+ }
111
+ release(model) {
112
+ this.masks.delete(model);
113
+ if (this.source !== model)
114
+ return;
115
+ this.source = undefined;
116
+ this.scene.clear();
117
+ }
118
+ dispose() {
119
+ this.scene.clear();
120
+ this.source = undefined;
121
+ this.masks = new WeakMap();
122
+ this.capture?.dispose();
123
+ this.maskMaterial?.dispose();
124
+ this.material?.dispose();
125
+ }
126
+ }
127
+ //# sourceMappingURL=CatalogModelOutline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":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AW,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;;gBAC9C,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAClC,IAAI,CAAC,IAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5B,IAAI,CAAC,MAAM,EAAE,CAAC;QACf,CAAC;gBAAS,CAAC;YACV,QAAQ,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;YACtC,IAAI,WAAW;gBAAE,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;;gBAChD,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YACpC,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;YAC/C,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;IACF,CAAC;IACD,OAAO,CAAC,KAAqB;QAC5B,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK;YAAE,OAAO;QAClC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;IACD,OAAO;QACN,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC;QACxB,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAC1B,CAAC;CACD","sourcesContent":["import * as THREE from 'three/webgpu';\nimport { texture } from 'three/tsl';\nimport { createOutlineOpacity, createOutlineUniforms, isOutlineMesh } from '../stage/interactionOutline.js';\nimport { isMesh } from '../stage/stageSceneUtils.js';\nimport type { StageInteractionTheme } from '../stage/stageTypes.js';\nimport type { BlurRect } from './CatalogDepthBlur.js';\n\n/** A shared, cropped silhouette target. Idle hover fades reuse its last mask. */\nexport class CatalogModelOutline {\n\tprivate readonly scene = new THREE.Scene();\n\tprivate readonly camera = new THREE.PerspectiveCamera();\n\tprivate readonly controls = createOutlineUniforms();\n\tprivate readonly modelMatrix = new THREE.Matrix4();\n\tprivate readonly cameraMatrix = new THREE.Matrix4();\n\tprivate readonly projection = new THREE.Matrix4();\n\tprivate masks = new WeakMap<THREE.Object3D, THREE.Object3D>();\n\tprivate source?: THREE.Object3D;\n\tprivate capture?: THREE.RenderTarget;\n\tprivate maskMaterial?: THREE.MeshBasicMaterial;\n\tprivate material?: THREE.MeshBasicNodeMaterial;\n\tprivate quad?: THREE.QuadMesh;\n\tprivate captures = 0;\n\tprivate passes = 0;\n\tgetRenderTargets() { return this.capture ? [this.capture] : []; }\n\tgetStats() { return { captures: this.captures, passes: this.passes, targets: this.getRenderTargets().length, size: this.capture?.width ?? 0 }; }\n\n\trender(renderer: THREE.WebGPURenderer, camera: THREE.PerspectiveCamera,\n\t\tmodel: THREE.Object3D, bounds: BlurRect, clip: BlurRect,\n\t\topacity: number, theme: StageInteractionTheme) {\n\t\tif (opacity <= 0.001) return;\n\t\tconst padding = Math.ceil(theme.outlineThickness * Math.max(1, theme.outlineGlowThickness) + 2);\n\t\tconst left = Math.max(0, clip.left, Math.floor(bounds.left - padding));\n\t\tconst top = Math.max(0, clip.top, Math.floor(bounds.top - padding));\n\t\tconst right = Math.min(innerWidth, clip.left + clip.width, Math.ceil(bounds.left + bounds.width + padding));\n\t\tconst bottom = Math.min(innerHeight, clip.top + clip.height, Math.ceil(bounds.top + bounds.height + padding));\n\t\tconst width = right - left, height = bottom - top;\n\t\tif (width <= 0 || height <= 0) return;\n\t\tif (!this.capture) {\n\t\t\tthis.capture = new THREE.RenderTarget(512, 512, { depthBuffer: true, samples: 4 });\n\t\t\tthis.capture.texture.generateMipmaps = false;\n\t\t\tthis.maskMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff, side: THREE.DoubleSide, toneMapped: false });\n\t\t\tthis.material = new THREE.MeshBasicNodeMaterial({ transparent: true, depthTest: false, depthWrite: false, toneMapped: false });\n\t\t\tthis.material.colorNode = this.controls.color;\n\t\t\tthis.material.opacityNode = createOutlineOpacity(texture(this.capture.texture), this.controls);\n\t\t\tthis.quad = new THREE.QuadMesh(this.material);\n\t\t}\n\t\tlet mask = this.masks.get(model);\n\t\tif (!mask) {\n\t\t\tmask = model.clone(true);\n\t\t\tmask.traverse(child => {\n\t\t\t\tif (!isMesh(child)) return;\n\t\t\t\tchild.visible &&= isOutlineMesh(child, theme);\n\t\t\t\tchild.material = this.maskMaterial!;\n\t\t\t});\n\t\t\tmask.matrixAutoUpdate = false;\n\t\t\tthis.masks.set(model, mask);\n\t\t}\n\t\tmodel.updateWorldMatrix(true, false);\n\t\tmask.matrix.copy(model.matrixWorld);\n\t\tmask.matrixWorldNeedsUpdate = true;\n\t\tthis.camera.copy(camera);\n\t\t// Crop the actual projection, including custom transition camera matrices.\n\t\tthis.camera.projectionMatrix.copy(new THREE.Matrix4().set(\n\t\t\tinnerWidth / width, 0, 0, (innerWidth - 2 * left - width) / width,\n\t\t\t0, innerHeight / height, 0, (2 * top + height - innerHeight) / height,\n\t\t\t0, 0, 1, 0,\n\t\t\t0, 0, 0, 1\n\t\t).multiply(camera.projectionMatrix));\n\t\tthis.camera.projectionMatrixInverse.copy(this.camera.projectionMatrix).invert();\n\t\tconst changed = this.source !== model || !this.modelMatrix.equals(model.matrixWorld) ||\n\t\t\t!this.cameraMatrix.equals(camera.matrixWorld) || !this.projection.equals(this.camera.projectionMatrix);\n\t\tif (this.source !== model) {\n\t\t\tthis.scene.clear();\n\t\t\tthis.scene.add(mask);\n\t\t\tthis.source = model;\n\t\t}\n\t\tthis.controls.color.value.set(theme.outlineColor);\n\t\tthis.controls.strength.value = theme.outlineOpacity;\n\t\tthis.controls.glow.value = theme.outlineGlow;\n\t\tthis.controls.opacityScale.value = opacity;\n\t\tthis.controls.texel.value.set(theme.outlineThickness / width, theme.outlineThickness / height);\n\t\tthis.controls.glowTexel.value.copy(this.controls.texel.value).multiplyScalar(theme.outlineGlowThickness);\n\t\tconst destination = renderer.getRenderTarget();\n\t\tconst viewport = destination ? destination.viewport.clone() : renderer.getViewport(new THREE.Vector4());\n\t\tconst clearColor = renderer.getClearColor(new THREE.Color()), clearAlpha = renderer.getClearAlpha();\n\t\tconst scissorTest = renderer.getScissorTest();\n\t\ttry {\n\t\t\trenderer.setScissorTest(false);\n\t\t\tif (changed) {\n\t\t\t\trenderer.setRenderTarget(this.capture);\n\t\t\t\trenderer.setClearColor(0x000000, 0);\n\t\t\t\trenderer.clear();\n\t\t\t\trenderer.render(this.scene, this.camera);\n\t\t\t\tthis.modelMatrix.copy(model.matrixWorld);\n\t\t\t\tthis.cameraMatrix.copy(camera.matrixWorld);\n\t\t\t\tthis.projection.copy(this.camera.projectionMatrix);\n\t\t\t\tthis.captures++;\n\t\t\t}\n\t\t\trenderer.setRenderTarget(destination);\n\t\t\tconst scaleX = viewport.z / innerWidth, scaleY = viewport.w / innerHeight;\n\t\t\tconst output = new THREE.Vector4(viewport.x + left * scaleX, viewport.y + top * scaleY, width * scaleX, height * scaleY);\n\t\t\tif (destination) destination.viewport.copy(output);\n\t\t\telse renderer.setViewport(output);\n\t\t\tthis.quad!.render(renderer);\n\t\t\tthis.passes++;\n\t\t} finally {\n\t\t\trenderer.setRenderTarget(destination);\n\t\t\tif (destination) destination.viewport.copy(viewport);\n\t\t\telse renderer.setViewport(viewport);\n\t\t\trenderer.setClearColor(clearColor, clearAlpha);\n\t\t\trenderer.setScissorTest(scissorTest);\n\t\t}\n\t}\n\trelease(model: THREE.Object3D) {\n\t\tthis.masks.delete(model);\n\t\tif (this.source !== model) return;\n\t\tthis.source = undefined;\n\t\tthis.scene.clear();\n\t}\n\tdispose() {\n\t\tthis.scene.clear();\n\t\tthis.source = undefined;\n\t\tthis.masks = new WeakMap();\n\t\tthis.capture?.dispose();\n\t\tthis.maskMaterial?.dispose();\n\t\tthis.material?.dispose();\n\t}\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import type { StageInteractionTheme } from '../stage/stageTypes.js';
1
2
  import type { SpatialElementProjection } from './SpatialGeometryCapture.js';
2
3
  import type { SpatialElementRefinement } from '../stage/SpatialElementRefinement.js';
3
4
  import * as THREE from 'three/webgpu';
@@ -20,6 +21,7 @@ export declare function getSpatialElementHandoffProjection(sourceClip: THREE.Mat
20
21
  export declare class CatalogSpatialElementLayer {
21
22
  private readonly assets;
22
23
  private readonly invalidate;
24
+ private readonly interactionTheme;
23
25
  getRenderTargets(): THREE.RenderTarget<THREE.Texture<unknown, THREE.TextureEventMap>, THREE.RenderTargetEventMap>[];
24
26
  private readonly scene;
25
27
  private passes;
@@ -34,6 +36,20 @@ export declare class CatalogSpatialElementLayer {
34
36
  passes: number;
35
37
  resizes: number;
36
38
  };
39
+ ground: {
40
+ silhouettes: number;
41
+ };
42
+ depthBlur: {
43
+ passes: number;
44
+ targets: number;
45
+ size: number;
46
+ };
47
+ outline: {
48
+ captures: number;
49
+ passes: number;
50
+ targets: number;
51
+ size: number;
52
+ };
37
53
  actors: {
38
54
  spatialElementId: string;
39
55
  band: "front" | "rear" | undefined;
@@ -46,14 +62,24 @@ export declare class CatalogSpatialElementLayer {
46
62
  opacity: number;
47
63
  materialOpacity: number;
48
64
  depthWrite: boolean;
65
+ modelScale: number;
66
+ modelDepth: number;
67
+ blur: number;
68
+ hover: number;
69
+ proximityTilt: {
70
+ x: number;
71
+ y: number;
72
+ };
49
73
  }[];
50
74
  };
75
+ private readonly depthBlur;
76
+ private readonly outline;
51
77
  private readonly glass;
78
+ private readonly ground;
52
79
  private readonly geometryFade;
53
80
  private readonly handoffScene;
54
81
  private readonly camera;
55
82
  private readonly carouselCamera;
56
- private readonly carouselFog;
57
83
  private readonly handoffCamera;
58
84
  private readonly actors;
59
85
  private readonly requests;
@@ -80,11 +106,12 @@ export declare class CatalogSpatialElementLayer {
80
106
  private detachedInstances;
81
107
  private readonly pointerMove;
82
108
  private readonly pointerDown;
109
+ private readonly pointerUp;
83
110
  private readonly pointerLeave;
84
111
  private readonly resize;
85
112
  private readonly motionChange;
86
113
  setPageBackground(value: string): void;
87
- constructor(assets: SpatialElementAssetManager, invalidate: () => void);
114
+ constructor(assets: SpatialElementAssetManager, invalidate: () => void, interactionTheme?: () => StageInteractionTheme);
88
115
  setSpatialElements(brandId: string, spatialElements: SpatialListItem[]): Promise<void>;
89
116
  private loadVisibleSpatialElements;
90
117
  update(renderer: THREE.WebGPURenderer, environment: THREE.Texture | null, now: number): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"CatalogSpatialElementLayer.d.ts","sourceRoot":"","sources":["../../src/catalog/CatalogSpatialElementLayer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAErF,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAgBnE,OAAO,EAAE,0BAA0B,EAAoC,MAAM,wCAAwC,CAAC;AAmEtH,oGAAoG;AACpG,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,iBAI5F;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CACjD,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,KAAK,CAAC,OAAO,EACzB,WAAW,EAAE,KAAK,CAAC,OAAO,EAC1B,KAAK,EAAE;IACN,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC;IAC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