raphael icon indicating copy to clipboard operation
raphael copied to clipboard

Gradient after a transform shows solid colour

Open C10B opened this issue 11 years ago • 2 comments

BUG Create a shape with a gradient. Transform the shape. Apply a new gradient. The gradient shows as a solid colour.

WORK AROUND To apply a new gradient,

  1. undo any transform (set it as a zero length string works)
  2. apply the new gradient
  3. reapply the transform

C10B avatar Mar 20 '14 10:03 C10B

Thanks. Solved my 2 hour problem...

PhilipJBeck avatar Aug 25 '14 11:08 PhilipJBeck

I created a new method to change gradient using the workaround C10B suggest. You can refer: https://github.com/adilek/jirtdan/commit/8eac73d8a822dfa802e0b21174fd67cefe2c13f5

adilek avatar Apr 01 '17 20:04 adilek