mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix SVG error in importing transformed gradients with highlights.
This commit is contained in:
parent
1decf451b4
commit
f63cb40723
1 changed files with 2 additions and 1 deletions
|
@ -804,7 +804,8 @@ var Color = Base.extend(new function() {
|
|||
var radius = destination.getDistance(origin),
|
||||
highlight = components[3];
|
||||
if (highlight) {
|
||||
var vector = highlight.subtract(translation).subtract(origin);
|
||||
highlight = highlight.subtract(translation);
|
||||
var vector = highlight.subtract(origin);
|
||||
if (vector.getLength() > radius)
|
||||
highlight = origin.add(vector.normalize(radius - 0.1));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue