Added comments.

This commit is contained in:
Sebastian Kupke 2019-10-10 09:16:39 +02:00
parent 901621da95
commit 99c128d7ca

View File

@ -30,22 +30,22 @@ import { Points } from '../utils.js'
*/ */
/** /**
* Class that represents a PixiJS Button. * Class that represents a PixiJS Text.
* *
* @example * @example
* // Create the button * // Create the text
* const button = new Button({ * const text = new Text({
* label: 'My Button', * label: 'My Text',
* action: () => console.log('Button was clicked') * action: () => console.log('Text was clicked')
* }) * })
* *
* // Add the button to a DisplayObject * // Add the text to a DisplayObject
* app.scene.addChild(button) * app.scene.addChild(text)
* *
* @class * @class
* @extends PIXI.Container * @extends PIXI.Container
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|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 { export default class Text extends PIXI.Container {
/** /**