@spatial-elements/core 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.d.ts +1 -0
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.js +13 -1
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
- package/dist/catalog/carouselMotion.d.ts +39 -0
- package/dist/catalog/carouselMotion.d.ts.map +1 -0
- package/dist/catalog/carouselMotion.js +104 -0
- package/dist/catalog/carouselMotion.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/spatial-element/SpatialElementDockController.d.ts +1 -1
- package/dist/spatial-element/SpatialElementDockController.d.ts.map +1 -1
- package/dist/spatial-element/SpatialElementDockController.js +29 -2
- package/dist/spatial-element/SpatialElementDockController.js.map +1 -1
- package/dist/spatial-element/messages.d.ts +34 -0
- package/dist/spatial-element/messages.d.ts.map +1 -0
- package/dist/spatial-element/messages.js +34 -0
- package/dist/spatial-element/messages.js.map +1 -0
- package/dist/spatial-element/spatialTheme.d.ts.map +1 -1
- package/dist/spatial-element/spatialTheme.js +1 -0
- package/dist/spatial-element/spatialTheme.js.map +1 -1
- package/dist/spatial-element/types.d.ts +2 -0
- package/dist/spatial-element/types.d.ts.map +1 -1
- package/dist/spatial-element/types.js.map +1 -1
- package/dist/stage/LiquidGlassPanel.d.ts +2 -0
- package/dist/stage/LiquidGlassPanel.d.ts.map +1 -1
- package/dist/stage/LiquidGlassPanel.js +11 -2
- package/dist/stage/LiquidGlassPanel.js.map +1 -1
- package/dist/stage/MinimapController.d.ts +3 -1
- package/dist/stage/MinimapController.d.ts.map +1 -1
- package/dist/stage/MinimapController.js +23 -20
- package/dist/stage/MinimapController.js.map +1 -1
- package/dist/stage/ModelPointerPreview.d.ts +22 -0
- package/dist/stage/ModelPointerPreview.d.ts.map +1 -0
- package/dist/stage/ModelPointerPreview.js +71 -0
- package/dist/stage/ModelPointerPreview.js.map +1 -0
- package/dist/stage/PageBindingController.d.ts +4 -0
- package/dist/stage/PageBindingController.d.ts.map +1 -1
- package/dist/stage/PageBindingController.js +17 -4
- package/dist/stage/PageBindingController.js.map +1 -1
- package/dist/stage/PanelPresentationController.d.ts +4 -1
- package/dist/stage/PanelPresentationController.d.ts.map +1 -1
- package/dist/stage/PanelPresentationController.js +91 -12
- package/dist/stage/PanelPresentationController.js.map +1 -1
- package/dist/stage/SpatialElementInteractionController.d.ts +12 -0
- package/dist/stage/SpatialElementInteractionController.d.ts.map +1 -1
- package/dist/stage/SpatialElementInteractionController.js +125 -11
- package/dist/stage/SpatialElementInteractionController.js.map +1 -1
- package/dist/stage/StageExperience.d.ts +30 -1
- package/dist/stage/StageExperience.d.ts.map +1 -1
- package/dist/stage/StageExperience.js +214 -55
- package/dist/stage/StageExperience.js.map +1 -1
- package/dist/stage/StageFullscreenController.d.ts +17 -0
- package/dist/stage/StageFullscreenController.d.ts.map +1 -0
- package/dist/stage/StageFullscreenController.js +90 -0
- package/dist/stage/StageFullscreenController.js.map +1 -0
- package/dist/stage/StagePanelRuntime.d.ts +2 -1
- package/dist/stage/StagePanelRuntime.d.ts.map +1 -1
- package/dist/stage/StagePanelRuntime.js.map +1 -1
- package/dist/stage/StageRenderPipeline.d.ts +6 -0
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
- package/dist/stage/StageRenderPipeline.js +41 -9
- package/dist/stage/StageRenderPipeline.js.map +1 -1
- package/dist/stage/VirtualScrollController.d.ts.map +1 -1
- package/dist/stage/VirtualScrollController.js +6 -0
- package/dist/stage/VirtualScrollController.js.map +1 -1
- package/dist/stage/interactionGuidance.d.ts +22 -0
- package/dist/stage/interactionGuidance.d.ts.map +1 -0
- package/dist/stage/interactionGuidance.js +53 -0
- package/dist/stage/interactionGuidance.js.map +1 -0
- package/dist/stage/minimap/MinimapProjection.d.ts +7 -0
- package/dist/stage/minimap/MinimapProjection.d.ts.map +1 -1
- package/dist/stage/minimap/MinimapProjection.js +14 -13
- package/dist/stage/minimap/MinimapProjection.js.map +1 -1
- package/dist/stage/mouseHover.d.ts +9 -0
- package/dist/stage/mouseHover.d.ts.map +1 -0
- package/dist/stage/mouseHover.js +55 -0
- package/dist/stage/mouseHover.js.map +1 -0
- package/dist/stage/panelContext.d.ts +15 -1
- package/dist/stage/panelContext.d.ts.map +1 -1
- package/dist/stage/panelContext.js.map +1 -1
- package/dist/stage/scrollFrame.d.ts +2 -0
- package/dist/stage/scrollFrame.d.ts.map +1 -1
- package/dist/stage/scrollFrame.js +18 -5
- package/dist/stage/scrollFrame.js.map +1 -1
- package/dist/stage/stageConstants.d.ts +3 -3
- package/dist/stage/stageConstants.d.ts.map +1 -1
- package/dist/stage/stageConstants.js +3 -3
- package/dist/stage/stageConstants.js.map +1 -1
- package/dist/stage/stageDom.d.ts +2 -0
- package/dist/stage/stageDom.d.ts.map +1 -1
- package/dist/stage/stageDom.js +4 -0
- package/dist/stage/stageDom.js.map +1 -1
- package/dist/stage/stageMath.d.ts +6 -7
- package/dist/stage/stageMath.d.ts.map +1 -1
- package/dist/stage/stageMath.js +12 -11
- package/dist/stage/stageMath.js.map +1 -1
- package/dist/stage/stageTypes.d.ts +12 -2
- package/dist/stage/stageTypes.d.ts.map +1 -1
- package/dist/stage/stageTypes.js.map +1 -1
- package/dist/stage/stageVisualTest.d.ts +5 -1
- package/dist/stage/stageVisualTest.d.ts.map +1 -1
- package/dist/stage/stageVisualTest.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageExperience.d.ts","sourceRoot":"","sources":["../../src/stage/StageExperience.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,MAAM,sCAAsC,CAAC;AAW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BAA8B;IAItC,OAAO,CAAC,6BAA6B;IAIrC,OAAO,CAAC,6BAA6B;IAIrC;;;OAGG;IACH,OAAO,CAAC,yBAAyB;IAIjC,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,WAAW;IA6EnB,4EAA4E;IAE5E,4FAA4F;IAE5F,OAAO,CAAC,WAAW;CAoBnB"}
|
|
@@ -21,9 +21,9 @@ import { CSS3DRenderer } from 'three/addons/renderers/CSS3DRenderer.js';
|
|
|
21
21
|
import { uniform } from 'three/tsl';
|
|
22
22
|
import { LiquidGlassPanel, resolveLiquidGlassPanelOptions } from './LiquidGlassPanel.js';
|
|
23
23
|
import { STAGE_PANEL_LAYOUT_EVENT, STAGE_PANEL_VISUAL_EVENT } from './panelContext.js';
|
|
24
|
-
import { DEFAULT_INTERACTION_THEME, DEFAULT_PANELS, PANEL_CAMERA_FOV, PANEL_CONTENT_Z, SPATIAL_ELEMENT_CAMERA_FIT_MARGIN, ZOOM_FOCUS_NOTIFY_EPSILON } from './stageConstants.js';
|
|
24
|
+
import { DEFAULT_BACKGROUND, DEFAULT_INTERACTION_THEME, DEFAULT_PANELS, PANEL_CAMERA_FOV, PANEL_CONTENT_Z, SPATIAL_ELEMENT_CAMERA_FIT_MARGIN, ZOOM_FOCUS_NOTIFY_EPSILON } from './stageConstants.js';
|
|
25
25
|
import { getStagePositionFromRect, isViewportRectVisible } from './stageDom.js';
|
|
26
|
-
import { STAGE_SCROLL_PRIORITY, getStageVisualScrollPosition, subscribeStageScrollFrame } from './scrollFrame.js';
|
|
26
|
+
import { STAGE_SCROLL_PRIORITY, getStageVisualScrollPosition, hasPendingStageScrollFrame, subscribeStageScrollFrame } from './scrollFrame.js';
|
|
27
27
|
import { getCameraFitDistance, getCameraOrbitDirection, getBoxCorners, getPanelFocusOpacity, getPerspectiveDistance, getSequencedMinimapFocus, getStageUiFocus, getZoomFocusDistanceRange, hasPanelGeometryChanged } from './stageMath.js';
|
|
28
28
|
import {} from './SpaceMouseAdapter.js';
|
|
29
29
|
import { disposeMinimapModelMaterials } from './minimap/MinimapModel.js';
|
|
@@ -58,6 +58,7 @@ export class StageExperience {
|
|
|
58
58
|
}
|
|
59
59
|
pipeline;
|
|
60
60
|
backgroundSettings;
|
|
61
|
+
appliedEnvironment;
|
|
61
62
|
pageBackground = '#ffffff';
|
|
62
63
|
hdr;
|
|
63
64
|
glb;
|
|
@@ -180,6 +181,10 @@ export class StageExperience {
|
|
|
180
181
|
resize = () => this.resizeRenderer();
|
|
181
182
|
render = () => {
|
|
182
183
|
this.renderRequestId = 0;
|
|
184
|
+
// The shared callback will draw after updating DOM/dock positions. Avoid
|
|
185
|
+
// submitting an older camera/scroll frame immediately before that draw.
|
|
186
|
+
if (this.stopScrollFrames && hasPendingStageScrollFrame())
|
|
187
|
+
return;
|
|
183
188
|
this.renderFrame();
|
|
184
189
|
};
|
|
185
190
|
visibilityChange = () => {
|
|
@@ -187,9 +192,15 @@ export class StageExperience {
|
|
|
187
192
|
this.requestRender();
|
|
188
193
|
};
|
|
189
194
|
pointerMove = (event) => this.handlePointerMove(event);
|
|
190
|
-
pointerLeave = () =>
|
|
195
|
+
pointerLeave = (event) => {
|
|
196
|
+
if (event.type === 'blur' || event.pointerType === 'mouse') {
|
|
197
|
+
this.handlePointerLeave();
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
pointerContact = (event) => this.interaction.handlePointerContact(event);
|
|
191
201
|
pointerDown = (event) => this.handlePointerDown(event);
|
|
192
202
|
pointerUp = (event) => this.handlePointerUp(event);
|
|
203
|
+
touchStart = (event) => this.interaction.handleTouchStart(event);
|
|
193
204
|
wheel = (event) => this.handleWheel(event);
|
|
194
205
|
scroll = (frame) => this.handleScrollFrame(frame);
|
|
195
206
|
finishScroll = () => {
|
|
@@ -251,6 +262,14 @@ export class StageExperience {
|
|
|
251
262
|
panelMeasurementsDirty = true;
|
|
252
263
|
viewportMeasurementDirty = true;
|
|
253
264
|
stageViewportVisible = true;
|
|
265
|
+
fullscreen = false;
|
|
266
|
+
setFullscreen(fullscreen) {
|
|
267
|
+
if (this.fullscreen === fullscreen)
|
|
268
|
+
return;
|
|
269
|
+
this.fullscreen = fullscreen;
|
|
270
|
+
this.interaction.setFullscreen(fullscreen);
|
|
271
|
+
this.resizeRenderer();
|
|
272
|
+
}
|
|
254
273
|
get visiblePanelCount() {
|
|
255
274
|
return this.panels.visiblePanels;
|
|
256
275
|
}
|
|
@@ -338,12 +357,13 @@ export class StageExperience {
|
|
|
338
357
|
restCamera: this.initialCameraWorldQuaternion,
|
|
339
358
|
restModel: this.initialModelWorldQuaternion,
|
|
340
359
|
hasControls: Boolean(this.controls),
|
|
341
|
-
|
|
360
|
+
center: this.initialControlsTarget
|
|
342
361
|
}),
|
|
343
362
|
frame: () => ({
|
|
344
363
|
hovering: this.modelHover,
|
|
345
364
|
interacting: this.modelInteractionActive,
|
|
346
|
-
scrolling: this.scrollActive
|
|
365
|
+
scrolling: this.scrollActive,
|
|
366
|
+
fullscreen: this.fullscreen
|
|
347
367
|
}),
|
|
348
368
|
environment: () => this.environmentTarget,
|
|
349
369
|
capture: () => this.pipeline.activeRenderTargets,
|
|
@@ -364,6 +384,7 @@ export class StageExperience {
|
|
|
364
384
|
presentation: this.catalogPresentation,
|
|
365
385
|
minimapFocus: this.minimapFocus,
|
|
366
386
|
uiFocus: this.panelUiFocus,
|
|
387
|
+
fullscreen: this.fullscreen,
|
|
367
388
|
pointer: this.pointer
|
|
368
389
|
}),
|
|
369
390
|
visible: (index) => this.isPanelTargetVisible(index),
|
|
@@ -505,12 +526,14 @@ export class StageExperience {
|
|
|
505
526
|
window.addEventListener(STAGE_PANEL_LAYOUT_EVENT, this.requestPanelSync);
|
|
506
527
|
window.addEventListener(STAGE_PANEL_VISUAL_EVENT, this.requestPanelVisualSync);
|
|
507
528
|
window.addEventListener('pointermove', this.pointerMove);
|
|
529
|
+
window.addEventListener('pointerdown', this.pointerContact, { capture: true, passive: true });
|
|
508
530
|
window.addEventListener('pointerup', this.pointerUp);
|
|
509
531
|
window.addEventListener('pointercancel', this.pointerUp);
|
|
510
532
|
window.addEventListener('pointerleave', this.pointerLeave);
|
|
511
533
|
window.addEventListener('blur', this.pointerLeave);
|
|
512
534
|
document.addEventListener('visibilitychange', this.visibilityChange);
|
|
513
535
|
this.backgroundCanvas.addEventListener('pointerdown', this.pointerDown, { capture: true });
|
|
536
|
+
this.backgroundCanvas.addEventListener('touchstart', this.touchStart, { passive: false });
|
|
514
537
|
this.backgroundCanvas.addEventListener('wheel', this.wheel, {
|
|
515
538
|
capture: true,
|
|
516
539
|
passive: false
|
|
@@ -532,6 +555,7 @@ export class StageExperience {
|
|
|
532
555
|
window.removeEventListener(STAGE_PANEL_LAYOUT_EVENT, this.requestPanelSync);
|
|
533
556
|
window.removeEventListener(STAGE_PANEL_VISUAL_EVENT, this.requestPanelVisualSync);
|
|
534
557
|
window.removeEventListener('pointermove', this.pointerMove);
|
|
558
|
+
window.removeEventListener('pointerdown', this.pointerContact, { capture: true });
|
|
535
559
|
window.removeEventListener('pointerup', this.pointerUp);
|
|
536
560
|
window.removeEventListener('pointercancel', this.pointerUp);
|
|
537
561
|
window.removeEventListener('pointerleave', this.pointerLeave);
|
|
@@ -541,6 +565,7 @@ export class StageExperience {
|
|
|
541
565
|
capture: true
|
|
542
566
|
});
|
|
543
567
|
this.backgroundCanvas.removeEventListener('wheel', this.wheel, { capture: true });
|
|
568
|
+
this.backgroundCanvas.removeEventListener('touchstart', this.touchStart);
|
|
544
569
|
if (this.renderRequestId)
|
|
545
570
|
cancelAnimationFrame(this.renderRequestId);
|
|
546
571
|
this.renderRequestId = 0;
|
|
@@ -674,6 +699,77 @@ export class StageExperience {
|
|
|
674
699
|
return;
|
|
675
700
|
return { width, height, corners: corners };
|
|
676
701
|
}
|
|
702
|
+
/** Updates appearance in place. Model leases, camera, interaction and page navigation stay intact. */
|
|
703
|
+
updateAppearance(options) {
|
|
704
|
+
if (this.disposed)
|
|
705
|
+
return;
|
|
706
|
+
this.pageBackground = options.pageBackground ?? '#ffffff';
|
|
707
|
+
this.pipeline.setPageBackground(this.pageBackground);
|
|
708
|
+
this.catalogLayer?.setPageBackground(this.pageBackground);
|
|
709
|
+
this.backgroundSettings = { ...DEFAULT_BACKGROUND, ...options.background };
|
|
710
|
+
if (this.appliedEnvironment) {
|
|
711
|
+
this.backgroundScene.background = this.backgroundSettings.blurriness <= 0
|
|
712
|
+
? this.appliedEnvironment.source : this.appliedEnvironment.target.texture;
|
|
713
|
+
}
|
|
714
|
+
this.backgroundScene.backgroundBlurriness = this.backgroundSettings.blurriness;
|
|
715
|
+
if (this.tintMaterial) {
|
|
716
|
+
this.tintMaterial.color.set(this.backgroundSettings.tint);
|
|
717
|
+
this.tintMaterial.opacity = this.backgroundSettings.tintIntensity;
|
|
718
|
+
}
|
|
719
|
+
const previousExcludeMesh = this.interactionTheme.excludeMesh;
|
|
720
|
+
Object.assign(this.interactionTheme, DEFAULT_INTERACTION_THEME, { excludeMesh: undefined }, options.interactionTheme);
|
|
721
|
+
this.pipeline.updateInteractionTheme();
|
|
722
|
+
if (previousExcludeMesh !== this.interactionTheme.excludeMesh && this.model) {
|
|
723
|
+
const pickModel = this.refinementState === 'high' && this.highPose ? this.highPose : this.model;
|
|
724
|
+
this.collectModelPickTargets(pickModel);
|
|
725
|
+
if (pickModel === this.model)
|
|
726
|
+
this.pipeline.createModelOutline(this.model);
|
|
727
|
+
else {
|
|
728
|
+
const outline = this.model.clone(false);
|
|
729
|
+
outline.add(pickModel.clone(true));
|
|
730
|
+
this.pipeline.createModelOutline(outline);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
const changed = [];
|
|
734
|
+
let surfaceChanged = false;
|
|
735
|
+
for (const next of options.panels ?? []) {
|
|
736
|
+
const index = this.panelTargets.findIndex((target) => target.frame === next.frame);
|
|
737
|
+
const target = this.panelTargets[index];
|
|
738
|
+
if (!target)
|
|
739
|
+
continue; // Navigation owns newly registered panels.
|
|
740
|
+
const appearance = (panel) => JSON.stringify([
|
|
741
|
+
panel.options, panel.minimap, panel.surface, panel.contentInset
|
|
742
|
+
]);
|
|
743
|
+
if (appearance(target) === appearance(next))
|
|
744
|
+
continue;
|
|
745
|
+
surfaceChanged ||= target.surface !== next.surface;
|
|
746
|
+
Object.assign(target, next);
|
|
747
|
+
changed.push(index);
|
|
748
|
+
}
|
|
749
|
+
if (changed.length) {
|
|
750
|
+
this.fallbackPanelOptions = this.panelTargets
|
|
751
|
+
.filter((target) => target.surface === 'glass' || target.minimap).map((target) => target.options);
|
|
752
|
+
this.pipeline.syncPanelBlurCaptures();
|
|
753
|
+
if (surfaceChanged) {
|
|
754
|
+
// A backend change only replaces panel presentation, never the element scene.
|
|
755
|
+
this.minimapController.dispose();
|
|
756
|
+
this.panels.release();
|
|
757
|
+
this.createPanels();
|
|
758
|
+
}
|
|
759
|
+
else
|
|
760
|
+
for (const index of changed) {
|
|
761
|
+
const target = this.panelTargets[index];
|
|
762
|
+
const measured = this.getMeasuredPanelOptions(target, true);
|
|
763
|
+
if (this.panelRuntimes[index]?.glass)
|
|
764
|
+
this.replacePanel(index, measured);
|
|
765
|
+
else if (this.panelRuntimes[index])
|
|
766
|
+
this.panelRuntimes[index].options = resolveLiquidGlassPanelOptions(measured);
|
|
767
|
+
this.createMinimap(index, target.minimap);
|
|
768
|
+
}
|
|
769
|
+
this.panelMeasurementsDirty = this.layoutDirty = true;
|
|
770
|
+
}
|
|
771
|
+
this.requestRender();
|
|
772
|
+
}
|
|
677
773
|
async updatePage(options) {
|
|
678
774
|
if (this.disposed)
|
|
679
775
|
return;
|
|
@@ -1411,6 +1507,26 @@ export class StageExperience {
|
|
|
1411
1507
|
stopVisualTestSpaceMouseMotion() {
|
|
1412
1508
|
this.setSpaceMouseMoving(false);
|
|
1413
1509
|
}
|
|
1510
|
+
/** Projects a registered panel surface for frame-by-frame DOM/GPU alignment checks. */
|
|
1511
|
+
getVisualTestPanelRect(frame) {
|
|
1512
|
+
const index = this.panelTargets.findIndex((target) => target.frame === frame);
|
|
1513
|
+
const panel = this.panelRuntimes[index];
|
|
1514
|
+
if (!panel || !panel.group.visible)
|
|
1515
|
+
return null;
|
|
1516
|
+
panel.group.updateWorldMatrix(true, false);
|
|
1517
|
+
this.panelCamera.updateMatrixWorld(true);
|
|
1518
|
+
const { width, height } = panel.options;
|
|
1519
|
+
const points = [
|
|
1520
|
+
new THREE.Vector3(-width / 2, height / 2, 0),
|
|
1521
|
+
new THREE.Vector3(width / 2, height / 2, 0),
|
|
1522
|
+
new THREE.Vector3(width / 2, -height / 2, 0),
|
|
1523
|
+
new THREE.Vector3(-width / 2, -height / 2, 0)
|
|
1524
|
+
].map((corner) => panel.group.localToWorld(corner).project(this.panelCamera));
|
|
1525
|
+
const xs = points.map((point) => (point.x + 1) * window.innerWidth / 2);
|
|
1526
|
+
const ys = points.map((point) => (1 - point.y) * window.innerHeight / 2);
|
|
1527
|
+
const x = Math.min(...xs), y = Math.min(...ys);
|
|
1528
|
+
return { x, y, width: Math.max(...xs) - x, height: Math.max(...ys) - y };
|
|
1529
|
+
}
|
|
1414
1530
|
/** Returns the live rendered minimap bounds rather than its hidden DOM fallback bounds. */
|
|
1415
1531
|
getVisualTestMinimapRect() {
|
|
1416
1532
|
const minimap = this.minimaps.values().next().value;
|
|
@@ -1461,6 +1577,15 @@ export class StageExperience {
|
|
|
1461
1577
|
const minimap = this.minimaps.values().next().value;
|
|
1462
1578
|
return minimap ? this.getProjectedMinimapModelRect(minimap) : null;
|
|
1463
1579
|
}
|
|
1580
|
+
/** Returns the visible viewport mask in minimap-local pixels. */
|
|
1581
|
+
getVisualTestMinimapViewportRect() {
|
|
1582
|
+
const minimap = this.minimaps.values().next().value;
|
|
1583
|
+
if (!minimap)
|
|
1584
|
+
return null;
|
|
1585
|
+
const center = minimap.overlayViewportCenter.value;
|
|
1586
|
+
const halfSize = minimap.overlayViewportHalfSize.value;
|
|
1587
|
+
return { x: center.x - halfSize.x, y: center.y - halfSize.y, width: halfSize.x * 2, height: halfSize.y * 2 };
|
|
1588
|
+
}
|
|
1464
1589
|
/** Returns minimap orientation endpoints for query-gated browser regressions. */
|
|
1465
1590
|
getVisualTestMinimapOrientation() {
|
|
1466
1591
|
const minimap = this.minimaps.values().next().value;
|
|
@@ -1642,6 +1767,7 @@ export class StageExperience {
|
|
|
1642
1767
|
}
|
|
1643
1768
|
}
|
|
1644
1769
|
applyEnvironment(environment) {
|
|
1770
|
+
this.appliedEnvironment = environment;
|
|
1645
1771
|
this.presentation.retainEnvironment(this.environments, environment);
|
|
1646
1772
|
this.environmentTarget = environment.target;
|
|
1647
1773
|
const texture = environment.target.texture;
|
|
@@ -1921,11 +2047,17 @@ export class StageExperience {
|
|
|
1921
2047
|
options: panel.options,
|
|
1922
2048
|
pointerLift: 0,
|
|
1923
2049
|
pointerReactive: target.pointerReactive ?? true,
|
|
2050
|
+
focusReactive: target.focusReactive ?? true,
|
|
1924
2051
|
projectionRoot,
|
|
1925
2052
|
surface: target.surface
|
|
1926
2053
|
});
|
|
1927
2054
|
this.panelScene.add(projectionRoot ?? panel.group);
|
|
1928
|
-
|
|
2055
|
+
if (target.nativeContent) {
|
|
2056
|
+
// Draw floating glass above regular panels; its content stays in the top layer.
|
|
2057
|
+
panel.group.renderOrder = 100;
|
|
2058
|
+
}
|
|
2059
|
+
else
|
|
2060
|
+
this.attachPanelContent(target.content, index, target.contentInset);
|
|
1929
2061
|
}
|
|
1930
2062
|
else {
|
|
1931
2063
|
const options = resolveLiquidGlassPanelOptions(measuredOptions);
|
|
@@ -1940,18 +2072,21 @@ export class StageExperience {
|
|
|
1940
2072
|
options,
|
|
1941
2073
|
pointerLift: 0,
|
|
1942
2074
|
pointerReactive: target.pointerReactive ?? true,
|
|
2075
|
+
focusReactive: target.focusReactive ?? true,
|
|
1943
2076
|
projectionRoot,
|
|
1944
2077
|
surface: target.surface
|
|
1945
2078
|
});
|
|
1946
2079
|
if (projectionRoot)
|
|
1947
2080
|
this.panelScene.add(projectionRoot);
|
|
1948
|
-
|
|
2081
|
+
if (!target.nativeContent)
|
|
2082
|
+
this.attachPanelSurface(target.surfaceElement, index, Boolean(target.minimap));
|
|
1949
2083
|
}
|
|
1950
2084
|
this.createMinimap(index, target.minimap);
|
|
1951
2085
|
const panel = this.panelRuntimes[index];
|
|
1952
2086
|
const group = target.frame.dataset.catalogTransitionGroup;
|
|
1953
2087
|
panel.transitionGroup = group === 'enter' || group === 'shared' ? group : undefined;
|
|
1954
|
-
panel.glass?.setVisibilityAlpha(this.getPanelTransitionOpacity(panel) * (target.getSurfaceOpacity?.() ?? 1)
|
|
2088
|
+
panel.glass?.setVisibilityAlpha(this.getPanelTransitionOpacity(panel) * (target.getSurfaceOpacity?.() ?? 1) *
|
|
2089
|
+
(target.getVisible?.() === false ? 0 : 1));
|
|
1955
2090
|
const minimap = this.minimaps.get(index);
|
|
1956
2091
|
if (minimap) {
|
|
1957
2092
|
this.updateMinimapOverlayVisibility(minimap);
|
|
@@ -1977,55 +2112,76 @@ export class StageExperience {
|
|
|
1977
2112
|
return;
|
|
1978
2113
|
this.layoutDirty = false;
|
|
1979
2114
|
const measurePanels = force || this.panelMeasurementsDirty;
|
|
1980
|
-
this.panelTargets.forEach((target, index) =>
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
currentRuntime.options.position.y = options.position.y;
|
|
2003
|
-
if (currentRuntime.projectionRoot) {
|
|
2004
|
-
currentRuntime.group.position.set(0, 0, 0);
|
|
2005
|
-
this.setPanelProjectionTransform(currentRuntime.projectionRoot, options.position.x, options.position.y, 0);
|
|
2006
|
-
}
|
|
2007
|
-
else {
|
|
2008
|
-
currentRuntime.group.position.set(options.position.x, options.position.y, 0);
|
|
2115
|
+
this.panelTargets.forEach((target, index) => this.syncPanelLayout(target, index, measurePanels));
|
|
2116
|
+
this.panelMeasurementsDirty = false;
|
|
2117
|
+
}
|
|
2118
|
+
syncPanelLayout(target, index, measurePanels) {
|
|
2119
|
+
const runtime = this.panelRuntimes[index];
|
|
2120
|
+
if (!runtime)
|
|
2121
|
+
return;
|
|
2122
|
+
// Preserve the last popup mesh while closed instead of resizing it to a 1px box.
|
|
2123
|
+
if (target.nativeContent && target.getVisible?.() === false)
|
|
2124
|
+
return;
|
|
2125
|
+
const options = this.getMeasuredPanelOptions(target, measurePanels);
|
|
2126
|
+
const geometryChanged = hasPanelGeometryChanged(runtime.options, options);
|
|
2127
|
+
if (geometryChanged && runtime.glass && target.minimap) {
|
|
2128
|
+
this.replacePanel(index, options);
|
|
2129
|
+
}
|
|
2130
|
+
else {
|
|
2131
|
+
if (geometryChanged) {
|
|
2132
|
+
const radius = options.radius ?? runtime.options.radius;
|
|
2133
|
+
runtime.glass?.setVisualSize(options.width, options.height, radius);
|
|
2134
|
+
runtime.options.width = options.width;
|
|
2135
|
+
runtime.options.height = options.height;
|
|
2136
|
+
runtime.options.radius = radius;
|
|
2009
2137
|
}
|
|
2138
|
+
}
|
|
2139
|
+
const currentRuntime = this.panelRuntimes[index];
|
|
2140
|
+
if (!currentRuntime)
|
|
2141
|
+
return;
|
|
2142
|
+
currentRuntime.options.position.x = options.position.x;
|
|
2143
|
+
currentRuntime.options.position.y = options.position.y;
|
|
2144
|
+
if (currentRuntime.projectionRoot) {
|
|
2145
|
+
currentRuntime.group.position.set(0, 0, 0);
|
|
2146
|
+
this.setPanelProjectionTransform(currentRuntime.projectionRoot, options.position.x, options.position.y, 0);
|
|
2147
|
+
}
|
|
2148
|
+
else {
|
|
2149
|
+
currentRuntime.group.position.set(options.position.x, options.position.y, 0);
|
|
2150
|
+
}
|
|
2151
|
+
// Intrinsic DOM sizing and native popover layout remain owned by the adapter.
|
|
2152
|
+
if (!target.nativeContent) {
|
|
2010
2153
|
if (currentRuntime.surface === 'glass') {
|
|
2011
2154
|
this.updateContentElement(target.content, currentRuntime, target.contentInset);
|
|
2012
2155
|
}
|
|
2013
2156
|
else {
|
|
2014
2157
|
this.updateSurfaceElement(target.surfaceElement, currentRuntime, currentRuntime.options.width, currentRuntime.options.height, Boolean(target.minimap));
|
|
2015
2158
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2159
|
+
}
|
|
2160
|
+
if (currentRuntime.content) {
|
|
2161
|
+
if (currentRuntime.contentProjectionRoot) {
|
|
2162
|
+
currentRuntime.content.position.set(0, 0, 0);
|
|
2163
|
+
this.setPanelProjectionTransform(currentRuntime.contentProjectionRoot, currentRuntime.options.position.x, currentRuntime.options.position.y, PANEL_CONTENT_Z);
|
|
2164
|
+
}
|
|
2165
|
+
else {
|
|
2166
|
+
currentRuntime.content.position.set(currentRuntime.options.position.x, currentRuntime.options.position.y, PANEL_CONTENT_Z);
|
|
2024
2167
|
}
|
|
2025
|
-
|
|
2026
|
-
|
|
2168
|
+
}
|
|
2169
|
+
if (geometryChanged && target.minimap)
|
|
2170
|
+
this.createMinimap(index, target.minimap);
|
|
2171
|
+
}
|
|
2172
|
+
/** Commit anchor DOM positions and dependent native surfaces in one render transaction. */
|
|
2173
|
+
renderPanelContents() {
|
|
2174
|
+
this.cssRenderer.render(this.panelContentScene, this.panelCamera);
|
|
2175
|
+
this.renderFlatPanelSurfaces();
|
|
2176
|
+
this.panelTargets.forEach((target, index) => {
|
|
2177
|
+
if (!target.nativeContent || target.getVisible?.() === false)
|
|
2178
|
+
return;
|
|
2179
|
+
target.updateNativeLayout?.();
|
|
2180
|
+
this.syncPanelLayout(target, index, true);
|
|
2181
|
+
const runtime = this.panelRuntimes[index];
|
|
2182
|
+
if (runtime)
|
|
2183
|
+
runtime.group.visible = this.isPanelTargetVisible(index);
|
|
2027
2184
|
});
|
|
2028
|
-
this.panelMeasurementsDirty = false;
|
|
2029
2185
|
}
|
|
2030
2186
|
replacePanel(index, options) {
|
|
2031
2187
|
if (!this.pipeline.activeRenderTargets)
|
|
@@ -2076,6 +2232,11 @@ export class StageExperience {
|
|
|
2076
2232
|
const target = this.panelTargets[index];
|
|
2077
2233
|
if (!target)
|
|
2078
2234
|
return true;
|
|
2235
|
+
if (target.getVisible?.() === false)
|
|
2236
|
+
return false;
|
|
2237
|
+
if (this.fullscreen)
|
|
2238
|
+
return Boolean(target.minimap || target.focusReactive === 'top-right' ||
|
|
2239
|
+
target.content.hasAttribute('data-stage-fullscreen-visible'));
|
|
2079
2240
|
const cachedRect = this.pageBinding.getPanelRect(target.frame);
|
|
2080
2241
|
if (!cachedRect)
|
|
2081
2242
|
return true;
|
|
@@ -2116,7 +2277,7 @@ export class StageExperience {
|
|
|
2116
2277
|
const width = window.innerWidth;
|
|
2117
2278
|
const height = window.innerHeight;
|
|
2118
2279
|
const element = this.viewportTarget?.element;
|
|
2119
|
-
if (!element) {
|
|
2280
|
+
if (!element || this.fullscreen) {
|
|
2120
2281
|
this.stageViewportVisible = true;
|
|
2121
2282
|
this.viewportFrame.set(0, 0, width, height);
|
|
2122
2283
|
this.viewportLayoutSize.set(width, height);
|
|
@@ -2346,9 +2507,8 @@ export class StageExperience {
|
|
|
2346
2507
|
this.syncPanelLayouts();
|
|
2347
2508
|
const panelsAnimating = this.updatePanelPointerInteraction(delta);
|
|
2348
2509
|
const domAnimating = this.updatePanelDomRenderModes();
|
|
2510
|
+
this.renderPanelContents();
|
|
2349
2511
|
this.pipeline.renderFrame(true, false);
|
|
2350
|
-
this.cssRenderer.render(this.panelContentScene, this.panelCamera);
|
|
2351
|
-
this.renderFlatPanelSurfaces();
|
|
2352
2512
|
this.animationActive = this.catalogLayerAnimating || panelsAnimating || domAnimating;
|
|
2353
2513
|
if (!force && (this.animationActive || this.renderInvalidated))
|
|
2354
2514
|
this.scheduleRender();
|
|
@@ -2360,8 +2520,8 @@ export class StageExperience {
|
|
|
2360
2520
|
// The damped camera distance is the single animation clock for geometry and
|
|
2361
2521
|
// every close-up UI phase. Phase remapping remains, temporal lag does not.
|
|
2362
2522
|
this.panelFocus = this.getZoomFocusFactor();
|
|
2363
|
-
this.panelUiFocus = getStageUiFocus(this.panelFocus);
|
|
2364
|
-
this.minimapFocus = getSequencedMinimapFocus(this.panelFocus, this.panelUiFocus);
|
|
2523
|
+
this.panelUiFocus = this.fullscreen ? 1 : getStageUiFocus(this.panelFocus);
|
|
2524
|
+
this.minimapFocus = this.fullscreen ? 1 : getSequencedMinimapFocus(this.panelFocus, this.panelUiFocus);
|
|
2365
2525
|
this.updateStageCameraProjection();
|
|
2366
2526
|
this.reportZoomFocus({
|
|
2367
2527
|
focus: this.panelFocus,
|
|
@@ -2372,9 +2532,8 @@ export class StageExperience {
|
|
|
2372
2532
|
this.syncPanelLayouts();
|
|
2373
2533
|
const panelsAnimating = this.updatePanelPointerInteraction(delta);
|
|
2374
2534
|
const panelDomModeAnimating = this.updatePanelDomRenderModes();
|
|
2535
|
+
this.renderPanelContents();
|
|
2375
2536
|
this.pipeline.renderFrame(false, !this.scrollActive && !this.catalogHandoff);
|
|
2376
|
-
this.cssRenderer.render(this.panelContentScene, this.panelCamera);
|
|
2377
|
-
this.renderFlatPanelSurfaces();
|
|
2378
2537
|
this.animationActive =
|
|
2379
2538
|
this.presentation.readiness.animating ||
|
|
2380
2539
|
this.catalogLayerAnimating ||
|