From 0c935da0ec7e7c6f888001de1423b6f241043459 Mon Sep 17 00:00:00 2001
From: Dmitry Baranovskiy or
+ Creates array-like object to keep and operate couple of elements at once. Warning: it doesn’t create any elements for itself in the page.
+
- Draws a text string.
+ Draws a text string. If you need line breaks, put “\n” in the string.
Parameters
false
) or is it absolute angle (true
)
+
Usage
var c = paper.circle(10, 10, 10);
c.rotate(45); // rotation is relative
@@ -172,7 +178,7 @@
Possible parameters
Possible parameters
Parameters
Usage
+ var c = paper.image("apple.png", 10, 10, 100, 100);
+ set
+
+ Usage
+ var st = paper.set();
+st.push(paper.circle(10, 10, 5));
+st.push(paper.circle(30, 10, 5));
+st.attr({fill: "red"});
text
Parameters
@@ -509,6 +527,27 @@
var c = paper.path({stroke: "#036"}).moveTo(10, 10).andClose();
+ + If you need to change dimensions of the canvas call this method +
+
+ Should be called before main Raphael method. Sets which window should be used for drawing. Default is the current one. You need to use it if you want to draw inside iframe
+
Raphael
+ Raphael
+ node
+ remove
node
+ hide
remove
+ show
hide
+ rotate
show
+ translate
rotate
+ scale
translate
+ attr
scale
+ animate
attr
+ getBBox
animate
+ toFront
getBBox
+ toBack
toFront
+ circle
toBack
+ rect
circle
+ ellipse
rect
+ image
ellipse
+ set
image
+ text
path
+ path
absolutely
+ absolutely
relatively
+ relatively
moveTo
+ moveTo
lineTo
+ lineTo
cplineTo
+ cplineTo
curveTo
+ curveTo
qcurveTo
+ qcurveTo
addRoundedCorner
+ addRoundedCorner
andClose
+ andClose
setSize
+ setWindow
+ getColor