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
81e83b95
authored
Apr 23, 2015
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing webkit workaround after consulting Dmitry
parent
e4b8c5a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
49 deletions
+5
-49
dev/raphael.core.js
+0
-21
dev/raphael.svg.js
+2
-3
raphael-min.js
+0
-0
raphael.js
+3
-25
No files found.
dev/raphael.core.js
View file @
81e83b95
...
...
@@ -2702,26 +2702,6 @@
};
})(
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
()
{
this
.
returnValue
=
false
;
},
...
...
@@ -4248,7 +4228,6 @@
}
}
}
R
.
svg
&&
that
&&
that
.
paper
&&
that
.
paper
.
safari
();
animationElements
.
length
&&
requestAnimFrame
(
animation
);
},
upto255
=
function
(
color
)
{
...
...
dev/raphael.svg.js
View file @
81e83b95
...
...
@@ -490,7 +490,6 @@ window.Raphael && window.Raphael.svg && function(R) {
h
=
this
.
offsetHeight
;
$
(
el
,
{
width
:
w
,
height
:
h
});
$
(
ig
,
{
width
:
w
,
height
:
h
});
o
.
paper
.
safari
();
});
})(
el
);
o
.
paper
.
defs
.
appendChild
(
el
);
...
...
@@ -865,7 +864,7 @@ window.Raphael && window.Raphael.svg && function(R) {
= (object) @Element
\*/
elproto
.
hide
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
"none"
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
"none"
;
return
this
;
};
/*\
...
...
@@ -876,7 +875,7 @@ window.Raphael && window.Raphael.svg && function(R) {
= (object) @Element
\*/
elproto
.
show
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
""
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
""
;
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 @@
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
));
})(
window
||
this
);
})(
this
);
// ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ "Raphaël 2.1.2" - JavaScript Vector Library │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\
...
...
@@ -3081,26 +3081,6 @@
};
})(
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
()
{
this
.
returnValue
=
false
;
},
...
...
@@ -4627,7 +4607,6 @@
}
}
}
R
.
svg
&&
that
&&
that
.
paper
&&
that
.
paper
.
safari
();
animationElements
.
length
&&
requestAnimFrame
(
animation
);
},
upto255
=
function
(
color
)
{
...
...
@@ -6305,7 +6284,6 @@
h
=
this
.
offsetHeight
;
$
(
el
,
{
width
:
w
,
height
:
h
});
$
(
ig
,
{
width
:
w
,
height
:
h
});
o
.
paper
.
safari
();
});
})(
el
);
o
.
paper
.
defs
.
appendChild
(
el
);
...
...
@@ -6680,7 +6658,7 @@
= (object) @Element
\*/
elproto
.
hide
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
"none"
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
"none"
;
return
this
;
};
/*\
...
...
@@ -6691,7 +6669,7 @@
= (object) @Element
\*/
elproto
.
show
=
function
()
{
!
this
.
removed
&&
this
.
paper
.
safari
(
this
.
node
.
style
.
display
=
""
)
;
if
(
!
this
.
removed
)
this
.
node
.
style
.
display
=
""
;
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