kangax
|
4565e0dd6a
|
Fix parsing of gradients with stops that have absolute values (rather than percents).
|
2012-01-21 13:33:49 -05:00 |
|
kangax
|
c057b8b6d5
|
Fix vertical gradient rendering. Closes #108. Thanks aarr0n.
|
2012-01-21 12:59:30 -05:00 |
|
kangax
|
6d376dd588
|
Fix gradient positioning in fabric.Gradient.forObject.
|
2011-11-20 12:34:36 -05:00 |
|
kangax
|
550bb5da3d
|
Remove debugger leftover from gradient.js.
|
2011-02-06 23:25:19 -05:00 |
|
kangax
|
6e8810d791
|
Gradient color stops can now be parsed from style attribute of <stop> elements (which are children of <gradient> elements). Fix gradient rendering logic, where rendering point would originate from center of the shape, instead of a proper top/left corner. Add 2 more example gradients to the demo page.
|
2011-01-20 01:42:00 -05:00 |
|
kangax
|
b35ebd0bb2
|
Reorganize SVG gradients parsing in such way so that during parsing, objects (to apply those gradients to) were available; we need this to be able to apply percent-based values properly (e.g. x2="100%" should be translated to an object's width, y2="50%" -- to object's height / 2, etc.).
|
2011-01-09 02:09:28 -05:00 |
|
kangax
|
a40e9cd610
|
Initial implementation of gradients. Work in progress (but demo page now has working "gradientify" button). Still need to add tests, and make sure gradient-based fills on SVG elements are parsed/set properly.
|
2011-01-09 01:38:54 -05:00 |
|