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
e403eed5
authored
Nov 15, 2011
by
Dmitry Baranovskiy
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #430 from rzurad/nsdocfix
Updating documentation for removal of namespaced plugins in 2.0
parents
0c722d58
34793948
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
raphael.core.js
+4
-3
No files found.
raphael.core.js
View file @
e403eed5
...
@@ -346,9 +346,10 @@
...
@@ -346,9 +346,10 @@
**
**
* You can add your own method to the canvas. For example if you want to draw a pie chart,
* You can add your own method to the canvas. For example if you want to draw a pie chart,
* you can create your own pie chart function and ship it as a Raphaël plugin. To do this
* you can create your own pie chart function and ship it as a Raphaël plugin. To do this
* you need to extend the `Raphael.fn` object. Please note that you can create your own namespaces
* you need to extend the `Raphael.fn` object. You should modify the `fn` object before a
* inside the `fn` object — methods will be run in the context of canvas anyway. You should alter
* Raphaël instance is created, otherwise it will take no effect. Please note that the
* the `fn` object before a Raphaël instance is created, otherwise it will take no effect.
* ability for namespaced plugins was removed in Raphael 2.0. It is up to the plugin to
* ensure any namespacing ensures proper context.
> Usage
> Usage
| Raphael.fn.arrow = function (x1, y1, x2, y2, size) {
| Raphael.fn.arrow = function (x1, y1, x2, y2, size) {
| return this.path( ... );
| return this.path( ... );
...
...
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