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
960d3076
authored
Sep 19, 2008
by
Dmitry Baranovskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed hide and show methods
parent
cad50508
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
raphael-packed.js
+0
-0
raphael.js
+11
-7
No files found.
raphael-packed.js
View file @
960d3076
This diff is collapsed.
Click to expand it.
raphael.js
View file @
960d3076
function
Raphael
()
{
return
(
function
(
r
,
args
)
{
r
.
version
=
"0.5.4
b
"
;
r
.
version
=
"0.5.4"
;
var
C
=
{};
function
Matrix
(
m11
,
m12
,
m21
,
m22
,
dx
,
dy
)
{
this
.
m
=
[
...
...
@@ -363,10 +363,12 @@ function Raphael() {
this
[
0
].
attrs
=
{};
this
.
Group
=
group
;
this
.
hide
=
function
()
{
this
[
0
].
style
.
display
=
"none"
;
this
.
Group
.
style
.
display
=
"none"
;
return
this
;
};
this
.
show
=
function
()
{
this
[
0
].
style
.
display
=
"block"
;
this
.
Group
.
style
.
display
=
"block"
;
return
this
;
};
this
.
rotate
=
function
(
deg
)
{
Rotation
+=
deg
;
...
...
@@ -618,9 +620,9 @@ function Raphael() {
o
.
coordorigin
=
vml
.
coordorigin
;
el
.
appendChild
(
o
);
el
.
appendChild
(
path
);
//
g.appendChild(el);
vml
.
canvas
.
appendChild
(
el
);
var
res
=
new
Element
(
o
,
el
,
vml
);
g
.
appendChild
(
el
);
vml
.
canvas
.
appendChild
(
g
);
var
res
=
new
Element
(
o
,
g
,
vml
);
res
.
shape
=
el
;
res
.
type
=
"text"
;
return
res
;
...
...
@@ -1008,9 +1010,11 @@ function Raphael() {
this
.
transformations
=
[];
this
.
hide
=
function
()
{
this
[
0
].
style
.
display
=
"none"
;
return
this
;
};
this
.
show
=
function
()
{
this
[
0
].
style
.
display
=
"block"
;
return
this
;
};
this
.
rotate
=
function
(
deg
)
{
var
bbox
=
this
.
getBBox
();
...
...
@@ -1376,7 +1380,7 @@ function Raphael() {
this
.
_getX
=
this
.
_getY
=
this
.
_getW
=
this
.
_getH
=
function
(
x
)
{
return
x
;
};
};
C
.
safari
=
function
()
{
if
(
this
.
type
==
"SVG"
)
{
if
(
r
.
type
==
"SVG"
)
{
var
rect
=
C
.
rect
(
0
,
0
,
C
.
width
,
C
.
height
).
attr
(
"stroke-width"
,
0
);
setTimeout
(
function
()
{
rect
.
remove
();},
0
);
}
...
...
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