_base.js 1.1 KB

1234567891011121314151617181920212223242526
  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.gfx3d._base"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dojox.gfx3d._base"] = true;
  8. dojo.provide("dojox.gfx3d._base");
  9. dojo.mixin(dojox.gfx3d, {
  10. // summary: defines constants, prototypes, and utility functions
  11. // default objects, which are used to fill in missing parameters
  12. defaultEdges: {type: "edges", style: null, points: []},
  13. defaultTriangles: {type: "triangles", style: null, points: []},
  14. defaultQuads: {type: "quads", style: null, points: []},
  15. defaultOrbit: {type: "orbit", center: {x: 0, y: 0, z: 0}, radius: 50},
  16. defaultPath3d: {type: "path3d", path: []},
  17. defaultPolygon: {type: "polygon", path: []},
  18. defaultCube: {type: "cube", bottom: {x: 0, y: 0, z: 0}, top: {x: 100, y: 100, z: 100}},
  19. defaultCylinder: {type: "cylinder", center: /* center of bottom */ {x: 0, y: 0, z: 0}, height: 100, radius: 50}
  20. });
  21. }