a:9:{s:9:"#provides";s:14:"dojox.fx._core";s:9:"#resource";s:11:"fx/_core.js";s:14:"dojox.fx._Line";a:8:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"start";a:2:{s:4:"type";s:13:"Integer|Array";s:7:"summary";s:63:"An Integer (or an Array of integers) to use as a starting point";}s:3:"end";a:2:{s:4:"type";s:13:"Integer|Array";s:7:"summary";s:62:"An Integer (or an Array of integers) to use as an ending point";}}s:6:"source";s:730:" this.start = start; this.end = end; var isArray = dojo.isArray(start), d = (isArray ? [] : end - start); if(isArray){ // multi-dimensional branch dojo.forEach(this.start, function(s, i){ d[i] = this.end[i] - s; }, this); this.getValue = function(/*float*/ n){ var res = []; dojo.forEach(this.start, function(s, i){ res[i] = (d[i] * n) + s; }, this); return res; // Array } }else{ // single value branch, document here for both branches: this.getValue = function(/*float*/ n){ // summary: Returns the point on the line, or an array of points // n: a floating point number greater than 0 and less than 1 // returns: Mixed return (d * n) + this.start; // Decimal } }";s:7:"summary";s:53:"a custom _Line to accomodate multi-dimensional values";s:11:"description";s:475:"a normal dojo._Line is the curve, and does Line(start,end) for propertyAnimation. as we make more complicatied animations, we realize some properties can have 2, or 4 values relevant (x,y) or (t,l,r,b) for example this function provides support for those Lines, and is ported directly from 0.4 this is a lot of extra code for something so seldom used, so we'll put it here as and optional core addition. you can create a new line, and use it during onAnimate as you see fit.";s:7:"returns";s:13:"Array|Decimal";s:8:"examples";a:2:{i:0;s:25:"see dojox.fx.smoothScroll";i:1;s:275:" // this is 10 .. 100 and 50 .. 500 var curve = new dojox.fx._Line([10,50],[100,500]); // dojo._Animation.onAnimate is called at every step of the animation // to define current values. this _Line returns an array // at each step. arguments[0] and [1] in this example.";}s:9:"classlike";b:1;}s:20:"dojox.fx._Line.start";a:3:{s:8:"instance";s:14:"dojox.fx._Line";s:4:"type";s:13:"Integer|Array";s:7:"summary";s:63:"An Integer (or an Array of integers) to use as a starting point";}s:18:"dojox.fx._Line.end";a:3:{s:8:"instance";s:14:"dojox.fx._Line";s:4:"type";s:13:"Integer|Array";s:7:"summary";s:62:"An Integer (or an Array of integers) to use as an ending point";}s:23:"dojox.fx._Line.getValue";a:7:{s:8:"instance";s:14:"dojox.fx._Line";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:4:"type";s:5:"float";s:7:"summary";s:54:"a floating point number greater than 0 and less than 1";}}s:6:"source";s:42:" return (d * n) + this.start; // Decimal";s:7:"returns";s:7:"Decimal";s:7:"summary";s:52:"Returns the point on the line, or an array of points";s:14:"return_summary";s:5:"Mixed";}s:14:"dojox.fx._core";a:3:{s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:8:"dojox.fx";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}