Maybe it's too much of a developpers question, you could try Inkscape's
Developpers mailing list.
On Tue, Jun 11, 2013 at 3:15 PM, Shlomi Fish <shlomif@...3008...> wrote:
Hi all,
can anyone provide any insight for this?
Regards,
Shlomi Fish
On Thu, 6 Jun 2013 13:22:18 +0300
Shlomi Fish <shlomif@...3008...> wrote:
> Q: in my extension I have this:
>
> class StyleEffect(GenericAddPathEffect):
> def effect(self):
> self.xpathSingle(u'svg:defs').insert(0,
> inkex.etree.XML('''<svg:linearGradient
>
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg
"
> id="bk2hp_grad"> <stop
style="stop-color:#0000ff;stop-opacity:1"
offset="0"
> id="b2h_0" />
> <stop style="stop-color:#00deff;stop-opacity:1"
> offset="0.4"
> id="b2h_1" />
> <stop style="stop-color:#00deff;stop-opacity:1"
> offset="0.6"
> id="b2h_2" />
> <stop style="stop-color:#0000ff;stop-opacity:1"
> offset="1"
> id="b2h_3" />
> </svg:linearGradient>''')
> )
> self.xpathSingle(u'svg:defs').insert(1,
> inkex.etree.XML('''<svg:linearGradient
>
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg
"
>
xmlns:xlink="http://www.w3.org/1999/xlink" id="bk2hp_grad_rot"
> gradientTransform="rotate(90)" xlink:href="#bk2hp_grad"
/>''') )
>
> self.xpathSingle(u'//*[@id="' + main_path_id() +
'"]').set(
'style',
> simplestyle.formatStyle({ 'stroke': '#888888',
'stroke-width':
> '1pt', 'fill': 'url(#bk2hp_grad_rot)',
> }
> ))
>
> Which generates a linearGradient and a rotated version of it. However,
when I
> move the path filled with the rotation, it reverts to the non-rotated
version.
>
> I'm attaching it here. Why is Inkscape doing it? Is it a bug?
>
> You can find the extension in question here:
>
>
https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo/blob/mast...
>
> Regards,
>
> Shlomi Fish
>
--
-----------------------------------------------------------------
Shlomi Fish
http://www.shlomifish.org/
Perl Humour -
http://perl-begin.org/humour/
My opinions may seem crazy but they all make sense. Insane sense, but sense
nonetheless.
Please reply to list if it's a mailing list post -
http://shlom.in/reply .
------------------------------------------------------------------------------
This
SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Inkscape-user mailing list
Inkscape-user(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user