source: Dev/branches/rest-dojo-ui/client/dojox/gfx3d/_base.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 862 bytes
Line 
1define(["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               
6                // default objects, which are used to fill in missing parameters
7                defaultEdges:     {type: "edges",     style: null, points: []},
8                defaultTriangles: {type: "triangles", style: null, points: []},
9                defaultQuads:     {type: "quads",     style: null, points: []},
10                defaultOrbit:     {type: "orbit",     center: {x: 0, y: 0, z: 0}, radius: 50},
11                defaultPath3d:    {type: "path3d",    path: []},
12                defaultPolygon:   {type: "polygon",   path: []},
13                defaultCube:      {type: "cube",      bottom: {x: 0, y: 0, z: 0}, top: {x: 100, y: 100, z: 100}},
14                defaultCylinder:  {type: "cylinder",  center: /* center of bottom */ {x: 0, y: 0, z: 0}, height: 100, radius: 50}
15        });
16        return gfx3d;
17});
Note: See TracBrowser for help on using the repository browser.