shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$text$Text = function(global, require, module, exports) {
  var TextureSource = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$sources$TextureSource"), TextureStyle = require("module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$texture$TextureStyle"), AbstractText = require("module$node_modules$pixi_DOT_js$lib$scene$text$AbstractText"), CanvasTextGenerator = require("module$node_modules$pixi_DOT_js$lib$scene$text$canvas$CanvasTextGenerator"), CanvasTextMetrics = require("module$node_modules$pixi_DOT_js$lib$scene$text$canvas$CanvasTextMetrics"), 
  TextStyle = require("module$node_modules$pixi_DOT_js$lib$scene$text$TextStyle");
  require("module$node_modules$pixi_DOT_js$lib$scene$text$init");
  "use strict";
  class Text extends AbstractText.AbstractText {
    constructor(...args) {
      args = AbstractText.ensureTextOptions(args, "Text");
      super(args, TextStyle.TextStyle);
      this.renderPipeId = "text";
      args.textureStyle && (this.textureStyle = args.textureStyle instanceof TextureStyle.TextureStyle ? args.textureStyle : new TextureStyle.TextureStyle(args.textureStyle));
      this.autoGenerateMipmaps = args.autoGenerateMipmaps ?? TextureSource.TextureSource.defaultOptions.autoGenerateMipmaps;
    }
    updateBounds() {
      const bounds = this._bounds, anchor = this._anchor;
      let width;
      if (this._style.trim) {
        const {frame, canvasAndContext} = CanvasTextGenerator.CanvasTextGenerator.getCanvasAndContext({text:this.text, style:this._style, resolution:1});
        CanvasTextGenerator.CanvasTextGenerator.returnCanvasAndContext(canvasAndContext);
        width = frame.width;
        var height = frame.height;
      } else {
        height = CanvasTextMetrics.CanvasTextMetrics.measureText(this._text, this._style), width = height.width, height = height.height;
      }
      bounds.minX = -anchor._x * width;
      bounds.maxX = bounds.minX + width;
      bounds.minY = -anchor._y * height;
      bounds.maxY = bounds.minY + height;
    }
  }
  exports.Text = Text;
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$text$Text.js.map
