mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Svg Importer: fix handling of highlight point of radial gradients.
This commit is contained in:
parent
a86340c088
commit
116e782f33
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ new function() {
|
|||
gradient.type = 'radial';
|
||||
origin = getPoint(svg, 'cx', 'cy');
|
||||
destination = origin.add(getValue(svg, 'r'), 0);
|
||||
highlight = getPoint(svg, 'fx', 'fy', true);
|
||||
highlight = getPoint(svg, 'fx', 'fy');
|
||||
if (highlight.isZero())
|
||||
highlight = null;
|
||||
} else {
|
||||
origin = getPoint(svg, 'x1', 'y1');
|
||||
destination = getPoint(svg, 'x2', 'y2');
|
||||
|
|
Loading…
Reference in a new issue