API Docs for: 3.17.2
Show:

File: graphics/js/DiamondGroup.js

  1. /**
  2. * Abstract class for creating groups of diamonds with the same styles and dimensions.
  3. *
  4. * @class GroupDiamond
  5. * @constructor
  6. * @submodule graphics-group
  7. */
  8. DiamondGroup = function()
  9. {
  10. DiamondGroup.superclass.constructor.apply(this, arguments);
  11. };
  12.  
  13. DiamondGroup.NAME = "diamondGroup";
  14.  
  15. Y.extend(DiamondGroup, Y.ShapeGroup, {
  16. /**
  17. * Updates the diamond.
  18. *
  19. * @method _draw
  20. * @private
  21. */
  22. drawShape: function(cfg)
  23. {
  24. this.drawDiamond(cfg.x, cfg.y, cfg.width, cfg.height);
  25. }
  26. });
  27.  
  28. DiamondGroup.ATTRS = Y.ShapeGroup.ATTRS;
  29. Y.DiamondGroup = DiamondGroup;
  30.