diff --git a/lib/pixi/labeledgraphics.js b/lib/pixi/labeledgraphics.js index 775680a..38dd5b4 100644 --- a/lib/pixi/labeledgraphics.js +++ b/lib/pixi/labeledgraphics.js @@ -114,8 +114,8 @@ export class Hypenate { * @param {*} text * @param {*} style * @param {*} width - * @returns * @memberof Hypenate + * @returns {string} */ static splitLines(text, style, width) { const pixiStyle = new PIXI.TextStyle(style) @@ -135,7 +135,7 @@ class TextLabel extends PIXI.Text { /** *Creates an instance of TextLabel. * @param {string} text - The string that you would like the text to display - * @param {object PIXI.TextStyle optional} style - The style parameters + * @param {object|PIXI.TextStyle} [style] - The style parameters * @param {canvas} * @memberof TextLabel */ @@ -209,7 +209,7 @@ export class LabeledGraphics extends PIXI.Graphics { * maxHeight: {number} truncates text that needs more space and adds ellipsis * maxWidth: {number} word wraps text using hyphenation if possible * @param {*} [fontInfo=FontInfo.normal] - Defines PIXI.TextStyle attributes - * @returns {PIXI.Text} instance + * @returns {PIXI.Text} - instance * @memberof LabeledGraphics */ ensureLabel(key, label, attrs = {}, fontInfo = FontInfo.normal) { @@ -278,7 +278,7 @@ export class LabeledGraphics extends PIXI.Graphics { * @param {*} text * @param {*} style * @param {*} [maxLines=Infinity] - * @returns + * @returns {string} * @memberof LabeledGraphics */ truncateLabel(text, style, maxLines = Infinity) { @@ -314,7 +314,7 @@ export class LabeledGraphics extends PIXI.Graphics { * Returns the label for the given key. * * @param {*} key - * @returns + * @returns {Object} * @memberof LabeledGraphics */ getLabel(key) { @@ -411,4 +411,4 @@ export class BitmapLabeledGraphics extends LabeledGraphics { return new SpriteLabel(texture) } -} \ No newline at end of file +}