Files
Foundry-VTT-Docker/resources/app/node_modules/@pixi/graphics/lib/utils/BatchPart.mjs

30 lines
673 B
JavaScript
Raw Normal View History

2025-01-04 00:34:03 +01:00
class BatchPart {
constructor() {
this.reset();
}
/**
* Begin batch part.
* @param style
* @param startIndex
* @param attribStart
*/
begin(style, startIndex, attribStart) {
this.reset(), this.style = style, this.start = startIndex, this.attribStart = attribStart;
}
/**
* End batch part.
* @param endIndex
* @param endAttrib
*/
end(endIndex, endAttrib) {
this.attribSize = endAttrib - this.attribStart, this.size = endIndex - this.start;
}
reset() {
this.style = null, this.size = 0, this.start = 0, this.attribStart = 0, this.attribSize = 0;
}
}
export {
BatchPart
};
//# sourceMappingURL=BatchPart.mjs.map