free-tex-packer-core
Version:
Free texture packer core
32 lines (23 loc) • 525 B
JavaScript
const METHOD = {
Default: "Default"
};
class Packer {
constructor() {
}
pack(data, method) {
throw Error("Abstarct method. Override it.");
}
static get type() {
return "Default";
}
static get defaultMethod() {
return METHOD.Default;
}
static get methods() {
return METHOD;
}
static getMethodProps(id=0) {
return {name: "Default", description: "Default placement"};
}
}
module.exports = Packer;