root / trunk / web / dojo / dojox / charting / action2d / Base.js
History | View | Annotate | Download (1.14 KB)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, 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 |
|
7 |
|
8 |
if(!dojo._hasResource["dojox.charting.action2d.Base"]){ |
9 |
dojo._hasResource["dojox.charting.action2d.Base"]=true; |
10 |
dojo.provide("dojox.charting.action2d.Base");
|
11 |
dojo.require("dojo.fx.easing");
|
12 |
dojo.require("dojox.lang.functional.object");
|
13 |
dojo.require("dojox.gfx.fx");
|
14 |
(function(){
|
15 |
var _1=400,_2=dojo.fx.easing.backOut,df=dojox.lang.functional; |
16 |
dojo.declare("dojox.charting.action2d.Base",null,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_3,_4,_5){ |
17 |
this.chart=_3;
|
18 |
this.plot=_4||"default"; |
19 |
this.anim={};
|
20 |
if(!_5){
|
21 |
_5={}; |
22 |
} |
23 |
this.duration=_5.duration?_5.duration:_1;
|
24 |
this.easing=_5.easing?_5.easing:_2;
|
25 |
},connect:function(){ |
26 |
this.handle=this.chart.connectToPlot(this.plot,this,"process"); |
27 |
},disconnect:function(){ |
28 |
if(this.handle){ |
29 |
dojo.disconnect(this.handle);
|
30 |
this.handle=null; |
31 |
} |
32 |
},reset:function(){ |
33 |
},destroy:function(){ |
34 |
this.disconnect();
|
35 |
df.forIn(this.anim,function(o){ |
36 |
df.forIn(o,function(_6){
|
37 |
_6.action.stop(true);
|
38 |
}); |
39 |
}); |
40 |
this.anim={};
|
41 |
}}); |
42 |
})(); |
43 |
} |