dojox/fx/_core (version 1.10)

Summary

a custom _Line to accommodate multi-dimensional values

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.

Usage

_core(start,end);
Parameter Type Description
start Integer | Array

An Integer (or an Array of integers) to use as a starting point

end Integer | Array

An Integer (or an Array of integers) to use as an ending point

See the dojox/fx/_core reference documentation for more information.

Examples

Example 1

see dojox.fx.smoothScroll

Example 2

// 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.

Property Summary

  • endAn Integer (or an Array of integers) to use as an ending point
  • startAn Integer (or an Array of integers) to use as a starting point

Method Summary

  • getValue(n) Returns the point on the line, or an array of points

Properties

end
Defined by: dojox/fx/_core

An Integer (or an Array of integers) to use as an ending point

start
Defined by: dojox/fx/_core

An Integer (or an Array of integers) to use as a starting point

Methods

getValue(n)
Defined by dojox/fx/_core

Returns the point on the line, or an array of points

Parameter Type Description
n float

a floating point number greater than 0 and less than 1

Returns:Mixed
Error in the documentation? Can’t find what you are looking for? Let us know!