raphael
raphael copied to clipboard
Gradient after a transform shows solid colour
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,
- undo any transform (set it as a zero length string works)
- apply the new gradient
- reapply the transform
Thanks. Solved my 2 hour problem...
I created a new method to change gradient using the workaround C10B suggest. You can refer: https://github.com/adilek/jirtdan/commit/8eac73d8a822dfa802e0b21174fd67cefe2c13f5