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.
AttributeLite_setname
value
Provides setter logic. Used by set.
addAttrscfg
Initializes the attributes for a shape. If an attribute config is passed into the constructor of the host, the initial values will be overwritten.
cfg
Object
Optional object containing attributes key value pairs to be set.
getname
For a given item, returns the value of the property requested, or undefined if not found.
name
String
The name of the item
setname
value
Sets the value of an attribute.