Class: WSet

WSet

Wrapper for Raphael.js set

Constructor

new WSet()

Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:

Methods

eventRegister(f, names)

setup events for this set
This:
Parameters:
Name Type Description
f function callback. Callback should receive the type of the event.
names object of events to register. supported are: click, mouseover, mouseout, mousemove, mouseup, mousedown.
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:

forEach() → {anything}

wrapper for the Raphael.js method of the same name. Pass anything you want to raphael.
This:
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
anything that Raphael.js returns from this method.
Type
anything

glow(glow_obj) → {set}

make a set glow
This:
Parameters:
Name Type Description
glow_obj object parameters to pass to the Raphael.js glow method.
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
the set of glow objects.
Type
set

initialize(set, wrapper) → {WSet}

This:
Parameters:
Name Type Description
set set the raphael set that this wraps.
wrapper wrapper the raphael wrapper (with paper and all).
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
a new instance of this class.
Type
WSet

push() → {anything}

wrapper for the Raphael.js method of the same name. Pass anything you want to raphael.
This:
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
anything that Raphael.js returns from this method.
Type
anything

remove() → {anything}

wrapper for the Raphael.js method of the same name. Pass anything you want to raphael.
This:
Author:
  • mark.veltzer@gmail.com (Mark Veltzer)
Source:
Returns:
anything that Raphael.js returns from this method.
Type
anything