Fix for #157
parent
effb57e0d8
commit
1bde666776
File diff suppressed because one or more lines are too long
|
@ -14,7 +14,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
// build: 2014-01-02
|
// build: 2014-01-03
|
||||||
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@ -3763,7 +3763,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
||||||
| var g = paper.gradient("l(0, 0, 1, 1)#000-#f00-#fff");
|
| var g = paper.gradient("l(0, 0, 1, 1)#000-#f00-#fff");
|
||||||
* Linear gradient, absolute from (0, 0) to (100, 100), from black
|
* Linear gradient, absolute from (0, 0) to (100, 100), from black
|
||||||
* through red at 25% to white:
|
* through red at 25% to white:
|
||||||
| var g = paper.gradient("L(0, 0, 100, 100)#000-#f00:25%-#fff");
|
| var g = paper.gradient("L(0, 0, 100, 100)#000-#f00:25-#fff");
|
||||||
* Radial gradient, relative from the center of the element with radius
|
* Radial gradient, relative from the center of the element with radius
|
||||||
* half the width, from black to white:
|
* half the width, from black to white:
|
||||||
| var g = paper.gradient("r(0.5, 0.5, 0.5)#000-#fff");
|
| var g = paper.gradient("r(0.5, 0.5, 0.5)#000-#fff");
|
||||||
|
@ -4007,7 +4007,7 @@ eve.on("snap.util.grad.parse", function parseGrad(string) {
|
||||||
color: el[0]
|
color: el[0]
|
||||||
};
|
};
|
||||||
if (el[1]) {
|
if (el[1]) {
|
||||||
out.offset = el[1];
|
out.offset = parseFloat(el[1]);
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
});
|
});
|
||||||
|
|
|
@ -7238,7 +7238,7 @@ through red at 25% to white:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript">var g = paper.gradient("L(0, 0, 100, 100)#000-#f00:25%-#fff");</code></pre></section>
|
<section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript">var g = paper.gradient("L(0, 0, 100, 100)#000-#f00:25-#fff");</code></pre></section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "snapsvg",
|
"name": "snapsvg",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "JavaScript Vector Library",
|
"description": "JavaScript Vector Library",
|
||||||
"main": "Gruntfile.js",
|
"main": "Gruntfile.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -3015,7 +3015,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
||||||
| var g = paper.gradient("l(0, 0, 1, 1)#000-#f00-#fff");
|
| var g = paper.gradient("l(0, 0, 1, 1)#000-#f00-#fff");
|
||||||
* Linear gradient, absolute from (0, 0) to (100, 100), from black
|
* Linear gradient, absolute from (0, 0) to (100, 100), from black
|
||||||
* through red at 25% to white:
|
* through red at 25% to white:
|
||||||
| var g = paper.gradient("L(0, 0, 100, 100)#000-#f00:25%-#fff");
|
| var g = paper.gradient("L(0, 0, 100, 100)#000-#f00:25-#fff");
|
||||||
* Radial gradient, relative from the center of the element with radius
|
* Radial gradient, relative from the center of the element with radius
|
||||||
* half the width, from black to white:
|
* half the width, from black to white:
|
||||||
| var g = paper.gradient("r(0.5, 0.5, 0.5)#000-#fff");
|
| var g = paper.gradient("r(0.5, 0.5, 0.5)#000-#fff");
|
||||||
|
@ -3259,7 +3259,7 @@ eve.on("snap.util.grad.parse", function parseGrad(string) {
|
||||||
color: el[0]
|
color: el[0]
|
||||||
};
|
};
|
||||||
if (el[1]) {
|
if (el[1]) {
|
||||||
out.offset = el[1];
|
out.offset = parseFloat(el[1]);
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue