function Text(text, style, canvas) {
        var _this = this;
        var ownCanvas = false;
        if (!canvas) {
            canvas = _pixi_settings__WEBPACK_IMPORTED_MODULE_2__.settings.ADAPTER.createCanvas();
            ownCanvas = true;
        }
        canvas.width = 3;
        canvas.height = 3;
        var texture = _pixi_core__WEBPACK_IMPORTED_MODULE_1__.Texture.from(canvas);
        texture.orig = new _pixi_math__WEBPACK_IMPORTED_MODULE_3__.Rectangle();
        texture.trim = new _pixi_math__WEBPACK_IMPORTED_MODULE_3__.Rectangle();
        _this = _super.call(this, texture) || this;
        _this._ownCanvas = ownCanvas;
        _this.canvas = canvas;
        _this.context = canvas.getContext('2d');
        _this._resolution = _pixi_settings__WEBPACK_IMPORTED_MODULE_2__.settings.RESOLUTION;
        _this._autoResolution = true;
        _this._text = null;
        _this._style = null;
        _this._styleListener = null;
        _this._font = '';
        _this.text = text;
        _this.style = style;
        _this.localStyleID = -1;
        return _this;
    }
@param text - The string that you would like the text to display
@param {object|PIXI.TextStyle} [style] - The style parameters
@param canvas - The canvas element for drawing text