Added comments.
This commit is contained in:
parent
901621da95
commit
99c128d7ca
@ -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 {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user