A specialization of the PIXI.Graphics class that allows to resuse and place labels across different layout variants
Extends
- PIXI.Graphics
 
Classes
Methods
- 
    
    
    
Ensures that labels are hidden on clear.
 - 
    
    
    
Logs debugging infos
 - 
    
    
    
Main additional method. Ensures that a text object is created that is cached under the given key.
Name Type Default Description key* The cache key
label* The label to show
attrs* {} optional Defines attributes of the text object. align: 'right', 'left', or 'center' justify: 'top', 'bottom', or 'center' maxLines: {integer} truncates the text and adds ellipsis maxHeight: {number} truncates text that needs more space and adds ellipsis maxWidth: {number} word wraps text using hyphenation if possible
fontInfo* FontInfo.normal optional Defines PIXI.TextStyle attributes
Returns:
Type Description PIXI.Text - instance
 
 - 
    
    
    
Returns the label for the given key.
Name Type Description key* Returns:
Type Description Object  - 
    
    
    
Hides the label with the given key.
Name Type Description key*  - 
    
    
    
Removes the label with the given key.
Name Type Description key*  - 
    
    
    
Private method that truncates the text and adds an ellipsis if there are more lines than wanted
Name Type Default Description text* style* maxLines* Infinity optional Returns:
Type Description string