Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
殷洪(管理员)
/
raphael
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a4e6c39
authored
Jan 08, 2009
by
Ben Askins
Committed by
Dmitry Baranovskiy
Jan 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README - fixed list rendering
Signed-off-by: Dmitry Baranovskiy <dmitry.baranovskiy@gmail.com>
parent
5b35e000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
80 deletions
+80
-80
README.markdown
+80
-80
No files found.
README.markdown
View file @
5a4e6c39
...
@@ -68,8 +68,8 @@ Rotates element by given degree around its center.
...
@@ -68,8 +68,8 @@ Rotates element by given degree around its center.
##### Parameters
##### Parameters
1.
degree number Degree of rotation (0 – 360°)
1.
degree number Degree of rotation (0 – 360°)
2.
isAbsolute boolean
[
optional
]
Will rotation be relative or absolute
2.
isAbsolute boolean
[
optional
]
Will rotation be relative or absolute
##### Usage
##### Usage
...
@@ -82,8 +82,8 @@ Moves element around the canvas by given dimensions.
...
@@ -82,8 +82,8 @@ Moves element around the canvas by given dimensions.
##### Parameters
##### Parameters
1.
dx number Pixels of translation by X
1.
dx number Pixels of translation by X
2.
dy number Pixels of translation by Y
2.
dy number Pixels of translation by Y
##### Usage
##### Usage
...
@@ -96,8 +96,8 @@ Scales element by given amount of times.
...
@@ -96,8 +96,8 @@ Scales element by given amount of times.
##### Parameters
##### Parameters
1.
Xtimes number
1.
Xtimes number
2.
Ytimes number
2.
Ytimes number
##### Usage
##### Usage
...
@@ -110,43 +110,43 @@ Sets attributes of elements.
...
@@ -110,43 +110,43 @@ Sets attributes of elements.
##### Parameters
##### Parameters
1.
params object
1.
params object
or
or
1.
attributeName string
1.
attributeName string
2.
value string
2.
value string
###### Possible parameters
###### Possible parameters
* cx number
*
cx number
* cy number
*
cy number
* dasharray string [“-”, “.”, “-.”, “-..”, “. ”, “- ”, “--”, “- .”, “--.”, “--..”]
*
dasharray string
[
“-”, “.”, “-.”, “-..”, “. ”, “- ”, “--”, “- .”, “--.”, “--..”
]
* fill colour
*
fill colour
* fill-opacity number
*
fill-opacity number
* font string
*
font string
* font-family string
*
font-family string
* font-size number
*
font-size number
* font-weight string
*
font-weight string
* gradient object
*
gradient object
* height number
*
height number
* opacity number
*
opacity number
* path pathString
*
path pathString
* r number
*
r number
* rotation number
*
rotation number
* rx number
*
rx number
* ry number
*
ry number
* scale CSV
*
scale CSV
* stroke colour
*
stroke colour
* stroke-linecap string [“butt”, “square”, “round”, “miter”]
*
stroke-linecap string
[
“butt”, “square”, “round”, “miter”
]
* stroke-linejoin string [“butt”, “square”, “round”, “miter”]
*
stroke-linejoin string
[
“butt”, “square”, “round”, “miter”
]
* stroke-miterlimit number
*
stroke-miterlimit number
* stroke-opacity number
*
stroke-opacity number
* stroke-width number
*
stroke-width number
* translation CSV
*
translation CSV
* width number
*
width number
* x number
*
x number
* y number
*
y number
##### Usage
##### Usage
...
@@ -160,9 +160,9 @@ Linearly changes attribute from current to specified in given amount of millisec
...
@@ -160,9 +160,9 @@ Linearly changes attribute from current to specified in given amount of millisec
##### Parameters
##### Parameters
1.
newAttrs object
1.
newAttrs object
2.
ms number
2.
ms number
3.
callback function
[
optional
]
3.
callback function
[
optional
]
##### Usage
##### Usage
...
@@ -204,9 +204,9 @@ Creates circle.
...
@@ -204,9 +204,9 @@ Creates circle.
##### Parameters
##### Parameters
1.
x number X coordinate of the centre
1.
x number X coordinate of the centre
2.
y number Y coordinate of the centre
2.
y number Y coordinate of the centre
3.
r number radius
3.
r number radius
##### Usage
##### Usage
...
@@ -218,11 +218,11 @@ Creates rectangle.
...
@@ -218,11 +218,11 @@ Creates rectangle.
##### Parameters
##### Parameters
1.
x number X coordinate of top left corner
1.
x number X coordinate of top left corner
2.
y number Y coordinate of top left corner
2.
y number Y coordinate of top left corner
3.
width number
3.
width number
4.
height number
4.
height number
5.
r number
[
optional
]
radius for rounded corners, default is 0
5.
r number
[
optional
]
radius for rounded corners, default is 0
##### Usage
##### Usage
...
@@ -237,10 +237,10 @@ Creates an ellipse.
...
@@ -237,10 +237,10 @@ Creates an ellipse.
##### Parameters
##### Parameters
1.
x number X coordinate of the centre
1.
x number X coordinate of the centre
2.
y number X coordinate of the centre
2.
y number X coordinate of the centre
3.
rx number Horisontal radius
3.
rx number Horisontal radius
4.
ry number Vertical radius
4.
ry number Vertical radius
##### Usage
##### Usage
...
@@ -252,11 +252,11 @@ Embeds an image in SVG/VML area.
...
@@ -252,11 +252,11 @@ Embeds an image in SVG/VML area.
##### Parameters
##### Parameters
1.
src string
1.
src string
2.
x number
2.
x number
3.
y number
3.
y number
4.
width number
4.
width number
5.
height number
5.
height number
##### Usage
##### Usage
...
@@ -268,8 +268,8 @@ Initialise path drawing. In general case this function returns empty path object
...
@@ -268,8 +268,8 @@ Initialise path drawing. In general case this function returns empty path object
##### Parameters
##### Parameters
1.
params object Similar to object for attr method
1.
params object Similar to object for attr method
2.
pathString string
[
optional
]
path in SVG path string format. See SVG documentation.
2.
pathString string
[
optional
]
path in SVG path string format. See SVG documentation.
##### Usage
##### Usage
...
@@ -301,8 +301,8 @@ Moves drawing point to given coordinates.
...
@@ -301,8 +301,8 @@ Moves drawing point to given coordinates.
##### Parameters
##### Parameters
1.
x number
1.
x number
2.
y number
2.
y number
##### Usage
##### Usage
...
@@ -314,8 +314,8 @@ Draws straight line to given coordinates.
...
@@ -314,8 +314,8 @@ Draws straight line to given coordinates.
##### Parameters
##### Parameters
1.
x number
1.
x number
2.
y number
2.
y number
##### Usage
##### Usage
...
@@ -327,9 +327,9 @@ Draws curved line to given coordinates. Line will have horizontal anchors on sta
...
@@ -327,9 +327,9 @@ Draws curved line to given coordinates. Line will have horizontal anchors on sta
##### Parameters
##### Parameters
1.
x number
1.
x number
2.
y number
2.
y number
3.
width number
3.
width number
##### Usage
##### Usage
...
@@ -341,12 +341,12 @@ Draws bicubic curve to given coordinates.
...
@@ -341,12 +341,12 @@ Draws bicubic curve to given coordinates.
##### Parameters
##### Parameters
1.
x1 number
1.
x1 number
2.
y1 number
2.
y1 number
3.
x2 number
3.
x2 number
4.
y2 number
4.
y2 number
5.
x3 number
5.
x3 number
6.
y3 number
6.
y3 number
##### Usage
##### Usage
...
@@ -358,10 +358,10 @@ Draws quadratic curve to given coordinates.
...
@@ -358,10 +358,10 @@ Draws quadratic curve to given coordinates.
##### Parameters
##### Parameters
1.
x1 number
1.
x1 number
2.
y1 number
2.
y1 number
3.
x2 number
3.
x2 number
4.
y2 number
4.
y2 number
##### Usage
##### Usage
...
@@ -373,8 +373,8 @@ Draws quarter of circle form current point.
...
@@ -373,8 +373,8 @@ Draws quarter of circle form current point.
##### Parameters
##### Parameters
1.
r number
1.
r number
2.
dir string two letters direction
2.
dir string two letters direction
Possible dir values
Possible dir values
...
@@ -397,9 +397,9 @@ Closes the path.
...
@@ -397,9 +397,9 @@ Closes the path.
##### Usage
##### Usage
var c = paper.path({stroke: "#036"}).moveTo(10, 10).andClose();
var c = paper.path({stroke: "#036"}).moveTo(10, 10).andClose();
# License
#
#
License
http://www.opensource.org/licenses/mit-license.php
http://www.opensource.org/licenses/mit-license.php
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment