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
81e83b95
Commit
81e83b95
authored
Apr 24, 2015
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing webkit workaround after consulting Dmitry
parent
e4b8c5a9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
52 deletions
+10
-52
raphael.core.js
dev/raphael.core.js
+0
-21
raphael.svg.js
dev/raphael.svg.js
+2
-3
raphael-min.js
raphael-min.js
+5
-3
raphael.js
raphael.js
+3
-25
No files found.
dev/raphael.core.js
View file @
81e83b95
...
@@ -2702,26 +2702,6 @@
...
@@ -2702,26 +2702,6 @@
};
};
})(
Matrix
.
prototype
);
})(
Matrix
.
prototype
);
// WebKit rendering bug workaround method
var
version
=
navigator
.
userAgent
.
match
(
/Version
\/(
.*
?)\s
/
)
||
navigator
.
userAgent
.
match
(
/Chrome
\/(\d
+
)
/
);
if
((
navigator
.
vendor
==
"Apple Computer, Inc."
)
&&
(
version
&&
version
[
1
]
<
4
||
navigator
.
platform
.
slice
(
0
,
2
)
==
"iP"
)
||
(
navigator
.
vendor
==
"Google Inc."
&&
version
&&
version
[
1
]
<
8
))
{
/*\
* Paper.safari
[ method ]
**
* There is an inconvenient rendering bug in Safari (WebKit):
* sometimes the rendering should be forced.
* This method should help with dealing with this bug.
\*/
paperproto
.
safari
=
function
()
{
var
rect
=
this
.
rect
(
-
99
,
-
99
,
this
.
width
+
99
,
this
.
height
+
99
).
attr
({
stroke
:
"none"
});
setTimeout
(
function
()
{
rect
.
remove
();});
};
}
else
{
paperproto
.
safari
=
fun
;
}
var
preventDefault
=
function
()
{
var
preventDefault
=
function
()
{
this
.
returnValue
=
false
;
this
.
returnValue
=
false
;
},
},
...
@@ -4248,7 +4228,6 @@
...
@@ -4248,7 +4228,6 @@
}
}
}
}
}
}
R
.
svg
&&
that
&&
that
.
paper
&&
that
.
paper
.
safari
();
animationElements
.
length
&&
requestAnimFrame
(
animation
);
animationElements
.
length
&&
requestAnimFrame
(
animation
);
},
},
upto255
=
function
(
color
)
{
upto255
=
function
(
color
)
{
...
...
dev/raphael.svg.js
View file @
81e83b95
...
@@ -490,7 +490,6 @@ window.Raphael && window.Raphael.svg && function(R) {
...
@@ -490,7 +490,6 @@ window.Raphael && window.Raphael.svg && function(R) {
h
=
this
.
offsetHeight
;
h
=
this
.
offsetHeight
;
$
(
el
,
{
width
:
w
,
height
:
h
});
$
(
el
,
{
width
:
w
,
height
:
h
});
$
(
ig
,
{
width
:
w
,
height
:
h
});
$
(
ig
,
{
width
:
w
,
height
:
h
});
o
.
paper
.
safari
();
});
});
})(
el
);
})(
el
);
o
.
paper
.
defs
.
appendChild
(
el
);
o
.
paper
.
defs
.
appendChild
(
el
);
...
@@ -865,7 +864,7 @@ window.Raphael && window.Raphael.svg && function(R) {
...
@@ -865,7 +864,7 @@ window.Raphael && window.Raphael.svg && function(R) {
= (object) @Element
= (object) @Element
\*/
\*/
elproto
.
hide
=
function
()
{
elproto
.
hide
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
"none"
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
"none"
;
return
this
;
return
this
;
};
};
/*\
/*\
...
@@ -876,7 +875,7 @@ window.Raphael && window.Raphael.svg && function(R) {
...
@@ -876,7 +875,7 @@ window.Raphael && window.Raphael.svg && function(R) {
= (object) @Element
= (object) @Element
\*/
\*/
elproto
.
show
=
function
()
{
elproto
.
show
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
""
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
""
;
return
this
;
return
this
;
};
};
/*\
/*\
...
...
raphael-min.js
View file @
81e83b95
This source diff could not be displayed because it is too large. You can
view the blob
instead.
raphael.js
View file @
81e83b95
...
@@ -376,7 +376,7 @@
...
@@ -376,7 +376,7 @@
return
"You are running Eve "
+
version
;
return
"You are running Eve "
+
version
;
};
};
(
typeof
module
!=
"undefined"
&&
module
.
exports
)
?
(
module
.
exports
=
eve
)
:
(
typeof
define
!=
"undefined"
?
(
define
(
"eve"
,
[],
function
()
{
return
eve
;
}))
:
(
glob
.
eve
=
eve
));
(
typeof
module
!=
"undefined"
&&
module
.
exports
)
?
(
module
.
exports
=
eve
)
:
(
typeof
define
!=
"undefined"
?
(
define
(
"eve"
,
[],
function
()
{
return
eve
;
}))
:
(
glob
.
eve
=
eve
));
})(
window
||
this
);
})(
this
);
// ┌─────────────────────────────────────────────────────────────────────┐ \\
// ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ "Raphaël 2.1.2" - JavaScript Vector Library │ \\
// │ "Raphaël 2.1.2" - JavaScript Vector Library │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\
...
@@ -3081,26 +3081,6 @@
...
@@ -3081,26 +3081,6 @@
};
};
})(
Matrix
.
prototype
);
})(
Matrix
.
prototype
);
// WebKit rendering bug workaround method
var
version
=
navigator
.
userAgent
.
match
(
/Version
\/(
.*
?)\s
/
)
||
navigator
.
userAgent
.
match
(
/Chrome
\/(\d
+
)
/
);
if
((
navigator
.
vendor
==
"Apple Computer, Inc."
)
&&
(
version
&&
version
[
1
]
<
4
||
navigator
.
platform
.
slice
(
0
,
2
)
==
"iP"
)
||
(
navigator
.
vendor
==
"Google Inc."
&&
version
&&
version
[
1
]
<
8
))
{
/*\
* Paper.safari
[ method ]
**
* There is an inconvenient rendering bug in Safari (WebKit):
* sometimes the rendering should be forced.
* This method should help with dealing with this bug.
\*/
paperproto
.
safari
=
function
()
{
var
rect
=
this
.
rect
(
-
99
,
-
99
,
this
.
width
+
99
,
this
.
height
+
99
).
attr
({
stroke
:
"none"
});
setTimeout
(
function
()
{
rect
.
remove
();});
};
}
else
{
paperproto
.
safari
=
fun
;
}
var
preventDefault
=
function
()
{
var
preventDefault
=
function
()
{
this
.
returnValue
=
false
;
this
.
returnValue
=
false
;
},
},
...
@@ -4627,7 +4607,6 @@
...
@@ -4627,7 +4607,6 @@
}
}
}
}
}
}
R
.
svg
&&
that
&&
that
.
paper
&&
that
.
paper
.
safari
();
animationElements
.
length
&&
requestAnimFrame
(
animation
);
animationElements
.
length
&&
requestAnimFrame
(
animation
);
},
},
upto255
=
function
(
color
)
{
upto255
=
function
(
color
)
{
...
@@ -6305,7 +6284,6 @@
...
@@ -6305,7 +6284,6 @@
h
=
this
.
offsetHeight
;
h
=
this
.
offsetHeight
;
$
(
el
,
{
width
:
w
,
height
:
h
});
$
(
el
,
{
width
:
w
,
height
:
h
});
$
(
ig
,
{
width
:
w
,
height
:
h
});
$
(
ig
,
{
width
:
w
,
height
:
h
});
o
.
paper
.
safari
();
});
});
})(
el
);
})(
el
);
o
.
paper
.
defs
.
appendChild
(
el
);
o
.
paper
.
defs
.
appendChild
(
el
);
...
@@ -6680,7 +6658,7 @@
...
@@ -6680,7 +6658,7 @@
= (object) @Element
= (object) @Element
\*/
\*/
elproto
.
hide
=
function
()
{
elproto
.
hide
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
"none"
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
"none"
;
return
this
;
return
this
;
};
};
/*\
/*\
...
@@ -6691,7 +6669,7 @@
...
@@ -6691,7 +6669,7 @@
= (object) @Element
= (object) @Element
\*/
\*/
elproto
.
show
=
function
()
{
elproto
.
show
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
""
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
""
;
return
this
;
return
this
;
};
};
/*\
/*\
...
...
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