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
640a16e2
authored
Oct 03, 2008
by
Dmitry Baranovskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the bug with the image in IE.
parent
4993ea18
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
raphael-packed.js
+0
-0
raphael.js
+3
-5
No files found.
raphael-packed.js
View file @
640a16e2
This diff is collapsed.
Click to expand it.
raphael.js
View file @
640a16e2
...
...
@@ -275,7 +275,6 @@ var Raphael = (function (type) {
if
(
params
.
stroke
==
"none"
||
typeof
stroke
.
on
==
"undefined"
)
{
stroke
.
on
=
false
;
}
// alert(stroke.on);
if
(
stroke
.
on
&&
params
.
stroke
)
{
stroke
.
color
=
params
.
stroke
;
}
...
...
@@ -283,11 +282,11 @@ var Raphael = (function (type) {
stroke
.
joinstyle
=
params
[
"stroke-linejoin"
]
||
"miter"
;
stroke
.
miterlimit
=
params
[
"stroke-miterlimit"
]
||
8
;
stroke
.
endcap
=
{
butt
:
"flat"
,
square
:
"square"
,
round
:
"round"
}[
params
[
"stroke-linecap"
]
||
"miter"
];
stroke
.
weight
=
(
parseFloat
(
params
[
"stroke-width"
],
10
)
||
1
)
+
"px"
;
stroke
.
weight
=
(
parseFloat
(
params
[
"stroke-width"
],
10
)
||
1
);
if
(
params
[
"stroke-dasharray"
])
{
var
dashes
=
params
[
"stroke-dasharray"
].
replace
(
" "
,
","
).
split
(
","
),
dashesn
=
[],
str
=
parseFloat
(
stroke
.
weight
,
10
)
;
str
=
stroke
.
weight
;
for
(
var
i
=
0
,
ii
=
dashes
.
length
;
i
<
ii
;
i
++
)
{
var
res
=
dashes
[
i
]
/
str
;
if
(
!
isNaN
(
res
))
{
...
...
@@ -385,7 +384,6 @@ var Raphael = (function (type) {
case
"text"
:
this
.
textpath
.
v
=
[
"m"
,
Math
.
round
(
attr
.
x
),
", "
,
Math
.
round
(
attr
.
y
-
2
),
"l"
,
Math
.
round
(
attr
.
x
)
+
1
,
", "
,
Math
.
round
(
attr
.
y
-
2
)].
join
(
""
);
return
;
break
;
default
:
return
;
}
...
...
@@ -579,12 +577,12 @@ var Raphael = (function (type) {
g
.
appendChild
(
o
);
vml
.
canvas
.
appendChild
(
g
);
var
res
=
new
Element
(
o
,
g
,
vml
);
res
.
type
=
"image"
;
res
.
setBox
({
x
:
x
,
y
:
y
,
w
:
w
,
h
:
h
});
o
.
attrs
.
x
=
x
;
o
.
attrs
.
y
=
y
;
o
.
attrs
.
w
=
w
;
o
.
attrs
.
h
=
h
;
res
.
type
=
"image"
;
return
res
;
};
var
theText
=
function
(
vml
,
x
,
y
,
text
)
{
...
...
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