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
bd74dbaa
Commit
bd74dbaa
authored
Nov 09, 2013
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added couple of fixes, and unused jshintrc
parent
4e025f74
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
16 deletions
+55
-16
.jshintrc
dev/.jshintrc
+10
-0
Gruntfile.js
dev/Gruntfile.js
+10
-2
package.json
dev/package.json
+2
-1
raphael.core.js
dev/raphael.core.js
+5
-4
raphael.svg.js
dev/raphael.svg.js
+9
-0
raphael.vml.js
dev/raphael.vml.js
+1
-1
raphael-min.js
raphael-min.js
+3
-3
raphael.js
raphael.js
+15
-5
No files found.
dev/.jshintrc
0 → 100644
View file @
bd74dbaa
{
"curly": true,
"eqnull": true,
"eqeqeq": true,
"undef": true,
"indent": 4,
"globals": {
"eve": true
}
}
\ No newline at end of file
dev/Gruntfile.js
View file @
bd74dbaa
...
@@ -10,6 +10,13 @@ module.exports = function(grunt) {
...
@@ -10,6 +10,13 @@ module.exports = function(grunt) {
pkg
:
pkg
,
pkg
:
pkg
,
banner
:
grunt
.
file
.
read
(
"copy.js"
).
replace
(
/@VERSION/
,
pkg
.
version
),
banner
:
grunt
.
file
.
read
(
"copy.js"
).
replace
(
/@VERSION/
,
pkg
.
version
),
// Task configuration.
// Task configuration.
jshint
:
{
beforeconcat
:
[
'raphael.core.js'
,
'raphael.svg.js'
,
'raphael.vml.js'
],
afterconcat
:
[
'dist/raphael.js'
],
"options"
:
{
jshintrc
:
'.jshintrc'
}
},
uglify
:
{
uglify
:
{
options
:
{
options
:
{
banner
:
"<%= banner %>"
banner
:
"<%= banner %>"
...
@@ -38,8 +45,9 @@ module.exports = function(grunt) {
...
@@ -38,8 +45,9 @@ module.exports = function(grunt) {
// These plugins provide necessary tasks.
// These plugins provide necessary tasks.
grunt
.
loadNpmTasks
(
"grunt-contrib-uglify"
);
grunt
.
loadNpmTasks
(
"grunt-contrib-uglify"
);
grunt
.
loadNpmTasks
(
'grunt-contrib-jshint'
);
// Special concat/build task to handle Raphael's build requirements
// Special concat/build task to handle Raphael's build requirements
grunt
.
registerMultiTask
(
grunt
.
registerMultiTask
(
"build"
,
"build"
,
"Concatenate source, remove individual closures, embed version"
,
"Concatenate source, remove individual closures, embed version"
,
...
@@ -87,5 +95,5 @@ module.exports = function(grunt) {
...
@@ -87,5 +95,5 @@ module.exports = function(grunt) {
});
});
// Default task.
// Default task.
grunt
.
registerTask
(
"default"
,
[
"build"
,
"uglify"
]);
grunt
.
registerTask
(
"default"
,
[
"build"
,
/*"jshint",*/
"uglify"
]);
//Removed jshint because of too many errors, improving little by little...
};
};
dev/package.json
View file @
bd74dbaa
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
"gitHead"
:
"52bff469f60988f1391e8b3d7cb5349163df8ba1"
,
"gitHead"
:
"52bff469f60988f1391e8b3d7cb5349163df8ba1"
,
"devDependencies"
:
{
"devDependencies"
:
{
"grunt"
:
"~0.4.1"
,
"grunt"
:
"~0.4.1"
,
"grunt-contrib-uglify"
:
"~0.2.0"
"grunt-contrib-uglify"
:
"~0.2.0"
,
"grunt-contrib-jshint"
:
"~0.7.1"
}
}
}
}
dev/raphael.core.js
View file @
bd74dbaa
...
@@ -5382,6 +5382,11 @@
...
@@ -5382,6 +5382,11 @@
| paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();
| paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();
\*/
\*/
R
.
st
=
setproto
;
R
.
st
=
setproto
;
eve
.
on
(
"raphael.DOMload"
,
function
()
{
loaded
=
true
;
});
// Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html
// Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html
(
function
(
doc
,
loaded
,
f
)
{
(
function
(
doc
,
loaded
,
f
)
{
if
(
doc
.
readyState
==
null
&&
doc
.
addEventListener
){
if
(
doc
.
readyState
==
null
&&
doc
.
addEventListener
){
...
@@ -5397,10 +5402,6 @@
...
@@ -5397,10 +5402,6 @@
isLoaded
();
isLoaded
();
})(
document
,
"DOMContentLoaded"
);
})(
document
,
"DOMContentLoaded"
);
eve
.
on
(
"raphael.DOMload"
,
function
()
{
loaded
=
true
;
});
// EXPOSE
// EXPOSE
// SVG and VML are appended just before the EXPOSE line
// SVG and VML are appended just before the EXPOSE line
// Even with AMD, Raphael should be defined globally
// Even with AMD, Raphael should be defined globally
...
...
dev/raphael.svg.js
View file @
bd74dbaa
...
@@ -910,6 +910,12 @@ window.Raphael && window.Raphael.svg && function(R) {
...
@@ -910,6 +910,12 @@ window.Raphael && window.Raphael.svg && function(R) {
this
.
show
();
this
.
show
();
var
hide
=
true
;
var
hide
=
true
;
}
}
var
canvasHidden
=
false
,
containerStyle
=
this
.
paper
.
canvas
.
parentElement
.
style
;
if
(
containerStyle
.
display
==
"none"
){
canvasHidden
=
true
;
containerStyle
.
display
=
""
;
}
var
bbox
=
{};
var
bbox
=
{};
try
{
try
{
bbox
=
this
.
node
.
getBBox
();
bbox
=
this
.
node
.
getBBox
();
...
@@ -917,6 +923,9 @@ window.Raphael && window.Raphael.svg && function(R) {
...
@@ -917,6 +923,9 @@ window.Raphael && window.Raphael.svg && function(R) {
// Firefox 3.0.x plays badly here
// Firefox 3.0.x plays badly here
}
finally
{
}
finally
{
bbox
=
bbox
||
{};
bbox
=
bbox
||
{};
if
(
canvasHidden
){
containerStyle
.
display
=
"none"
;
}
}
}
hide
&&
this
.
hide
();
hide
&&
this
.
hide
();
return
bbox
;
return
bbox
;
...
...
dev/raphael.vml.js
View file @
bd74dbaa
...
@@ -27,7 +27,7 @@ window.Raphael && window.Raphael.vml && function(R) {
...
@@ -27,7 +27,7 @@ window.Raphael && window.Raphael.vml && function(R) {
bites
=
/
([
clmz
])
,
?([^
clmz
]
*
)
/gi
,
bites
=
/
([
clmz
])
,
?([^
clmz
]
*
)
/gi
,
blurregexp
=
/ progid:
\S
+Blur
\([^\)]
+
\)
/g
,
blurregexp
=
/ progid:
\S
+Blur
\([^\)]
+
\)
/g
,
val
=
/-
?[^
,
\s
-
]
+/g
,
val
=
/-
?[^
,
\s
-
]
+/g
,
cssDot
=
"position:absolute;left:0;top:0;width:1px;height:1px"
,
cssDot
=
"position:absolute;left:0;top:0;width:1px;height:1px
;behavior:url(#default#VML)
"
,
zoom
=
21600
,
zoom
=
21600
,
pathTypes
=
{
path
:
1
,
rect
:
1
,
image
:
1
},
pathTypes
=
{
path
:
1
,
rect
:
1
,
image
:
1
},
ovalTypes
=
{
circle
:
1
,
ellipse
:
1
},
ovalTypes
=
{
circle
:
1
,
ellipse
:
1
},
...
...
raphael-min.js
View file @
bd74dbaa
This source diff could not be displayed because it is too large. You can
view the blob
instead.
raphael.js
View file @
bd74dbaa
...
@@ -5761,6 +5761,11 @@
...
@@ -5761,6 +5761,11 @@
| paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();
| paper.set(paper.circle(100, 100, 20), paper.circle(110, 100, 20)).red();
\*/
\*/
R
.
st
=
setproto
;
R
.
st
=
setproto
;
eve
.
on
(
"raphael.DOMload"
,
function
()
{
loaded
=
true
;
});
// Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html
// Firefox <3.6 fix: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html
(
function
(
doc
,
loaded
,
f
)
{
(
function
(
doc
,
loaded
,
f
)
{
if
(
doc
.
readyState
==
null
&&
doc
.
addEventListener
){
if
(
doc
.
readyState
==
null
&&
doc
.
addEventListener
){
...
@@ -5776,10 +5781,6 @@
...
@@ -5776,10 +5781,6 @@
isLoaded
();
isLoaded
();
})(
document
,
"DOMContentLoaded"
);
})(
document
,
"DOMContentLoaded"
);
eve
.
on
(
"raphael.DOMload"
,
function
()
{
loaded
=
true
;
});
// ┌─────────────────────────────────────────────────────────────────────┐ \\
// ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël - JavaScript Vector Library │ \\
// │ Raphaël - JavaScript Vector Library │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\
...
@@ -6695,6 +6696,12 @@
...
@@ -6695,6 +6696,12 @@
this
.
show
();
this
.
show
();
var
hide
=
true
;
var
hide
=
true
;
}
}
var
canvasHidden
=
false
,
containerStyle
=
this
.
paper
.
canvas
.
parentElement
.
style
;
if
(
containerStyle
.
display
==
"none"
){
canvasHidden
=
true
;
containerStyle
.
display
=
""
;
}
var
bbox
=
{};
var
bbox
=
{};
try
{
try
{
bbox
=
this
.
node
.
getBBox
();
bbox
=
this
.
node
.
getBBox
();
...
@@ -6702,6 +6709,9 @@
...
@@ -6702,6 +6709,9 @@
// Firefox 3.0.x plays badly here
// Firefox 3.0.x plays badly here
}
finally
{
}
finally
{
bbox
=
bbox
||
{};
bbox
=
bbox
||
{};
if
(
canvasHidden
){
containerStyle
.
display
=
"none"
;
}
}
}
hide
&&
this
.
hide
();
hide
&&
this
.
hide
();
return
bbox
;
return
bbox
;
...
@@ -7192,7 +7202,7 @@
...
@@ -7192,7 +7202,7 @@
bites
=
/
([
clmz
])
,
?([^
clmz
]
*
)
/gi
,
bites
=
/
([
clmz
])
,
?([^
clmz
]
*
)
/gi
,
blurregexp
=
/ progid:
\S
+Blur
\([^\)]
+
\)
/g
,
blurregexp
=
/ progid:
\S
+Blur
\([^\)]
+
\)
/g
,
val
=
/-
?[^
,
\s
-
]
+/g
,
val
=
/-
?[^
,
\s
-
]
+/g
,
cssDot
=
"position:absolute;left:0;top:0;width:1px;height:1px"
,
cssDot
=
"position:absolute;left:0;top:0;width:1px;height:1px
;behavior:url(#default#VML)
"
,
zoom
=
21600
,
zoom
=
21600
,
pathTypes
=
{
path
:
1
,
rect
:
1
,
image
:
1
},
pathTypes
=
{
path
:
1
,
rect
:
1
,
image
:
1
},
ovalTypes
=
{
circle
:
1
,
ellipse
:
1
},
ovalTypes
=
{
circle
:
1
,
ellipse
:
1
},
...
...
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