import type { ImageURLOptions } from "../utils/imageURL"; /** * 图片参数 */ export interface ImageOptions extends Omit { /** * url 地址转化 * @param url - 原始地址 * @param options - 当前地址参数 * @returns 转化后地址 */ transform?: (url: string, options: ImageURLOptions) => string; } /** * 材质的图片参数 */ export interface TextureOptions extends ImageOptions { /** 针对 textureOptions 是否自动通过模型贴图的数量计算需要的模型贴图的尺寸 默认 true */ autoResize?: boolean; }