In Raphael.js documentation of official website, there are ma开发者_运维技巧ny parameters used, like cx, ox, rx, but what are the definitions for these parameters, can someone explain to me what are they represented for?
Where can I find the definitions for these parameters?
They are listed right there in the documentaiton you linked:
rx- Horisontal radiuscx- X coordinate of the origin of rotation
ox is just a variable they use to store data.
- CX - the x-axis coordinate of the center of the circle, or ellipse
- CY -the y-axis coordinate of the center of the circle, or ellipse
- RX - horisontal radius of the ellipse
- RY - vertical radius of the ellipse
Take a look here: Raphael Documentation - Element.attr. The parameter descriptions you are looking for are explained there.
So cx denotes the center x coordinate while rx defines the horizontal (x-axis) radius of an ellipse or circle. Same applies for vertical direction with y.
加载中,请稍侯......
精彩评论