Class: Circle

Circle

represents circle

new Circle(x=, y=, r=, attrs)

Circle (for easier modifying) [Raphael.circle]
This:
Parameters:
Name Type Argument Description
x= number <optional>
0.] x coordinate of circle center
y= number <optional>
0.] y coordinate of circle center
r= number <optional>
10.] circle radius
attrs Object <optional>
attributes passed to Raphael.path(.attr(attrs)
Properties:
Name Type Description
x number x coordinate of circle center
y number y coordinate of circle center
r number radius of the circle
copies Array.<Raphael.fn.Circle> array of copies of receiver
copiesShifts Array.<Array.<number>> array of 2 element arrays, shifts of copies of receiver
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 864

Extends

  • Raphael.fn

Methods

copy(shifts)

Copy of receiver
Parameters:
Name Type Description
shifts Array.<Array.<number>> array of 2 element array, shifts of copies
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 946

makeCopy() → {Raphael.fn.Circle}

Returns copy of receiver
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 957
Returns:
copy of receiver
Type
Raphael.fn.Circle

setR(r)

Sets radius of receiver
Parameters:
Name Type Description
r number new radius
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 877

setX(x)

Sets x coordinate of receiver
Parameters:
Name Type Description
x number new x coordinate
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 906

setXY(x, y)

Sets new coordinates of receiver
Parameters:
Name Type Description
x number new x coordinate
y number new y coordinate
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 897

setXYR(x, y)

Sets new coordinates of receiver
Parameters:
Name Type Description
x number new x coordinate
y number new y coordinate
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 886

setY(y)

Sets y coordinate of receiver
Parameters:
Name Type Description
y number new y coordinate
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 914

translate(dx, dy)

Translate receiver
Parameters:
Name Type Description
dx number x distance of translation
dy number y distance of translation
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 923

translateX(dx)

Translate along x axis of receiver
Parameters:
Name Type Description
dx number x distance of translation
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 932

translateY(dy)

Translate along y axis of receiver
Parameters:
Name Type Description
dy number y distance of translation
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 939

update()

Update
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 966