@spatial-elements/core 1.0.0-beta.13 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalog/CarouselSectionSurfaces.d.ts.map +1 -1
- package/dist/catalog/CarouselSectionSurfaces.js +8 -2
- package/dist/catalog/CarouselSectionSurfaces.js.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.js +12 -4
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
- package/dist/catalog/SourceDomMotion.d.ts.map +1 -1
- package/dist/catalog/SourceDomMotion.js +2 -3
- package/dist/catalog/SourceDomMotion.js.map +1 -1
- package/dist/catalog/carouselRenderClip.d.ts +4 -0
- package/dist/catalog/carouselRenderClip.d.ts.map +1 -0
- package/dist/catalog/carouselRenderClip.js +15 -0
- package/dist/catalog/carouselRenderClip.js.map +1 -0
- package/dist/spatial-element/SpatialElementPaneController.d.ts +4 -4
- package/dist/spatial-element/SpatialElementPaneController.d.ts.map +1 -1
- package/dist/spatial-element/SpatialElementPaneController.js +46 -20
- package/dist/spatial-element/SpatialElementPaneController.js.map +1 -1
- package/dist/spatial-element/responsiveLayout.d.ts.map +1 -1
- package/dist/spatial-element/responsiveLayout.js +4 -2
- package/dist/spatial-element/responsiveLayout.js.map +1 -1
- package/dist/stage/DetailWheelGesture.d.ts +3 -1
- package/dist/stage/DetailWheelGesture.d.ts.map +1 -1
- package/dist/stage/DetailWheelGesture.js +9 -6
- package/dist/stage/DetailWheelGesture.js.map +1 -1
- package/dist/stage/HeldSceneCapture.d.ts +15 -0
- package/dist/stage/HeldSceneCapture.d.ts.map +1 -0
- package/dist/stage/HeldSceneCapture.js +48 -0
- package/dist/stage/HeldSceneCapture.js.map +1 -0
- package/dist/stage/PanelPresentationController.d.ts +5 -0
- package/dist/stage/PanelPresentationController.d.ts.map +1 -1
- package/dist/stage/PanelPresentationController.js +74 -30
- package/dist/stage/PanelPresentationController.js.map +1 -1
- package/dist/stage/SpaceMouseAdapter.js +8 -6
- package/dist/stage/SpaceMouseAdapter.js.map +1 -1
- package/dist/stage/SpatialElementInteractionController.d.ts +24 -2
- package/dist/stage/SpatialElementInteractionController.d.ts.map +1 -1
- package/dist/stage/SpatialElementInteractionController.js +226 -56
- package/dist/stage/SpatialElementInteractionController.js.map +1 -1
- package/dist/stage/StageExperience.d.ts.map +1 -1
- package/dist/stage/StageExperience.js +5 -2
- package/dist/stage/StageExperience.js.map +1 -1
- package/dist/stage/StageRenderPipeline.d.ts +1 -0
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
- package/dist/stage/StageRenderPipeline.js +15 -8
- package/dist/stage/StageRenderPipeline.js.map +1 -1
- package/dist/stage/cssProjection.d.ts +3 -1
- package/dist/stage/cssProjection.d.ts.map +1 -1
- package/dist/stage/cssProjection.js +8 -3
- package/dist/stage/cssProjection.js.map +1 -1
- package/dist/stage/rendererState.d.ts.map +1 -1
- package/dist/stage/rendererState.js +24 -9
- package/dist/stage/rendererState.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselSectionSurfaces.d.ts","sourceRoot":"","sources":["../../src/catalog/CarouselSectionSurfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;iFACiF;AACjF,qBAAa,uBAAuB;IACnC,OAAO,CAAC,OAAO,CAQX;IAEJ,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAqCnF,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"CarouselSectionSurfaces.d.ts","sourceRoot":"","sources":["../../src/catalog/CarouselSectionSurfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;iFACiF;AACjF,qBAAa,uBAAuB;IACnC,OAAO,CAAC,OAAO,CAQX;IAEJ,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAqCnF,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAWxD,OAAO;CAOP"}
|
|
@@ -40,8 +40,14 @@ export class CarouselSectionSurfaces {
|
|
|
40
40
|
}
|
|
41
41
|
update(scrollX, scrollY, opacity) {
|
|
42
42
|
for (const { output, rect, scrollX: measuredX, scrollY: measuredY } of this.entries.values()) {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
const transform = `translate(${rect.left + measuredX - scrollX}px, ${rect.top + measuredY - scrollY}px)`;
|
|
44
|
+
const alpha = String(opacity);
|
|
45
|
+
// Model hover/rotation can render many frames without moving the section.
|
|
46
|
+
// Keep the decorative DOM surface untouched until its own pose changes.
|
|
47
|
+
if (output.style.transform !== transform)
|
|
48
|
+
output.style.transform = transform;
|
|
49
|
+
if (output.style.opacity !== alpha)
|
|
50
|
+
output.style.opacity = alpha;
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
53
|
dispose() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselSectionSurfaces.js","sourceRoot":"","sources":["../../src/catalog/CarouselSectionSurfaces.ts"],"names":[],"mappings":"AAEA;iFACiF;AACjF,MAAM,OAAO,uBAAuB;IAC3B,OAAO,GAAG,IAAI,GAAG,EAQtB,CAAC;IAEJ,IAAI,CAAC,QAA4C,EAAE,OAAe,EAAE,OAAe;QAClF,KAAK,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC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AC;QAC3D,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACD","sourcesContent":["import type { BlurRect } from './CatalogDepthBlur.js';\n\n/** Only decorative section surfaces leave the document stacking context. The real\n * section, summary, focus targets and their event ownership remain untouched. */\nexport class CarouselSectionSurfaces {\n\tprivate entries = new Map<\n\t\tHTMLElement,\n\t\t{\n\t\t\toutput: HTMLDivElement;\n\t\t\trect: BlurRect;\n\t\t\tscrollX: number;\n\t\t\tscrollY: number;\n\t\t}\n\t>();\n\n\tsync(surfaces: ReadonlyMap<HTMLElement, BlurRect>, scrollX: number, scrollY: number) {\n\t\tfor (const [source, entry] of this.entries) {\n\t\t\tif (surfaces.has(source)) continue;\n\t\t\tentry.output.remove();\n\t\t\tsource.removeAttribute('data-carousel-surface-projected');\n\t\t\tthis.entries.delete(source);\n\t\t}\n\t\tfor (const [source, rect] of surfaces) {\n\t\t\tconst stage = source.closest?.('.stage');\n\t\t\tif (!stage) continue;\n\t\t\tlet entry = this.entries.get(source);\n\t\t\tif (!entry) {\n\t\t\t\tconst output = document.createElement('div');\n\t\t\t\toutput.className = 'stage-carousel-surface';\n\t\t\t\toutput.setAttribute('aria-hidden', 'true');\n\t\t\t\tstage.appendChild(output);\n\t\t\t\tentry = { output, rect, scrollX, scrollY };\n\t\t\t\tthis.entries.set(source, entry);\n\t\t\t\tsource.setAttribute('data-carousel-surface-projected', '');\n\t\t\t}\n\t\t\tentry.rect = rect;\n\t\t\tentry.scrollX = scrollX;\n\t\t\tentry.scrollY = scrollY;\n\t\t\tconst style = getComputedStyle(source);\n\t\t\t// Keep semantic variables live: the stage shares the brand's theme scope.\n\t\t\tentry.output.style.background = source.parentElement?.hasAttribute(\n\t\t\t\t'data-spatial-legacy-material'\n\t\t\t)\n\t\t\t\t? style.background\n\t\t\t\t: source.style.background || style.background;\n\t\t\tentry.output.style.borderRadius = style.borderRadius;\n\t\t\tentry.output.style.backdropFilter = style.backdropFilter;\n\t\t\tentry.output.style.width = `${rect.width}px`;\n\t\t\tentry.output.style.height = `${rect.height}px`;\n\t\t}\n\t}\n\n\tupdate(scrollX: number, scrollY: number, opacity: number) {\n\t\tfor (const { output, rect, scrollX: measuredX, scrollY: measuredY } of this.entries.values()) {\n\t\t\tconst transform = `translate(${rect.left + measuredX - scrollX}px, ${rect.top + measuredY - scrollY}px)`;\n\t\t\tconst alpha = String(opacity);\n\t\t\t// Model hover/rotation can render many frames without moving the section.\n\t\t\t// Keep the decorative DOM surface untouched until its own pose changes.\n\t\t\tif (output.style.transform !== transform) output.style.transform = transform;\n\t\t\tif (output.style.opacity !== alpha) output.style.opacity = alpha;\n\t\t}\n\t}\n\n\tdispose() {\n\t\tfor (const [source, { output }] of this.entries) {\n\t\t\toutput.remove();\n\t\t\tsource.removeAttribute('data-carousel-surface-projected');\n\t\t}\n\t\tthis.entries.clear();\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogSpatialElementLayer.d.ts","sourceRoot":"","sources":["../../src/catalog/CatalogSpatialElementLayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CatalogSpatialElementLayer.d.ts","sourceRoot":"","sources":["../../src/catalog/CatalogSpatialElementLayer.ts"],"names":[],"mappings":"AAOA,OAAO,EAA4B,KAAK,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAGjG,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAI9F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,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;AAiBnE,OAAO,EAAE,0BAA0B,EAAoC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,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,EAChC,KAAK,EAAE,wBAAwB,GAAG,SAAS,EAC3C,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,KAAK,CAAC,OAAO;IAW5B,aAAa;IAqBb,iFAAiF;IACjF,iBAAiB,CAAC,OAAO,EAAE,MAAM;IAIjC,OAAO;IA+BP,OAAO,CAAC,WAAW;IAqGnB,OAAO,CAAC,aAAa;IA6DrB,OAAO,CAAC,aAAa;IA8FrB,OAAO,CAAC,YAAY;CAcpB;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAgB7F"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CatalogGeometryFade } from './CatalogGeometryFade.js';
|
|
2
2
|
import { CarouselDeviceCamera } from './CarouselDeviceCamera.js';
|
|
3
|
+
import { carouselRenderClip } from './carouselRenderClip.js';
|
|
3
4
|
import { isCatalogActivationFocus } from './catalogActivationFocus.js';
|
|
4
5
|
import { isDeviceOrientationPaused, getListDeviceYaw, getListDevicePitch, getListDeviceRoll, subscribeListDeviceYaw } from './listDeviceOrientation.js';
|
|
5
6
|
import { cardModelFit } from './cardModelFit.js';
|
|
@@ -797,7 +798,8 @@ export class CatalogSpatialElementLayer {
|
|
|
797
798
|
for (const actor of this.actors.values()) {
|
|
798
799
|
if (actor.root.visible && this.handoff?.actor !== actor) {
|
|
799
800
|
actor.rendered = true;
|
|
800
|
-
actor.card
|
|
801
|
+
if (actor.card && !actor.card.hasAttribute('data-catalog-model-ready'))
|
|
802
|
+
actor.card.setAttribute('data-catalog-model-ready', '');
|
|
801
803
|
}
|
|
802
804
|
}
|
|
803
805
|
}, warmOutput, this.frozenSourceForBand(band, warmOutput));
|
|
@@ -1394,19 +1396,25 @@ export class CatalogSpatialElementLayer {
|
|
|
1394
1396
|
}
|
|
1395
1397
|
// Batch neutral-pose writes, measurements, and restoration to avoid per-card layout thrashing.
|
|
1396
1398
|
const surfaces = new Map();
|
|
1399
|
+
// Measure once per layout invalidation, never during scrolling/rendering.
|
|
1400
|
+
const fullSections = measured.some(({ actor }) => actor.pose) ? Array.from(document.querySelectorAll('.ps-section[data-background-size="full"]:not([data-background-color="transparent"])')) : [];
|
|
1401
|
+
const fullSurfaces = fullSections.map(section => {
|
|
1402
|
+
const { left, top, width, height } = section.getBoundingClientRect();
|
|
1403
|
+
return { left, top, width, height };
|
|
1404
|
+
});
|
|
1397
1405
|
for (const { actor } of measured) {
|
|
1398
1406
|
actor.cardRect = actor.card.getBoundingClientRect();
|
|
1399
1407
|
actor.slotRect = actor.slot.getBoundingClientRect();
|
|
1400
1408
|
if (!actor.pose)
|
|
1401
1409
|
actor.cardScale = cardModelFit(actor.fitCorners, actor.slotRect.width, actor.slotRect.height);
|
|
1402
1410
|
if (actor.pose) {
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1411
|
+
const section = actor.card.closest('[data-section-background-size]');
|
|
1412
|
+
const surface = section?.querySelector(':scope > .ps-section-surface');
|
|
1405
1413
|
if (surface && !surfaces.has(surface)) {
|
|
1406
1414
|
const { left, top, width, height } = surface.getBoundingClientRect();
|
|
1407
1415
|
surfaces.set(surface, { left, top, width, height });
|
|
1408
1416
|
}
|
|
1409
|
-
actor.sectionRect = surface ? surfaces.get(surface) : undefined;
|
|
1417
|
+
actor.sectionRect = surface ? carouselRenderClip(surfaces.get(surface), fullSurfaces, window.innerWidth, -scrollY, Math.max(document.documentElement.scrollHeight, window.innerHeight) - scrollY, fullSections.includes(section)) : undefined;
|
|
1410
1418
|
actor.hitTarget = actor.card.querySelector('.spatial-element-target') ?? undefined;
|
|
1411
1419
|
const panel = actor.card.querySelector('.summary') ?? undefined;
|
|
1412
1420
|
if (actor.summaryPanel && actor.summaryPanel !== panel)
|