UNPKG

@spearwolf/twopoint5d

Version:

a library to create 2.5d realtime graphics and pixelart with three.js

29 lines 1.23 kB
import type { ThreeRendererType } from '../display/types.js'; import type { TextureOptionClasses } from './TextureFactory.js'; import { TextureResource, type TextureResourceSubType } from './TextureResource.js'; import type { TileSetOptions } from './TileSet.js'; export interface TextureStoreItem { imageUrl?: string; overrideImageUrl?: string; atlasUrl?: string; tileSet?: TileSetOptions; texture?: TextureOptionClasses[]; } export interface TextureStoreData { defaultTextureClasses: TextureOptionClasses[]; items: Record<string, TextureStoreItem>; } export declare class TextureStore { #private; static load(url: string | URL): Promise<TextureStore>; defaultTextureClasses: TextureOptionClasses[]; get renderer(): ThreeRendererType | undefined; set renderer(value: ThreeRendererType | undefined); constructor(); onResource(id: string, callback: (resource: TextureResource) => void): () => void; whenReady(): Promise<TextureStore>; load(url: string | URL): this; parse(data: TextureStoreData): void; get(id: string, type: TextureResourceSubType | TextureResourceSubType[], callback: (val: any) => void): () => void; } //# sourceMappingURL=TextureStore.d.ts.map