diff --git a/lib/pixi/text.js b/lib/pixi/text.js index f8725bf..3db7798 100644 --- a/lib/pixi/text.js +++ b/lib/pixi/text.js @@ -30,22 +30,22 @@ import { Points } from '../utils.js' */ /** - * Class that represents a PixiJS Button. + * Class that represents a PixiJS Text. * * @example - * // Create the button - * const button = new Button({ - * label: 'My Button', - * action: () => console.log('Button was clicked') + * // Create the text + * const text = new Text({ + * label: 'My Text', + * action: () => console.log('Text was clicked') * }) * - * // Add the button to a DisplayObject - * app.scene.addChild(button) + * // Add the text to a DisplayObject + * app.scene.addChild(text) * * @class * @extends PIXI.Container * @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PIXI.Container} - * @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/button.html|DocTest} + * @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/text.html|DocTest} */ export default class Text extends PIXI.Container { /**