initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
shadow$provide.module$node_modules$pixi_DOT_js$lib$utils$data$updateQuadBounds = function(global, require, module, exports) {
|
||||
exports.updateQuadBounds = function(bounds, anchor, texture) {
|
||||
const {width, height} = texture.orig;
|
||||
if (texture = texture.trim) {
|
||||
const sourceWidth = texture.width, sourceHeight = texture.height;
|
||||
bounds.minX = texture.x - anchor._x * width;
|
||||
bounds.maxX = bounds.minX + sourceWidth;
|
||||
bounds.minY = texture.y - anchor._y * height;
|
||||
bounds.maxY = bounds.minY + sourceHeight;
|
||||
} else {
|
||||
bounds.minX = -anchor._x * width, bounds.maxX = bounds.minX + width, bounds.minY = -anchor._y * height, bounds.maxY = bounds.minY + height;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$utils$data$updateQuadBounds.js.map
|
||||
Reference in New Issue
Block a user