/** * 背景来源汇总出口。 * * 各来源都写成一个自包含模块,统一产出 `BackgroundAsset`(形状见 `@/types`): * - upload.ts 本地文件 → object URL * - geometry.ts 预设几何底纹:纯函数派生 + 渲染;`GEOMETRY_PRESETS` 是 * 新背景菜单的卡片数据源(固定图案 + 人工配色,无种子), * `GEOMETRY_KINDS` 是 legacy 的种子随机配色 4 种 * - pexels.ts / unsplash.ts 图库搜索,都实现 `PhotoProvider` 接口, * Pexels 在前(`PHOTO_PROVIDERS` 见 providers.ts) * * T4 时代的 legacy 函数面(`searchUnsplash` / `toAsset` 等)保留到旧 * SourcePanel 被 t13 清掉为止;新界面一律走 `PHOTO_PROVIDERS`。 */ export { fromUpload, releaseObjectUrl, pickImageFiles } from "./upload"; export { deriveGeometryParams, derivePresetParams, renderGeometry, geometryToDataUrl, createGeometryAsset, createPresetAsset, GEOMETRY_KINDS, GEOMETRY_PRESETS, contrastToWhite, relativeLuminance, } from "./geometry"; export type { GeometryParams, GeometryKind, RenderKind, GeometryPreset, RGB, } from "./geometry"; export { unsplashStatus, searchUnsplash, trackDownload, toAsset, parseUnsplashResponse, unsplashProvider, } from "./unsplash"; export type { UnsplashStatus, UnsplashPhoto } from "./unsplash"; export { parsePexelsResponse, pexelsProvider } from "./pexels"; export { PHOTO_PROVIDERS, providerById, PhotoProviderError } from "./providers"; export type { BackgroundAsset, Attribution, StockPhoto, PhotoProvider, PhotoProviderId, PhotoProviderStatus, } from "../types";