@spearwolf/twopoint5d
Version:
a library to create 2.5d realtime graphics and pixelart with three.js
27 lines • 753 B
TypeScript
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