18 lines
895 B
JavaScript
18 lines
895 B
JavaScript
shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$text$utils$updateTextBounds = function(global, require, module, exports) {
|
|
var updateQuadBounds = require("module$node_modules$pixi_DOT_js$lib$utils$data$updateQuadBounds");
|
|
"use strict";
|
|
exports.updateTextBounds = function(batchableSprite, text) {
|
|
const {texture, bounds} = batchableSprite;
|
|
batchableSprite = text._style._getFinalPadding();
|
|
updateQuadBounds.updateQuadBounds(bounds, text._anchor, texture);
|
|
const paddingOffset = text._anchor._x * batchableSprite * 2;
|
|
text = text._anchor._y * batchableSprite * 2;
|
|
bounds.minX -= batchableSprite - paddingOffset;
|
|
bounds.minY -= batchableSprite - text;
|
|
bounds.maxX -= batchableSprite - paddingOffset;
|
|
bounds.maxY -= batchableSprite - text;
|
|
};
|
|
};
|
|
|
|
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$text$utils$updateTextBounds.js.map
|