ShapeGroup.js revision 2f9140ce9f71cf8cccd9d8eebe770f6825e36f5b
/**
* The Charts widget provides an api for displaying data
* graphically.
*
* @module charts
* @main charts
*/
/**
* Abstract class for creating groups of shapes with the same styles and dimensions.
*
* @module graphics
* @class ShapeGroup
* @constructor
*/
ShapeGroup = function(cfg)
{
};
/**
* Updates the shape.
*
* @method _draw
* @private
*/
_draw: function()
{
x,
y,
xRad,
yRad,
i = 0,
len,
attrs = [],
{
this.clear();
for(; i < len; ++i)
{
x = xvalues[i];
y = yvalues[i];
{
this.drawShape({
x: x,
y: y,
});
this.closePath();
attrs[i] = {
shape: "circle"
};
}
}
this._closePath();
}
},
/**
* Parses and array of lengths into radii
*
* @method _getRadiusCollection
* @param {Array} val Array of lengths
* @return Array
* @private
*/
_getRadiusCollection: function(val)
{
var i = 0,
radii = [];
for(; i < len; ++i)
{
}
return radii;
}
});
dimensions: {
getter: function()
{
var dimensions = this._dimensions,
{
return dimensions;
}
else
{
return {
};
}
},
{
this._dimensions = val;
return val;
}
},
xvalues: {
getter: function()
{
return this._xvalues;
},
{
}
},
yvalues: {
getter: function()
{
return this._yvalues;
},
{
}
}
});
Y.ShapeGroup = ShapeGroup;