From be44adf9f7c0174d12c4f4050bc2009bbfd55d9d Mon Sep 17 00:00:00 2001
From: Dmitry Baranovskiy
+ Removes element from the DOM. You canât use it after this method call.
+
+ Makes element invisible.
+
+ Makes element visible.
+
- Rotates the element by the given degree from either its 0,0 corner or its center point.
+ Rotates the element by the given degree from its center point.
or or Please refer to the SVG specification for an explanation of these parameters.Usage
+ var c = paper.circle(10, 10, 10); // draw a circle at coordinate 10,10 with radius of 10
c.node.onclick = function () { c.attr("fill", "red"); };
+ remove
+
+ Usage
+
+ var c = paper.circle(10, 10, 10);
+c.remove();
+ hide
+
+ Usage
+
+ var c = paper.circle(10, 10, 10);
+c.hide();
+ show
+
+ Usage
+ var c = paper.circle(10, 10, 10);
+c.show();
rotate
Parameters
true
to rotate the element around its center point. The default, false
, rotates the element from its 0,0 coordinate.false
) or is it absolute angle (true
)Usage
var c = paper.circle(10, 10, 10);
@@ -126,6 +153,14 @@ c.scale(.5, .75); // makes the circle half as wide, and 75% as high
+
+
+
Possible parameters
@@ -474,6 +509,24 @@ var c = paper.path({stroke: "#036"}).moveTo(10, 10).lineTo(50, 50);
var c = paper.path({stroke: "#036"}).moveTo(10, 10).andClose();
+ + Returns a colour object for the next colour in spectrum +
+var c = paper.path({stroke: Raphael.getColor()}, "M10,10L100,100")
+ + Resets getColor function, so it will start from the beginning +
node
remove
+ hide
+ show
+ rotate
attr
animate
+ animate
getBBox
@@ -557,6 +619,12 @@ var c = paper.path({stroke: "#036"}).moveTo(10, 10).lineTo(50, 50);
getColor
+ getColor.reset
+