Base.js 800 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dojox.charting.plot3d.Base"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dojox.charting.plot3d.Base"] = true;
  8. dojo.provide("dojox.charting.plot3d.Base");
  9. dojo.require("dojox.charting.Chart3D");
  10. dojo.declare("dojox.charting.plot3d.Base", null, {
  11. constructor: function(width, height, kwArgs){
  12. this.width = width;
  13. this.height = height;
  14. },
  15. setData: function(data){
  16. this.data = data ? data : [];
  17. return this;
  18. },
  19. getDepth: function(){
  20. return this.depth;
  21. },
  22. generate: function(chart, creator){
  23. }
  24. });
  25. }