Added comments.

This commit is contained in:
Sebastian Kupke 2019-10-10 09:16:39 +02:00
parent 901621da95
commit 99c128d7ca
1 changed files with 8 additions and 8 deletions

View File

@ -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 {
/**