@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.
- package/dist/catalog/CarouselGlassCompositor.d.ts +7 -2
- package/dist/catalog/CarouselGlassCompositor.d.ts.map +1 -1
- package/dist/catalog/CarouselGlassCompositor.js +85 -24
- package/dist/catalog/CarouselGlassCompositor.js.map +1 -1
- package/dist/catalog/CarouselGround.d.ts +21 -0
- package/dist/catalog/CarouselGround.d.ts.map +1 -0
- package/dist/catalog/CarouselGround.js +107 -0
- package/dist/catalog/CarouselGround.js.map +1 -0
- package/dist/catalog/CatalogDepthBlur.d.ts +26 -0
- package/dist/catalog/CatalogDepthBlur.d.ts.map +1 -0
- package/dist/catalog/CatalogDepthBlur.js +87 -0
- package/dist/catalog/CatalogDepthBlur.js.map +1 -0
- package/dist/catalog/CatalogModelOutline.d.ts +31 -0
- package/dist/catalog/CatalogModelOutline.d.ts.map +1 -0
- package/dist/catalog/CatalogModelOutline.js +127 -0
- package/dist/catalog/CatalogModelOutline.js.map +1 -0
- package/dist/catalog/CatalogSpatialElementLayer.d.ts +29 -2
- package/dist/catalog/CatalogSpatialElementLayer.d.ts.map +1 -1
- package/dist/catalog/CatalogSpatialElementLayer.js +170 -41
- package/dist/catalog/CatalogSpatialElementLayer.js.map +1 -1
- package/dist/catalog/CatalogTransition.d.ts.map +1 -1
- package/dist/catalog/CatalogTransition.js +49 -4
- package/dist/catalog/CatalogTransition.js.map +1 -1
- package/dist/catalog/SpatialGeometryCapture.d.ts +9 -0
- package/dist/catalog/SpatialGeometryCapture.d.ts.map +1 -1
- package/dist/catalog/SpatialGeometryCapture.js +11 -1
- package/dist/catalog/SpatialGeometryCapture.js.map +1 -1
- package/dist/catalog/cardModelFit.d.ts +7 -0
- package/dist/catalog/cardModelFit.d.ts.map +1 -0
- package/dist/catalog/cardModelFit.js +16 -0
- package/dist/catalog/cardModelFit.js.map +1 -0
- package/dist/catalog/cardProjection.d.ts +8 -0
- package/dist/catalog/cardProjection.d.ts.map +1 -0
- package/dist/catalog/cardProjection.js +51 -0
- package/dist/catalog/cardProjection.js.map +1 -0
- package/dist/catalog/carouselMotion.d.ts +35 -0
- package/dist/catalog/carouselMotion.d.ts.map +1 -1
- package/dist/catalog/carouselMotion.js +85 -4
- package/dist/catalog/carouselMotion.js.map +1 -1
- package/dist/catalog/carouselProximity.d.ts +11 -0
- package/dist/catalog/carouselProximity.d.ts.map +1 -0
- package/dist/catalog/carouselProximity.js +13 -0
- package/dist/catalog/carouselProximity.js.map +1 -0
- package/dist/catalog/carouselSupport.d.ts +4 -0
- package/dist/catalog/carouselSupport.d.ts.map +1 -0
- package/dist/catalog/carouselSupport.js +30 -0
- package/dist/catalog/carouselSupport.js.map +1 -0
- package/dist/catalog/catalogPose.d.ts +36 -6
- package/dist/catalog/catalogPose.d.ts.map +1 -1
- package/dist/catalog/catalogPose.js +79 -23
- package/dist/catalog/catalogPose.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 +8 -1
- package/dist/stage/LiquidGlassPanel.js.map +1 -1
- package/dist/stage/PanelPresentationController.d.ts.map +1 -1
- package/dist/stage/PanelPresentationController.js +7 -0
- package/dist/stage/PanelPresentationController.js.map +1 -1
- package/dist/stage/StageExperience.d.ts +40 -0
- package/dist/stage/StageExperience.d.ts.map +1 -1
- package/dist/stage/StageExperience.js +11 -13
- package/dist/stage/StageExperience.js.map +1 -1
- package/dist/stage/StageRenderPipeline.d.ts.map +1 -1
- package/dist/stage/StageRenderPipeline.js +11 -62
- package/dist/stage/StageRenderPipeline.js.map +1 -1
- package/dist/stage/interactionOutline.d.ts +14 -0
- package/dist/stage/interactionOutline.d.ts.map +1 -0
- package/dist/stage/interactionOutline.js +81 -0
- package/dist/stage/interactionOutline.js.map +1 -0
- package/dist/stage/panelContext.d.ts +2 -0
- package/dist/stage/panelContext.d.ts.map +1 -1
- package/dist/stage/panelContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { Fn, float, If, max as tslMax, min as tslMin, uniform, uv, vec2 } from 'three/tsl';
|
|
3
|
+
import { getMeshMaterials } from './stageSceneUtils.js';
|
|
4
|
+
export function isOutlineMesh(mesh, theme) {
|
|
5
|
+
if (theme.excludeMesh?.(mesh) || mesh.userData.stagePick === false || mesh.userData.stageOutline === false)
|
|
6
|
+
return false;
|
|
7
|
+
const materials = getMeshMaterials(mesh).map(material => material.name).filter(Boolean).join(' ');
|
|
8
|
+
return !/(shadow|ground|floor|plane|helper|collision|collider|reflection)/i.test(`${mesh.name} ${materials}`);
|
|
9
|
+
}
|
|
10
|
+
export function createOutlineUniforms() {
|
|
11
|
+
return {
|
|
12
|
+
color: uniform(new THREE.Color()),
|
|
13
|
+
strength: uniform(0), glow: uniform(0), opacityScale: uniform(1),
|
|
14
|
+
texel: uniform(new THREE.Vector2()), glowTexel: uniform(new THREE.Vector2())
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/** Shared silhouette and outer halo for detail and catalog geometry. */
|
|
18
|
+
export function createOutlineOpacity(mask, controls, unconditional = false) {
|
|
19
|
+
const calculate = () => {
|
|
20
|
+
const texel = controls.texel;
|
|
21
|
+
const glowTexel = controls.glowTexel;
|
|
22
|
+
const sampleMaskRing = (sampleTexel, scale = 1) => {
|
|
23
|
+
const centerUv = uv();
|
|
24
|
+
const sampleX = sampleTexel.x.mul(scale);
|
|
25
|
+
const sampleY = sampleTexel.y.mul(scale);
|
|
26
|
+
const left = mask.sample(centerUv.sub(vec2(sampleX, 0))).r;
|
|
27
|
+
const right = mask.sample(centerUv.add(vec2(sampleX, 0))).r;
|
|
28
|
+
const up = mask.sample(centerUv.add(vec2(0, sampleY))).r;
|
|
29
|
+
const down = mask.sample(centerUv.sub(vec2(0, sampleY))).r;
|
|
30
|
+
const upLeft = mask.sample(centerUv.add(vec2(0, sampleY)).sub(vec2(sampleX, 0))).r;
|
|
31
|
+
const upRight = mask.sample(centerUv.add(vec2(sampleX, sampleY))).r;
|
|
32
|
+
const downLeft = mask.sample(centerUv.sub(vec2(sampleX, sampleY))).r;
|
|
33
|
+
const downRight = mask.sample(centerUv.add(vec2(sampleX, 0)).sub(vec2(0, sampleY))).r;
|
|
34
|
+
return {
|
|
35
|
+
average: left
|
|
36
|
+
.add(right)
|
|
37
|
+
.add(up)
|
|
38
|
+
.add(down)
|
|
39
|
+
.add(upLeft)
|
|
40
|
+
.add(upRight)
|
|
41
|
+
.add(downLeft)
|
|
42
|
+
.add(downRight)
|
|
43
|
+
.div(8),
|
|
44
|
+
max: tslMax(tslMax(tslMax(left, right), tslMax(up, down)), tslMax(tslMax(upLeft, upRight), tslMax(downLeft, downRight))),
|
|
45
|
+
min: tslMin(tslMin(tslMin(left, right), tslMin(up, down)), tslMin(tslMin(upLeft, upRight), tslMin(downLeft, downRight)))
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const edgeNeighbor = sampleMaskRing(texel);
|
|
49
|
+
const glowNearNeighbor = sampleMaskRing(glowTexel, 0.45);
|
|
50
|
+
const glowMidNeighbor = sampleMaskRing(glowTexel, 0.7);
|
|
51
|
+
const glowFarNeighbor = sampleMaskRing(glowTexel);
|
|
52
|
+
const center = mask.sample(uv()).r;
|
|
53
|
+
const outside = center.oneMinus();
|
|
54
|
+
const edgeGradient = edgeNeighbor.max.sub(center).max(0);
|
|
55
|
+
const core = edgeGradient.mul(controls.strength);
|
|
56
|
+
// Average neighbouring coverage, rather than dilating a solid band. Keep the
|
|
57
|
+
// halo outside the spatialElement so it cannot be mistaken for painted geometry.
|
|
58
|
+
const glowNear = glowNearNeighbor.average
|
|
59
|
+
.mul(outside)
|
|
60
|
+
.mul(controls.glow.mul(0.6));
|
|
61
|
+
const glowMid = glowMidNeighbor.average
|
|
62
|
+
.mul(outside)
|
|
63
|
+
.mul(controls.glow.mul(0.3));
|
|
64
|
+
const glowFar = glowFarNeighbor.average
|
|
65
|
+
.mul(outside)
|
|
66
|
+
.mul(controls.glow.mul(0.1));
|
|
67
|
+
const opacity = tslMin(core.add(glowNear).add(glowMid).add(glowFar), 1).mul(controls.opacityScale);
|
|
68
|
+
return opacity;
|
|
69
|
+
};
|
|
70
|
+
if (unconditional)
|
|
71
|
+
return calculate();
|
|
72
|
+
return Fn(() => {
|
|
73
|
+
const opacity = float(0).toVar();
|
|
74
|
+
// A fully covered pixel has zero outer halo. Skip all 32 neighbour taps there.
|
|
75
|
+
If(mask.sample(uv()).r.lessThan(1), () => {
|
|
76
|
+
opacity.assign(calculate());
|
|
77
|
+
});
|
|
78
|
+
return opacity;
|
|
79
|
+
})();
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=interactionOutline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactionOutline.js","sourceRoot":"","sources":["../../src/stage/interactionOutline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,UAAU,aAAa,CAAC,IAAgB,EAAE,KAA4B;IAC3E,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,KAAK,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,YAAY,KAAK,KAAK;QAAE,OAAO,KAAK,CAAC;IACzH,MAAM,SAAS,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,E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uniform, uv, vec2 } from 'three/tsl';\nimport { getMeshMaterials } from './stageSceneUtils.js';\nimport type { StageInteractionTheme } from './stageTypes.js';\n\nexport function isOutlineMesh(mesh: THREE.Mesh, theme: StageInteractionTheme) {\n\tif (theme.excludeMesh?.(mesh) || mesh.userData.stagePick === false || mesh.userData.stageOutline === false) return false;\n\tconst materials = getMeshMaterials(mesh).map(material => material.name).filter(Boolean).join(' ');\n\treturn !/(shadow|ground|floor|plane|helper|collision|collider|reflection)/i.test(`${mesh.name} ${materials}`);\n}\n\nexport function createOutlineUniforms() {\n\treturn {\n\t\tcolor: uniform(new THREE.Color()),\n\t\tstrength: uniform(0), glow: uniform(0), opacityScale: uniform(1),\n\t\ttexel: uniform(new THREE.Vector2()), glowTexel: uniform(new THREE.Vector2())\n\t};\n}\n\n/** Shared silhouette and outer halo for detail and catalog geometry. */\nexport function createOutlineOpacity(mask: THREE.TextureNode, controls: ReturnType<typeof createOutlineUniforms>, unconditional = false) {\n\tconst calculate = () => {\n\t\tconst texel = controls.texel;\n\t\tconst glowTexel = controls.glowTexel;\n\t\tconst sampleMaskRing = (sampleTexel: typeof texel, scale = 1) => {\n\t\t\tconst centerUv = uv();\n\t\t\tconst sampleX = sampleTexel.x.mul(scale);\n\t\t\tconst sampleY = sampleTexel.y.mul(scale);\n\t\t\tconst left = mask.sample(centerUv.sub(vec2(sampleX, 0))).r;\n\t\t\tconst right = mask.sample(centerUv.add(vec2(sampleX, 0))).r;\n\t\t\tconst up = mask.sample(centerUv.add(vec2(0, sampleY))).r;\n\t\t\tconst down = mask.sample(centerUv.sub(vec2(0, sampleY))).r;\n\t\t\tconst upLeft = mask.sample(centerUv.add(vec2(0, sampleY)).sub(vec2(sampleX, 0))).r;\n\t\t\tconst upRight = mask.sample(centerUv.add(vec2(sampleX, sampleY))).r;\n\t\t\tconst downLeft = mask.sample(centerUv.sub(vec2(sampleX, sampleY))).r;\n\t\t\tconst downRight = mask.sample(centerUv.add(vec2(sampleX, 0)).sub(vec2(0, sampleY))).r;\n\n\t\t\treturn {\n\t\t\t\taverage: left\n\t\t\t\t\t.add(right)\n\t\t\t\t\t.add(up)\n\t\t\t\t\t.add(down)\n\t\t\t\t\t.add(upLeft)\n\t\t\t\t\t.add(upRight)\n\t\t\t\t\t.add(downLeft)\n\t\t\t\t\t.add(downRight)\n\t\t\t\t\t.div(8),\n\t\t\t\tmax: tslMax(\n\t\t\t\t\ttslMax(tslMax(left, right), tslMax(up, down)),\n\t\t\t\t\ttslMax(tslMax(upLeft, upRight), tslMax(downLeft, downRight))\n\t\t\t\t),\n\t\t\t\tmin: tslMin(\n\t\t\t\t\ttslMin(tslMin(left, right), tslMin(up, down)),\n\t\t\t\t\ttslMin(tslMin(upLeft, upRight), tslMin(downLeft, downRight))\n\t\t\t\t)\n\t\t\t};\n\t\t};\n\t\tconst edgeNeighbor = sampleMaskRing(texel);\n\t\tconst glowNearNeighbor = sampleMaskRing(glowTexel, 0.45);\n\t\tconst glowMidNeighbor = sampleMaskRing(glowTexel, 0.7);\n\t\tconst glowFarNeighbor = sampleMaskRing(glowTexel);\n\t\tconst center = mask.sample(uv()).r;\n\t\tconst outside = center.oneMinus();\n\t\tconst edgeGradient = edgeNeighbor.max.sub(center).max(0);\n\t\tconst core = edgeGradient.mul(controls.strength);\n\t\t// Average neighbouring coverage, rather than dilating a solid band. Keep the\n\t\t// halo outside the spatialElement so it cannot be mistaken for painted geometry.\n\t\tconst glowNear = glowNearNeighbor.average\n\t\t\t.mul(outside)\n\t\t\t.mul(controls.glow.mul(0.6));\n\t\tconst glowMid = glowMidNeighbor.average\n\t\t\t.mul(outside)\n\t\t\t.mul(controls.glow.mul(0.3));\n\t\tconst glowFar = glowFarNeighbor.average\n\t\t\t.mul(outside)\n\t\t\t.mul(controls.glow.mul(0.1));\n\t\tconst opacity = tslMin(core.add(glowNear).add(glowMid).add(glowFar), 1).mul(\n\t\t\tcontrols.opacityScale\n\t\t);\n\n\t\treturn opacity;\n\t};\n\tif (unconditional) return calculate();\n\treturn Fn(() => {\n\t\tconst opacity = float(0).toVar();\n\t\t// A fully covered pixel has zero outer halo. Skip all 32 neighbour taps there.\n\t\tIf(mask.sample(uv()).r.lessThan(1), () => {\n\t\t\topacity.assign(calculate());\n\t\t});\n\t\treturn opacity;\n\t})();\n}\n"]}
|
|
@@ -69,6 +69,8 @@ export interface StageViewportRegistration {
|
|
|
69
69
|
getElement(): HTMLElement | undefined;
|
|
70
70
|
}
|
|
71
71
|
export interface StageContext {
|
|
72
|
+
/** Reactive in framework adapters; false during SSR and until the GPU has painted. */
|
|
73
|
+
isEnhanced?(): boolean;
|
|
72
74
|
prefetchSpatialElement?(stage: import('../spatial-element/spatialElementScene.js').SpatialElementScene): void;
|
|
73
75
|
registerPanel(panel: StagePanelRegistration): () => void;
|
|
74
76
|
/** Refresh appearance from registered getters without rebinding the page or its camera. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelContext.d.ts","sourceRoot":"","sources":["../../src/stage/panelContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,eAAO,MAAM,iBAAiB,eAAkB,CAAC;AAEjD,uFAAuF;AACvF,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,+FAA+F;AAC/F,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnC;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,eAAe,GAAG,IAA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O,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelContext.js","sourceRoot":"","sources":["../../src/stage/panelContext.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjD,uFAAuF;AACvF,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,+FAA+F;AAC/F,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC","sourcesContent":["\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\nimport type { StageMinimapDockedView, StagePanelSurface } from './stageTypes.js';\n\nexport const STAGE_CONTEXT_KEY = Symbol('stage');\n\n/** Notifies an active stage that externally positioned panel frames changed layout. */\nexport const STAGE_PANEL_LAYOUT_EVENT = 'stage:panel-layout';\n\n/** Notifies an active stage that an external panel visual changed without affecting layout. */\nexport const STAGE_PANEL_VISUAL_EVENT = 'stage:panel-visual';\n\nexport interface StagePanelPose {\n\twidth: number;\n\theight: number;\n\tposition: { x: number; y: number };\n}\n\nexport interface StagePanelShape {\n\tradius: number;\n\tcontentInset?: number;\n}\n\nexport type StagePanelTheme = Omit<\n\tLiquidGlassPanelOptions,\n\t'width' | 'height' | 'position' | 'radius'\n> & {\n\t/** Semantic surface style. Defaults to the WebGPU-backed `glass` mode. */\n\tsurface?: StagePanelSurface;\n};\n\n\n\nexport interface StagePanelMinimapOptions {\n\texpandedHeight?: number;\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\toverlayColor?: string | number;\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\tcontextColor?: string | number;\n\tcontextOpacity?: number;\n\tviewportColor?: string | number;\n}\n\nexport interface StagePanelRegistration {\n\tgetContentInset(): number;\n\tgetElement(): HTMLElement | undefined;\n\tgetFrameElement(): HTMLElement | undefined;\n\tgetSurfaceElement(): HTMLElement | undefined;\n\tgetPointerReactive(): boolean | 'lift';\n\tgetFocusReactive?(): boolean | 'top-right';\n\t/** Neighbouring panel frame that shares a corner control's exit path. */\n\tgetFocusAnchor?(): HTMLElement | undefined;\n\tgetNativeContent?(): boolean;\n\t/** Runs synchronously before the native panel surface is measured and drawn. */\n\tupdateNativeLayout?(): void;\n\tgetVisible?(): boolean;\n\tgetMinimapOptions(): StagePanelMinimapOptions | undefined;\n\tgetOptions(): LiquidGlassPanelOptions;\n\tgetSurface(): StagePanelSurface;\n\t/** Returns the opacity of the panel surface without affecting panel content. */\n\tgetSurfaceOpacity(): number;\n\t/** Returns a transient presentation scale applied to a rendered minimap model. */\n\tgetMinimapModelScale(): number;\n\t/** Returns the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress(): number;\n\t/** Returns the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop(): number | undefined;\n}\n\nexport interface StageViewportRegistration {\n\tgetElement(): HTMLElement | undefined;\n}\n\nexport interface StageContext {\n\tprefetchSpatialElement?(stage: import('../spatial-element/spatialElementScene.js').SpatialElementScene): void;\n\tregisterPanel(panel: StagePanelRegistration): () => void;\n\t/** Refresh appearance from registered getters without rebinding the page or its camera. */\n\tupdatePanelAppearance?(): void;\n\tregisterViewport(viewport: StageViewportRegistration): () => void;\n\t/** Restores the element camera to its initial fitted pose. */\n\tresetView(): void;\n\t/** True for both native fullscreen and its viewport fallback. */\n\tisFullscreen?(): boolean;\n\t/** Current camera zoom focus, from the fitted detail view (0) to close-up (1). */\n\tgetZoomFocus?(): number;\n\tsetFullscreen?(fullscreen: boolean): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"panelContext.js","sourceRoot":"","sources":["../../src/stage/panelContext.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjD,uFAAuF;AACvF,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,+FAA+F;AAC/F,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC","sourcesContent":["\nimport type { LiquidGlassPanelOptions } from './LiquidGlassPanel.js';\nimport type { StageMinimapDockedView, StagePanelSurface } from './stageTypes.js';\n\nexport const STAGE_CONTEXT_KEY = Symbol('stage');\n\n/** Notifies an active stage that externally positioned panel frames changed layout. */\nexport const STAGE_PANEL_LAYOUT_EVENT = 'stage:panel-layout';\n\n/** Notifies an active stage that an external panel visual changed without affecting layout. */\nexport const STAGE_PANEL_VISUAL_EVENT = 'stage:panel-visual';\n\nexport interface StagePanelPose {\n\twidth: number;\n\theight: number;\n\tposition: { x: number; y: number };\n}\n\nexport interface StagePanelShape {\n\tradius: number;\n\tcontentInset?: number;\n}\n\nexport type StagePanelTheme = Omit<\n\tLiquidGlassPanelOptions,\n\t'width' | 'height' | 'position' | 'radius'\n> & {\n\t/** Semantic surface style. Defaults to the WebGPU-backed `glass` mode. */\n\tsurface?: StagePanelSurface;\n};\n\n\n\nexport interface StagePanelMinimapOptions {\n\texpandedHeight?: number;\n\tinset?: number;\n\t/** Additional unbounded scale applied to the fitted model. Values below 0.2 are clamped. */\n\tmodelScale?: number;\n\t/** Model multiplier at full pointer hover. Use 1 to disable hover enlargement. */\n\thoverModelScale?: number;\n\t/** Hover multiplier used once the minimap is expanded by camera zoom. */\n\texpandedHoverModelScale?: number;\n\t/** Optional spatial-element-specific presentation used while the minimap is docked. */\n\tdockedView?: StageMinimapDockedView;\n\toverlayColor?: string | number;\n\toverlayOpacity?: number;\n\t/** Gaussian blur radius in CSS pixels. */\n\toverlayBlur?: number;\n\tcontextColor?: string | number;\n\tcontextOpacity?: number;\n\tviewportColor?: string | number;\n}\n\nexport interface StagePanelRegistration {\n\tgetContentInset(): number;\n\tgetElement(): HTMLElement | undefined;\n\tgetFrameElement(): HTMLElement | undefined;\n\tgetSurfaceElement(): HTMLElement | undefined;\n\tgetPointerReactive(): boolean | 'lift';\n\tgetFocusReactive?(): boolean | 'top-right';\n\t/** Neighbouring panel frame that shares a corner control's exit path. */\n\tgetFocusAnchor?(): HTMLElement | undefined;\n\tgetNativeContent?(): boolean;\n\t/** Runs synchronously before the native panel surface is measured and drawn. */\n\tupdateNativeLayout?(): void;\n\tgetVisible?(): boolean;\n\tgetMinimapOptions(): StagePanelMinimapOptions | undefined;\n\tgetOptions(): LiquidGlassPanelOptions;\n\tgetSurface(): StagePanelSurface;\n\t/** Returns the opacity of the panel surface without affecting panel content. */\n\tgetSurfaceOpacity(): number;\n\t/** Returns a transient presentation scale applied to a rendered minimap model. */\n\tgetMinimapModelScale(): number;\n\t/** Returns the animated transition from the regular to the docked minimap view. */\n\tgetMinimapDockProgress(): number;\n\t/** Returns the viewport-space top edge used to anchor the rendered model. */\n\tgetMinimapModelTop(): number | undefined;\n}\n\nexport interface StageViewportRegistration {\n\tgetElement(): HTMLElement | undefined;\n}\n\nexport interface StageContext {\n\t/** Reactive in framework adapters; false during SSR and until the GPU has painted. */\n\tisEnhanced?(): boolean;\n\tprefetchSpatialElement?(stage: import('../spatial-element/spatialElementScene.js').SpatialElementScene): void;\n\tregisterPanel(panel: StagePanelRegistration): () => void;\n\t/** Refresh appearance from registered getters without rebinding the page or its camera. */\n\tupdatePanelAppearance?(): void;\n\tregisterViewport(viewport: StageViewportRegistration): () => void;\n\t/** Restores the element camera to its initial fitted pose. */\n\tresetView(): void;\n\t/** True for both native fullscreen and its viewport fallback. */\n\tisFullscreen?(): boolean;\n\t/** Current camera zoom focus, from the fitted detail view (0) to close-up (1). */\n\tgetZoomFocus?(): number;\n\tsetFullscreen?(fullscreen: boolean): void;\n}\n"]}
|