_base.js 883 B

1234567891011121314151617
  1. define("dojox/gfx3d/_base", ["dojo/_base/lang"],function(lang) {
  2. var gfx3d = lang.getObject("dojox.gfx3d",true);
  3. lang.mixin( gfx3d, {
  4. // summary: defines constants, prototypes, and utility functions
  5. // default objects, which are used to fill in missing parameters
  6. defaultEdges: {type: "edges", style: null, points: []},
  7. defaultTriangles: {type: "triangles", style: null, points: []},
  8. defaultQuads: {type: "quads", style: null, points: []},
  9. defaultOrbit: {type: "orbit", center: {x: 0, y: 0, z: 0}, radius: 50},
  10. defaultPath3d: {type: "path3d", path: []},
  11. defaultPolygon: {type: "polygon", path: []},
  12. defaultCube: {type: "cube", bottom: {x: 0, y: 0, z: 0}, top: {x: 100, y: 100, z: 100}},
  13. defaultCylinder: {type: "cylinder", center: /* center of bottom */ {x: 0, y: 0, z: 0}, height: 100, radius: 50}
  14. });
  15. return gfx3d;
  16. });