source: [view]
dojo.provide("dojox.charting.Chart3D");
dojo.require("dojox.gfx3d");
(function(){
var observerVector = {x: 0, y: 0, z: 1}, v = dojox.gfx3d.vector, n = dojox.gfx.normalizedLength;
dojo.declare("dojox.charting.Chart3D", null, {
constructor: function(node, lights, camera, theme){
// setup a view
this.node = dojo.byId(node);
this.surface = dojox.gfx.createSurface(this.node, n(this.node.style.width), n(this.node.style.height));
this.view = this.surface.createViewport();
this.view.setLights(lights.lights, lights.ambient, lights.specular);
this.view.setCameraTransform(camera);
this.theme = theme;
// initialize internal variables
this.walls = [];
this.plots = [];