Open GoogleCodeExporter opened 9 years ago
It also occurred to me that jGraduate can do something similar to what jPicker
does:
Provide a convenience method that can be called beforehand to set up the div.
Something like:
jGraduate_setPaintLG(div, {x1, y1, x2, y2, beginColor, beginOpacity, endColor,
endOpacity})
This method will return a <svg> document that is ready to be inserted into the
<div>.
So:
1) if user does not need a gradient to be shown in the div prior to launching
jGraduate, then simply set background-color and call jGraduate(). In this case,
jGraduate will handle creating the SVG document and managing it.
2) if user wants a gradient to be shown in the div prior to launching
jGraduate, then
call jGraduate_setPaintLG($('div#foo'), {...} ) and then call jGraduate().
Original comment by codedr...@gmail.com
on 23 Jul 2009 at 4:51
Original comment by codedr...@gmail.com
on 23 Jul 2009 at 4:54
I've decided that this is a lot of work for some minor convenience. It's
better to
just illustrate how developers would do this in the example demo/test page.
Original comment by codedr...@gmail.com
on 27 Jul 2009 at 4:26
Original comment by codedr...@gmail.com
on 10 Aug 2009 at 2:11
Original issue reported on code.google.com by
codedr...@gmail.com
on 23 Jul 2009 at 4:47