123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- define("dojox/charting/action2d/PlotAction", ["dojo/_base/connect", "dojo/_base/declare", "./Base", "dojo/fx/easing", "dojox/lang/functional",
- "dojox/lang/functional/object"],
- function(hub, declare, Base, dfe, df, dlfo){
-
-
- var DEFAULT_DURATION = 400,
- DEFAULT_EASING = dfe.backOut;
- return declare("dojox.charting.action2d.PlotAction", Base, {
-
-
- overOutEvents: {onmouseover: 1, onmouseout: 1},
- constructor: function(chart, plot, kwargs){
-
-
-
-
-
-
-
-
- this.anim = {};
-
- if(!kwargs){ kwargs = {}; }
- this.duration = kwargs.duration ? kwargs.duration : DEFAULT_DURATION;
- this.easing = kwargs.easing ? kwargs.easing : DEFAULT_EASING;
- },
- connect: function(){
-
-
- this.handle = this.chart.connectToPlot(this.plot.name, this, "process");
- },
- disconnect: function(){
-
-
- if(this.handle){
- hub.disconnect(this.handle);
- this.handle = null;
- }
- },
- reset: function(){
-
-
- },
- destroy: function(){
-
-
- this.inherited(arguments);
- df.forIn(this.anim, function(o){
- df.forIn(o, function(anim){
- anim.action.stop(true);
- });
- });
- this.anim = {};
- }
- });
- });
|