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
|
* @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 {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user