AttributeLite Class
AttributeLite provides Attribute-like getters and setters for shape classes in the Graphics module. It provides a get/set API without the event infastructure. This class is temporary and a work in progress.
Constructor
AttributeLite
    
        ()
    
    
    
    
    
    
    
    
    
    Methods
_set
    
        
            (
    
    
    
    
        protected
    
    
    
    
    
    
    - 
                    
                        
name - 
                    
                        
value 
Provides setter logic. Used by set.
addAttrs
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        
cfg 
Initializes the attributes for a shape. If an attribute config is passed into the constructor of the host, the initial values will be overwritten.
Parameters:
- 
                    
                        
cfgObjectOptional object containing attributes key value pairs to be set.
 
get
    
        
            (
    
    
        
            Any
        
    
    
    
    
    
    
    
    
    - 
                    
                        
name 
For a given item, returns the value of the property requested, or undefined if not found.
Parameters:
- 
                    
                        
nameStringThe name of the item
 
Returns:
                
                    
                        Any:
                    
                    
        The value of the supplied property.
set
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        
name - 
                    
                        
value 
Sets the value of an attribute.
