Files
personal/lib/imageLayers.ts
T

12 lines
474 B
TypeScript

/**
* 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 },
};