Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$utils$data$updateQuadBounds.js
2026-07-01 22:38:29 -06:00

17 lines
803 B
JavaScript

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