Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
raphael
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nhn
raphael
Commits
e403eed5
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
raphael.core.js
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