dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
30 lines (28 loc) • 666 B
JavaScript
define(["dojo/_base/declare", "dojo/has"],
function(declare, has) {
var Base = declare("dojox.charting.plot3d.Base", null, {
constructor: function(width, height, kwArgs){
this.width = width;
this.height = height;
},
setData: function(data){
this.data = data ? data : [];
return this;
},
getDepth: function(){
return this.depth;
},
generate: function(chart, creator){
}
});
if(has("dojo-bidi")){
Base.extend({
_checkOrientation: function(chart){
if(chart.isMirrored){
chart.applyMirroring(chart.view, {width: this.width, height: this.height}, {l: 0, r: 0, t: 0, b: 0});
}
}
});
}
return Base;
});