Initial
This commit is contained in:
28
resources/app/node_modules/@pixi/graphics/lib/utils/BatchPart.js
generated
vendored
Normal file
28
resources/app/node_modules/@pixi/graphics/lib/utils/BatchPart.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
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;
|
||||
}
|
||||
}
|
||||
exports.BatchPart = BatchPart;
|
||||
//# sourceMappingURL=BatchPart.js.map
|
||||
Reference in New Issue
Block a user