feat: 添加 AboutMedia 组件,替换签名部分并实现图层映射功能;新增 ImageLayers 组件以支持 WebGL 图像层
This commit is contained in:
@@ -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 },
|
||||
};
|
||||
Reference in New Issue
Block a user