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
5938c397
Commit
5938c397
authored
Nov 07, 2008
by
Dmitry Baranovskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some errors left from refactoring
parent
dcb5680f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
raphael-packed.js
raphael-packed.js
+2
-2
raphael.js
raphael.js
+16
-12
No files found.
raphael-packed.js
View file @
5938c397
This diff is collapsed.
Click to expand it.
raphael.js
View file @
5938c397
/*
* Raphael 0.5.
6
b - JavaScript Vector Library
* Raphael 0.5.
7
b - JavaScript Vector Library
*
* Copyright (c) 2008 Dmitry Baranovskiy (raphaeljs.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
...
...
@@ -8,7 +8,7 @@ var Raphael = (function (type) {
var
r
=
function
()
{
return
r
.
_create
.
apply
(
r
,
arguments
);
};
r
.
version
=
"0.5.
6
b"
;
r
.
version
=
"0.5.
7
b"
;
r
.
type
=
type
;
var
C
=
{};
function
Matrix
(
m11
,
m12
,
m21
,
m22
,
dx
,
dy
)
{
...
...
@@ -315,12 +315,10 @@ var Raphael = (function (type) {
stroke
.
color
=
params
.
stroke
;
}
stroke
.
opacity
=
((
params
[
"stroke-opacity"
]
+
1
||
2
)
-
1
)
*
((
params
.
opacity
+
1
||
2
)
-
1
);
stroke
.
joinstyle
=
params
[
"stroke-linejoin"
]
||
"miter"
;
stroke
.
joinstyle
&&
(
stroke
.
joinstyle
=
params
[
"stroke-linejoin"
]
||
"miter"
)
;
stroke
.
miterlimit
=
params
[
"stroke-miterlimit"
]
||
8
;
stroke
.
endcap
=
{
butt
:
"flat"
,
square
:
"square"
,
round
:
"round"
}[
params
[
"stroke-linecap"
]
||
"miter"
];
if
(
params
[
"stroke-width"
])
{
stroke
.
weight
=
(
parseFloat
(
params
[
"stroke-width"
],
10
)
||
1
)
*
12
/
16
;
}
params
[
"stroke-linecap"
]
&&
(
stroke
.
endcap
=
{
butt
:
"flat"
,
square
:
"square"
,
round
:
"round"
}[
params
[
"stroke-linecap"
]]
||
"miter"
);
params
[
"stroke-width"
]
&&
(
stroke
.
weight
=
(
parseFloat
(
params
[
"stroke-width"
],
10
)
||
1
)
*
12
/
16
);
if
(
params
[
"stroke-dasharray"
])
{
var
dashes
=
params
[
"stroke-dasharray"
].
replace
(
" "
,
","
).
split
(
","
),
dashesn
=
[],
...
...
@@ -780,6 +778,9 @@ var Raphael = (function (type) {
};
return
container
;
};
C
.
remove
=
function
()
{
C
.
canvas
.
parentNode
.
parentNode
.
removeChild
(
C
.
canvas
.
parentNode
);
};
}
if
(
type
==
"SVG"
)
{
Matrix
.
prototype
.
toString
=
function
()
{
...
...
@@ -1161,21 +1162,21 @@ var Raphael = (function (type) {
case
"rx"
:
case
"cx"
:
case
"x"
:
this
[
0
].
setAttribute
(
att
,
svg
.
_getX
(
value
));
this
[
0
].
setAttribute
(
att
,
this
.
svg
.
_getX
(
value
));
break
;
case
"ry"
:
case
"cy"
:
case
"y"
:
this
[
0
].
setAttribute
(
att
,
svg
.
_getY
(
value
));
this
[
0
].
setAttribute
(
att
,
this
.
svg
.
_getY
(
value
));
break
;
case
"width"
:
this
[
0
].
setAttribute
(
att
,
svg
.
_getW
(
value
));
this
[
0
].
setAttribute
(
att
,
this
.
svg
.
_getW
(
value
));
break
;
case
"height"
:
this
[
0
].
setAttribute
(
att
,
svg
.
_getH
(
value
));
this
[
0
].
setAttribute
(
att
,
this
.
svg
.
_getH
(
value
));
break
;
case
"gradient"
:
addGrdientFill
(
this
[
0
],
params
.
gradient
,
svg
);
addGrdientFill
(
this
[
0
],
value
,
this
.
svg
);
break
;
case
"stroke-dasharray"
:
this
[
0
].
setAttribute
(
att
,
value
.
replace
(
" "
,
","
));
...
...
@@ -1416,6 +1417,9 @@ var Raphael = (function (type) {
container
.
clear
();
return
container
;
};
C
.
remove
=
function
()
{
C
.
canvas
.
parentNode
.
removeChild
(
C
.
canvas
);
};
C
.
svgns
=
"http://www.w3.org/2000/svg"
;
C
.
xlink
=
"http://www.w3.org/1999/xlink"
;
}
...
...
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