mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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';
|
gradient.type = 'radial';
|
||||||
origin = getPoint(svg, 'cx', 'cy');
|
origin = getPoint(svg, 'cx', 'cy');
|
||||||
destination = origin.add(getValue(svg, 'r'), 0);
|
destination = origin.add(getValue(svg, 'r'), 0);
|
||||||
highlight = getPoint(svg, 'fx', 'fy', true);
|
highlight = getPoint(svg, 'fx', 'fy');
|
||||||
|
if (highlight.isZero())
|
||||||
|
highlight = null;
|
||||||
} else {
|
} else {
|
||||||
origin = getPoint(svg, 'x1', 'y1');
|
origin = getPoint(svg, 'x1', 'y1');
|
||||||
destination = getPoint(svg, 'x2', 'y2');
|
destination = getPoint(svg, 'x2', 'y2');
|
||||||
|
|
Loading…
Reference in a new issue