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
e3d40fc6
Commit
e3d40fc6
authored
Oct 05, 2013
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IE8 / R2.0.1 - viewbox scaling
parent
4ea67311
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
raphael.vml.js
dev/raphael.vml.js
+20
-0
raphael-min.js
raphael-min.js
+1
-1
raphael.js
raphael.js
+21
-0
No files found.
dev/raphael.vml.js
View file @
e3d40fc6
...
...
@@ -573,6 +573,26 @@ window.Raphael && window.Raphael.vml && function(R) {
!
this
.
removed
&&
(
this
.
node
.
style
.
display
=
E
);
return
this
;
};
// Needed to fix the vml setViewBox issues
elproto
.
auxGetBBox
=
R
.
el
.
getBBox
;
elproto
.
getBBox
=
function
(){
var
b
=
this
.
auxGetBBox
();
if
(
this
.
paper
&&
this
.
paper
.
_viewBoxShift
)
{
var
c
=
{};
var
z
=
1
/
this
.
paper
.
_viewBoxShift
.
scale
;
c
.
x
=
b
.
x
-
this
.
paper
.
_viewBoxShift
.
dx
;
c
.
x
*=
z
;
c
.
y
=
b
.
y
-
this
.
paper
.
_viewBoxShift
.
dy
;
c
.
y
*=
z
;
c
.
width
=
b
.
width
*
z
;
c
.
height
=
b
.
height
*
z
;
c
.
x2
=
c
.
x
+
c
.
width
;
c
.
y2
=
c
.
y
+
c
.
height
;
return
c
;
}
return
b
;
};
elproto
.
_getBBox
=
function
()
{
if
(
this
.
removed
)
{
return
{};
...
...
raphael-min.js
View file @
e3d40fc6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
raphael.js
View file @
e3d40fc6
...
...
@@ -7730,6 +7730,27 @@
!
this
.
removed
&&
(
this
.
node
.
style
.
display
=
E
);
return
this
;
};
// Needed to fix the vml setViewBox issues
elproto
.
auxGetBBox
=
R
.
el
.
getBBox
;
elproto
.
getBBox
=
function
(){
var
b
=
this
.
auxGetBBox
();
if
(
this
.
paper
&&
this
.
paper
.
_viewBoxShift
)
{
var
c
=
{};
var
z
=
1
/
this
.
paper
.
_viewBoxShift
.
scale
;
c
.
x
=
b
.
x
-
this
.
paper
.
_viewBoxShift
.
dx
;
c
.
x
*=
z
;
c
.
y
=
b
.
y
-
this
.
paper
.
_viewBoxShift
.
dy
;
c
.
y
*=
z
;
c
.
width
=
b
.
width
*
z
;
c
.
height
=
b
.
height
*
z
;
c
.
x2
=
c
.
x
+
c
.
width
;
c
.
y2
=
c
.
y
+
c
.
height
;
return
c
;
}
return
b
;
};
elproto
.
_getBBox
=
function
()
{
if
(
this
.
removed
)
{
return
{};
...
...
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