function BitmapText(text, style) {
        if (style === void 0) { style = {}; }
        var _this = _super.call(this) || this;
        /**
         * Private tracker for the current tint.
         * @private
         */
        _this._tint = 0xFFFFFF;
        // Apply the defaults
        var _a = Object.assign({}, BitmapText.styleDefaults, style), align = _a.align, tint = _a.tint, maxWidth = _a.maxWidth, letterSpacing = _a.letterSpacing, fontName = _a.fontName, fontSize = _a.fontSize;
        if (!BitmapFont.available[fontName]) {
            throw new Error("Missing BitmapFont \"" + fontName + "\"");
        }
        _this._activePagesMeshData = [];
        _this._textWidth = 0;
        _this._textHeight = 0;
        _this._align = align;
        _this._tint = tint;
        _this._fontName = fontName;
        _this._fontSize = fontSize || BitmapFont.available[fontName].size;
        _this.text = text;
        _this._maxWidth = maxWidth;
        _this._maxLineHeight = 0;
        _this._letterSpacing = letterSpacing;
        _this._anchor = new _pixi_math__WEBPACK_IMPORTED_MODULE_0__.ObservablePoint(function () { _this.dirty = true; }, _this, 0, 0);
        _this._roundPixels = _pixi_settings__WEBPACK_IMPORTED_MODULE_1__.settings.ROUND_PIXELS;
        _this.dirty = true;
        _this._resolution = _pixi_settings__WEBPACK_IMPORTED_MODULE_1__.settings.RESOLUTION;
        _this._autoResolution = true;
        _this._textureCache = {};
        return _this;
    }
@param text - A string that you would like the text to display.
@param style - The style parameters.
@param {string} style.fontName - The installed BitmapFont name.
@param {number} [style.fontSize] - The size of the font in pixels, e.g. 24. If undefined,
.     this will default to the BitmapFont size.
@param {string} [style.align='left'] - Alignment for multiline text ('left', 'center', 'right' or 'justify'),
     does not affect single line text.
@param {number} [style.tint=0xFFFFFF] - The tint color.
@param {number} [style.letterSpacing=0] - The amount of spacing between letters.
@param {number} [style.maxWidth=0] - The max width of the text before line wrapping.