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
75a5818a
Commit
75a5818a
authored
Aug 01, 2015
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@bjouhier - set stop-opacity in gradient defs
parent
3c97d14c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
raphael.core.js
dev/raphael.core.js
+1
-0
raphael.svg.js
dev/raphael.svg.js
+2
-1
history.md
history.md
+2
-1
raphael-min.js
raphael-min.js
+4
-3
raphael.js
raphael.js
+3
-1
No files found.
dev/raphael.core.js
View file @
75a5818a
...
...
@@ -2124,6 +2124,7 @@
if
(
dot
.
color
.
error
)
{
return
null
;
}
dot
.
opacity
=
dot
.
color
.
opacity
;
dot
.
color
=
dot
.
color
.
hex
;
par
[
2
]
&&
(
dot
.
offset
=
par
[
2
]
+
"%"
);
dots
.
push
(
dot
);
...
...
dev/raphael.svg.js
View file @
75a5818a
...
...
@@ -121,7 +121,8 @@ window.Raphael && window.Raphael.svg && function(R) {
for
(
var
i
=
0
,
ii
=
dots
.
length
;
i
<
ii
;
i
++
)
{
el
.
appendChild
(
$
(
"stop"
,
{
offset
:
dots
[
i
].
offset
?
dots
[
i
].
offset
:
i
?
"100%"
:
"0%"
,
"stop-color"
:
dots
[
i
].
color
||
"#fff"
"stop-color"
:
dots
[
i
].
color
||
"#fff"
,
"stop-opacity"
:
isFinite
(
dots
[
i
].
opacity
)
?
dots
[
i
].
opacity
:
1
}));
}
}
...
...
history.md
View file @
75a5818a
2.1.5 • WIP
------------------
*
fixed rounding issue in RGB formatter
*
Set stop-opacity in gradient defs
*
Fixed rounding issue in RGB formatter
2.
1.4 • 2015-03-09
------------------
...
...
raphael-min.js
View file @
75a5818a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
raphael.js
View file @
75a5818a
...
...
@@ -2503,6 +2503,7 @@
if
(
dot
.
color
.
error
)
{
return
null
;
}
dot
.
opacity
=
dot
.
color
.
opacity
;
dot
.
color
=
dot
.
color
.
hex
;
par
[
2
]
&&
(
dot
.
offset
=
par
[
2
]
+
"%"
);
dots
.
push
(
dot
);
...
...
@@ -5916,7 +5917,8 @@
for
(
var
i
=
0
,
ii
=
dots
.
length
;
i
<
ii
;
i
++
)
{
el
.
appendChild
(
$
(
"stop"
,
{
offset
:
dots
[
i
].
offset
?
dots
[
i
].
offset
:
i
?
"100%"
:
"0%"
,
"stop-color"
:
dots
[
i
].
color
||
"#fff"
"stop-color"
:
dots
[
i
].
color
||
"#fff"
,
"stop-opacity"
:
isFinite
(
dots
[
i
].
opacity
)
?
dots
[
i
].
opacity
:
1
}));
}
}
...
...
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