Class Index | File Index

Classes


Built-In Namespace _global_

Method Summary
Method Attributes Method Name and Description
 
onDragMove(dx, dy)
Generic function used for draging ojects.
 
Generic function used for draging ojects, see onDragMove
 
Generic function used for draging ojects, see onDragMove
 
SliderCirc(raphael, attrs)
Actual slider element - circ
 
SliderRect(raphael, attrs)
Actual slider element - rect
 
vecTrans(x, y, sin, cos)
Returns [x,y] components of transformated vector
Method Detail
onDragMove(dx, dy)
Generic function used for draging ojects. For each dragable object should be defined function onDragUpdate(dx,dy): e.g. moving only in x direction etc.
Defined in: raphaeltools.src.js.
c = Circle.create(100,59,20);
c.onDragUpdate = function(dx,dy) { c.translate(dx,dy); }
c.drag(onDragMove,onDragStart,onDragStop) // make an object draggable using c.onDragUpdate() function when moving
Parameters:
{float} dx
x increment of dragging
{float} dy
y increment of dragging

onDragStart()
Generic function used for draging ojects, see onDragMove
Defined in: raphaeltools.src.js.

onDragStop()
Generic function used for draging ojects, see onDragMove
Defined in: raphaeltools.src.js.

{Raphael.el} SliderCirc(raphael, attrs)
Actual slider element - circ
Defined in: raphaeltools.src.js.
Parameters:
{Raphael} raphael
raphael instance
{Object} attrs Optional, Default: {}
parameters passed to raphael.circle.attr
Returns:
{Raphael.el} circle object with all methods needed by Slider

{Raphael.el} SliderRect(raphael, attrs)
Actual slider element - rect
Defined in: raphaeltools.src.js.
Parameters:
{Raphael} raphael
raphael instance
{Object} attrs Optional, Default: {}
parameters passed to raphael.rect.attr
Returns:
{Raphael.el} rect object with all methods needed by Slider

{[float|float]} vecTrans(x, y, sin, cos)
Returns [x,y] components of transformated vector
Defined in: raphaeltools.src.js.
Parameters:
{float} x
x component of original vector
{float} y
y component of original vector
{float} sin
sin of angle of rotation
{float} cos
cos of angle of rotation
Returns:
{[float|float]} coordinates of transformated vector

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 12 2012 09:22:03 GMT+0100 (CET)