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.
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.
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.