Bug 85127 - <g> transform attribute animation failure
Summary: <g> transform attribute animation failure
Status: RESOLVED UNMAINTAINED
Alias: None
Product: ksvg
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Nikolas Zimmermann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-13 23:42 UTC by Karol
Modified: 2011-10-17 21:06 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
rotate.svg (719 bytes, image/svg+xml)
2005-06-05 17:30 UTC, Clara Gnos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karol 2004-07-13 23:42:46 UTC
Version:           KSVG @KDE3.2.3 (using KDE KDE 3.2.3)
Installed from:    Gentoo Packages
Compiler:          gcc 3.3 
OS:                Linux

I defined some rectangle inside <g> element

<g onmousemove="all_move(evt)" transform="translate(10,80)" onmouseup="all_up(evt)">
    <rect onmousedown="xdown(evt)" width="70" x="0" y="0" rx="4" height="50" 
          ry="4" style="fill:#FFEE7F; stroke:black;" id="r-r1" />  </g>

Now I try to animate it using JavaScript function which changes g's transform attribute while dragging the rectangle
but nothing happens. When I dump current-in-memory-SVG to file (View Memory option) I see, that transform attribute had changed. 
[JS code]
   my_g.setAttribute("transform","translate("+some_X+","+some_Y+")")
[/JS]

When I switch the finction to change rect's X and Y attributes everything works.

Under Adobe's SVG 3.01+MozillaFF (linux) my code works in both cases.
Comment 1 Clara Gnos 2005-06-05 17:30:28 UTC
Created attachment 11341 [details]
rotate.svg

I noticed a very interesting behaviour. Try to open the svg and click on the
triangle. It should be rotated and after a second click at the normal position
(deer park, adobe svg viewer,... shows it correct). When you open it in ksvg
you will see the triangle but i will not be rotated. After some clicks you can
zoom in and out. Sometimes the triangle is rotated, but too much after more
clicks and zooms.
Comment 2 Christoph Feck 2011-10-17 21:06:34 UTC
This component has been replaced with the QtSvg based "svgpart" in KDE 4. If
this issue still needs to be addressed, please add a comment.