feat: 添加 AboutMedia 组件,替换签名部分并实现图层映射功能;新增 ImageLayers 组件以支持 WebGL 图像层

This commit is contained in:
2026-09-01 01:09:46 +08:00
parent 4599a49879
commit 91ba27ffc0
5 changed files with 560 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
/**
* Shared DOM-target registry for WebGL image layers (original `t.layers`:
* `{ key, imageUrl, hoverImageUrl, targetRef }`). The page component attaches
* the DOM element; the canvas-side ImageLayers component reads the same
* object (both live in the client bundle, so it is one shared instance).
*/
export type ImageLayerTarget = { current: HTMLElement | null };
export const imageLayerTargets: Record<string, ImageLayerTarget> = {
about: { current: null },
};