Home

function: calculateTextStyle


calculateTextStyle(helper: PIXI.WebGLRenderer, PIXI.CanvasPrepare, item: PIXI.DisplayObject): boolean

Built-in hook to calculate a text style for a PIXI.Text object.

Params:

Name Type Attribute Description
helper

Not used by this upload handler

item

Item to check

Returns:

boolean

  {
    "comment": "/**\n * Built-in hook to calculate a text style for a PIXI.Text object.\n *\n * @private\n * @param {PIXI.WebGLRenderer|PIXI.CanvasPrepare} helper - Not used by this upload handler\n * @param {PIXI.DisplayObject} item - Item to check\n * @return {boolean} If item was uploaded.\n */",
    "meta": {
        "range": [
            11287,
            11600
        ],
        "filename": "BasePrepare.js",
        "lineno": 435,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\prepare",
        "code": {
            "id": "astnode100074033",
            "name": "calculateTextStyle",
            "type": "FunctionDeclaration",
            "paramnames": [
                "helper",
                "item"
            ]
        },
        "vars": {
            "font": "calculateTextStyle~font"
        }
    },
    "description": "

Built-in hook to calculate a text style for a PIXI.Text object.

", "access": "private", "params": [ { "type": { "names": [ "PIXI.WebGLRenderer", "PIXI.CanvasPrepare" ] }, "description": "

Not used by this upload handler

", "name": "helper" }, { "type": { "names": [ "PIXI.DisplayObject" ] }, "description": "

Item to check

", "name": "item" } ], "returns": [ { "type": { "names": [ "boolean" ] }, "description": "

If item was uploaded.

" } ], "name": "calculateTextStyle", "longname": "calculateTextStyle", "kind": "function", "scope": "global", "___id": "T000002R006886", "___s": true, "filepath": "prepare\\BasePrepare.js" }