UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

27 lines 753 B
import { TextureAtlas } from './TextureAtlas.js'; import { TextureCoords } from './TextureCoords.js'; export interface TexturePackerFrameData { frame: { x: number; y: number; w: number; h: number; }; } export interface TexturePackerMetaData { image: string; size: { w: number; h: number; }; } export interface TexturePackerJsonData { frames: { [frameName: string]: TexturePackerFrameData; }; meta: TexturePackerMetaData; } export declare class TexturePackerJson { static parse(data: TexturePackerJsonData, parentCoords?: TextureCoords, target?: TextureAtlas): [atlas: TextureAtlas, meta: TexturePackerMetaData]; } //# sourceMappingURL=TexturePackerJson.d.ts.map