File: charts/js/DiamondGroup.js
/**
* Abstract class for creating groups of diamonds with the same styles and dimensions.
*
* @module charts
* @submodule charts-base
* @class GroupDiamond
* @constructor
*/
DiamondGroup = function(cfg)
{
DiamondGroup.superclass.constructor.apply(this, arguments);
};
DiamondGroup.NAME = "diamondGroup";
Y.extend(DiamondGroup, Y.ShapeGroup, {
/**
* Updates the diamond.
*
* @method _draw
* @private
*/
drawShape: function(cfg)
{
this.drawDiamond(cfg.x, cfg.y, cfg.width, cfg.height);
}
});
DiamondGroup.ATTRS = Y.ShapeGroup.ATTRS;
Y.DiamondGroup = DiamondGroup;