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
3c49587c
authored
Oct 01, 2011
by
Dmitry Baranovskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final small fixes…
parent
6b3fa145
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
10 deletions
+30
-10
raphael-min.js
+0
-0
raphael.core.js
+8
-2
raphael.js
+15
-5
raphael.svg.js
+4
-1
raphael.vml.js
+3
-2
No files found.
raphael-min.js
View file @
3c49587c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
raphael.core.js
View file @
3c49587c
...
...
@@ -387,7 +387,7 @@
return
o
instanceof
Array
;
}
return
(
type
==
"null"
&&
o
===
null
)
||
(
type
==
typeof
o
)
||
(
type
==
typeof
o
&&
o
!==
null
)
||
(
type
==
"object"
&&
o
===
Object
(
o
))
||
(
type
==
"array"
&&
Array
.
isArray
&&
Array
.
isArray
(
o
))
||
objectToString
.
call
(
o
).
slice
(
8
,
-
1
).
toLowerCase
()
==
type
;
...
...
@@ -3483,7 +3483,9 @@
t
=
e
.
t
,
that
=
e
.
el
,
set
=
{},
now
;
now
,
init
=
{},
key
;
if
(
e
.
initstatus
)
{
time
=
(
e
.
initstatus
*
e
.
anim
.
top
-
e
.
prev
)
/
(
e
.
percent
-
e
.
prev
)
*
ms
;
e
.
status
=
e
.
initstatus
;
...
...
@@ -3574,6 +3576,10 @@
that
.
attr
(
to
);
animationElements
.
splice
(
l
--
,
1
);
if
(
e
.
repeat
>
1
&&
!
e
.
next
)
{
for
(
key
in
to
)
if
(
to
[
has
](
key
))
{
init
[
key
]
=
e
.
totalOrigin
[
key
];
}
e
.
el
.
attr
(
init
);
runAnimation
(
e
.
anim
,
e
.
el
,
e
.
anim
.
percents
[
0
],
null
,
e
.
totalOrigin
,
e
.
repeat
-
1
);
}
if
(
e
.
next
&&
!
e
.
stop
)
{
...
...
raphael.js
View file @
3c49587c
...
...
@@ -473,7 +473,7 @@
return
o
instanceof
Array
;
}
return
(
type
==
"null"
&&
o
===
null
)
||
(
type
==
typeof
o
)
||
(
type
==
typeof
o
&&
o
!==
null
)
||
(
type
==
"object"
&&
o
===
Object
(
o
))
||
(
type
==
"array"
&&
Array
.
isArray
&&
Array
.
isArray
(
o
))
||
objectToString
.
call
(
o
).
slice
(
8
,
-
1
).
toLowerCase
()
==
type
;
...
...
@@ -2533,7 +2533,9 @@
t
=
e
.
t
,
that
=
e
.
el
,
set
=
{},
now
;
now
,
init
=
{},
key
;
if
(
e
.
initstatus
)
{
time
=
(
e
.
initstatus
*
e
.
anim
.
top
-
e
.
prev
)
/
(
e
.
percent
-
e
.
prev
)
*
ms
;
e
.
status
=
e
.
initstatus
;
...
...
@@ -2624,6 +2626,10 @@
that
.
attr
(
to
);
animationElements
.
splice
(
l
--
,
1
);
if
(
e
.
repeat
>
1
&&
!
e
.
next
)
{
for
(
key
in
to
)
if
(
to
[
has
](
key
))
{
init
[
key
]
=
e
.
totalOrigin
[
key
];
}
e
.
el
.
attr
(
init
);
runAnimation
(
e
.
anim
,
e
.
el
,
e
.
anim
.
percents
[
0
],
null
,
e
.
totalOrigin
,
e
.
repeat
-
1
);
}
if
(
e
.
next
&&
!
e
.
stop
)
{
...
...
@@ -4176,7 +4182,10 @@ window.Raphael.svg && function (R) {
}
else
if
(
name
!=
null
&&
R
.
is
(
name
,
"object"
))
{
params
=
name
;
}
for
(
var
key
in
this
.
paper
.
customAttributes
)
if
(
this
.
paper
.
customAttributes
[
has
](
key
)
&&
params
[
has
](
key
)
&&
R
.
is
(
this
.
paper
.
customAttributes
[
key
],
"function"
))
{
for
(
var
key
in
params
)
{
eve
(
"attr."
+
key
+
"."
+
this
.
id
,
this
,
params
[
key
]);
}
for
(
key
in
this
.
paper
.
customAttributes
)
if
(
this
.
paper
.
customAttributes
[
has
](
key
)
&&
params
[
has
](
key
)
&&
R
.
is
(
this
.
paper
.
customAttributes
[
key
],
"function"
))
{
var
par
=
this
.
paper
.
customAttributes
[
key
].
apply
(
this
,
[].
concat
(
params
[
key
]));
this
.
attrs
[
key
]
=
params
[
key
];
for
(
var
subkey
in
par
)
if
(
par
[
has
](
subkey
))
{
...
...
@@ -4819,6 +4828,7 @@ window.Raphael.vml && function (R) {
addGradientFill
=
function
(
o
,
gradient
,
fill
)
{
o
.
attrs
=
o
.
attrs
||
{};
var
attrs
=
o
.
attrs
,
pow
=
Math
.
pow
,
opacity
,
oindex
,
type
=
"linear"
,
...
...
@@ -5092,11 +5102,11 @@ window.Raphael.vml && function (R) {
}
value
==
null
&&
R
.
is
(
name
,
"object"
)
&&
(
params
=
name
);
for
(
var
key
in
params
)
{
R
.
eve
(
"attr."
+
key
+
"."
+
this
.
id
,
this
,
params
[
key
]);
eve
(
"attr."
+
key
+
"."
+
this
.
id
,
this
,
params
[
key
]);
}
if
(
params
)
{
for
(
key
in
this
.
paper
.
customAttributes
)
if
(
this
.
paper
.
customAttributes
[
has
](
key
)
&&
params
[
has
](
key
)
&&
R
.
is
(
this
.
paper
.
customAttributes
[
key
],
"function"
))
{
var
par
=
this
.
paper
.
customAttributes
[
key
].
apply
(
this
,
[]
[
concat
]
(
params
[
key
]));
var
par
=
this
.
paper
.
customAttributes
[
key
].
apply
(
this
,
[]
.
concat
(
params
[
key
]));
this
.
attrs
[
key
]
=
params
[
key
];
for
(
var
subkey
in
par
)
if
(
par
[
has
](
subkey
))
{
params
[
subkey
]
=
par
[
subkey
];
...
...
raphael.svg.js
View file @
3c49587c
...
...
@@ -1026,7 +1026,10 @@ window.Raphael.svg && function (R) {
}
else
if
(
name
!=
null
&&
R
.
is
(
name
,
"object"
))
{
params
=
name
;
}
for
(
var
key
in
this
.
paper
.
customAttributes
)
if
(
this
.
paper
.
customAttributes
[
has
](
key
)
&&
params
[
has
](
key
)
&&
R
.
is
(
this
.
paper
.
customAttributes
[
key
],
"function"
))
{
for
(
var
key
in
params
)
{
eve
(
"attr."
+
key
+
"."
+
this
.
id
,
this
,
params
[
key
]);
}
for
(
key
in
this
.
paper
.
customAttributes
)
if
(
this
.
paper
.
customAttributes
[
has
](
key
)
&&
params
[
has
](
key
)
&&
R
.
is
(
this
.
paper
.
customAttributes
[
key
],
"function"
))
{
var
par
=
this
.
paper
.
customAttributes
[
key
].
apply
(
this
,
[].
concat
(
params
[
key
]));
this
.
attrs
[
key
]
=
params
[
key
];
for
(
var
subkey
in
par
)
if
(
par
[
has
](
subkey
))
{
...
...
raphael.vml.js
View file @
3c49587c
...
...
@@ -370,6 +370,7 @@ window.Raphael.vml && function (R) {
addGradientFill
=
function
(
o
,
gradient
,
fill
)
{
o
.
attrs
=
o
.
attrs
||
{};
var
attrs
=
o
.
attrs
,
pow
=
Math
.
pow
,
opacity
,
oindex
,
type
=
"linear"
,
...
...
@@ -643,11 +644,11 @@ window.Raphael.vml && function (R) {
}
value
==
null
&&
R
.
is
(
name
,
"object"
)
&&
(
params
=
name
);
for
(
var
key
in
params
)
{
R
.
eve
(
"attr."
+
key
+
"."
+
this
.
id
,
this
,
params
[
key
]);
eve
(
"attr."
+
key
+
"."
+
this
.
id
,
this
,
params
[
key
]);
}
if
(
params
)
{
for
(
key
in
this
.
paper
.
customAttributes
)
if
(
this
.
paper
.
customAttributes
[
has
](
key
)
&&
params
[
has
](
key
)
&&
R
.
is
(
this
.
paper
.
customAttributes
[
key
],
"function"
))
{
var
par
=
this
.
paper
.
customAttributes
[
key
].
apply
(
this
,
[]
[
concat
]
(
params
[
key
]));
var
par
=
this
.
paper
.
customAttributes
[
key
].
apply
(
this
,
[]
.
concat
(
params
[
key
]));
this
.
attrs
[
key
]
=
params
[
key
];
for
(
var
subkey
in
par
)
if
(
par
[
has
](
subkey
))
{
params
[
subkey
]
=
par
[
subkey
];
...
...
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