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
5398c90c
Commit
5398c90c
authored
Aug 02, 2015
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodeps version
parent
d9365a7c
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7922 additions
and
18 deletions
+7922
-18
.gitignore
.gitignore
+0
-4
Gruntfile.js
Gruntfile.js
+15
-2
README.md
README.md
+4
-1
bower.json
bower.json
+0
-4
amdDev.js
dev/amdDev.js
+3
-2
raphaelTest.html
dev/raphaelTest.html
+4
-4
history.md
history.md
+2
-1
raphael-nodeps-min.js
raphael-nodeps-min.js
+12
-0
raphael-nodeps.js
raphael-nodeps.js
+7882
-0
No files found.
.gitignore
View file @
5398c90c
node_modules
neurons
build
raphael.pro-min.js
raphael.pro.js
/.idea
bower_components/
Gruntfile.js
View file @
5398c90c
...
...
@@ -16,7 +16,11 @@ module.exports = function(grunt) {
},
dist
:
{
src
:
"<%= concat.dist.dest %>"
,
dest
:
"raphael-min.js"
dest
:
"<%= pkg.name %>-min.js"
},
nodeps
:
{
src
:
"<%= concat.nodeps.dest %>"
,
dest
:
"<%= pkg.name %>-nodeps-min.js"
}
},
replace
:
{
...
...
@@ -30,7 +34,7 @@ module.exports = function(grunt) {
files
:
[{
expand
:
true
,
flatten
:
true
,
src
:
"<%= concat.dist.dest %>"
,
src
:
[
"<%= concat.dist.dest %>"
,
"<%= concat.nodeps.dest %>"
]
,
dest
:
"./"
}]
}
...
...
@@ -45,6 +49,15 @@ module.exports = function(grunt) {
"dev/raphael.vml.js"
,
"dev/raphael.amd.js"
]
},
nodeps
:
{
dest
:
"<%= pkg.name %>-nodeps.js"
,
src
:
[
"dev/raphael.core.js"
,
"dev/raphael.svg.js"
,
"dev/raphael.vml.js"
,
"dev/raphael.amd.js"
]
}
}
});
...
...
README.m
arkdown
→
README.m
d
View file @
5398c90c
...
...
@@ -12,7 +12,10 @@ You need to have NPM installed to build the library.
## Dependencies
*
[
eve
](
https://github.com/adobe-webplatform/eve
)
## Loading
You have the
`raphael/raphael-min.js`
files that has
`eve`
bundled inside, and
`raphael-nodeps/raphael-nodeps-min.js`
where
`eve`
must be loaded by you first (you can try with the one in the
`dev/`
folder).
## Where to start
Check
[
Raphael-boilerplate
](
https://github.com/tomasAlabes/raphael-boilerplate
)
to see examples of loading.
Raphael can be loaded in a script tag or with AMD:
...
...
bower.json
View file @
5398c90c
...
...
@@ -8,7 +8,6 @@
"requirejs"
:
"~2.1.17"
},
"ignore"
:
[
"eve"
,
"**/.*"
,
"*.html"
,
"*.json"
,
...
...
@@ -16,9 +15,6 @@
"*.md"
,
"copy.js"
,
"Gruntfile.js"
,
"raphael.core.js"
,
"raphael.svg.js"
,
"raphael.vml.js"
,
"reference.js"
]
}
dev/amdDev.js
View file @
5398c90c
...
...
@@ -2,8 +2,9 @@
require
.
config
({
paths
:
{
raphael
:
'../raphael'
/*,
eve: '../bower_components/eve/eve'*/
raphael
:
'../raphael'
//you will need eve if you use the nodeps version
/*eve: '../bower_components/eve/eve'*/
}
});
...
...
dev/raphaelTest.html
View file @
5398c90c
...
...
@@ -7,7 +7,7 @@
<!-- Global use -->
<!-- To work with full version -->
<
script
type=
"text/javascript"
src=
"../raphael.js"
></script
>
<
!--<script type="text/javascript" src="../raphael.js"></script>--
>
<!-- To work with minified version -->
<!--<script type="text/javascript" src="../raphael-min.js"></script>-->
...
...
@@ -20,18 +20,18 @@
<!--<script type="text/javascript" src="raphael.vml.js"></script>-->
<!-- Comment this script tag if you are testing with AMD -->
<script
type=
"text/javascript"
>
<
!--<
script type="text/javascript">
// Initialize container when document is loaded
window.onload = function () {
paper = Raphael(0, 0, 640, 720, "container");
paper.circle(100, 100, 100); //example
};
//Work here, in a separate script file or via command line
</script>
</script>
-->
<!-- Use amdDev.js to work with AMD and Raphael -->
<!-- You need to do a 'bower install -D' first to get requirejs -->
<
!--<script data-main="amdDev" src="../bower_components/requirejs/require.js"></script>--
>
<
script
data-main=
"amdDev"
src=
"../bower_components/requirejs/require.js"
></script
>
</head>
<body>
...
...
history.md
View file @
5398c90c
2.
1.5
• WIP
2.
2.0
• WIP
------------------
*
Defined nodeps version, and changed how raphael is loaded
*
Set stop-opacity in gradient defs
*
Fixed rounding issue in RGB formatter
...
...
raphael-nodeps-min.js
0 → 100644
View file @
5398c90c
This diff is collapsed.
Click to expand it.
raphael-nodeps.js
0 → 100644
View file @
5398c90c
This diff is collapsed.
Click to expand it.
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