Hi everyone,
I am developing a simple svg editor with batik 1.7. I add small svg images
to an big one, a svg converted autocad plan of 7 MB or bigger. Each time i
click on a button , it loads an specific small icon , then i click over the
jsvgcanvas (with the big svg file like background) using :
elementToinsert.setAttribute("transform", "translate(" +
newGraphElement.getPosX() + "," + newGraphElement.getPosY() + ")");
root.appendChild(basedocument.importNode(ele, true));.
Well, all of this work perfectly, but after some zoom in , zoom out and pan
actions or draw and drag icons, suddenly the jsvgcanvas doesn't refresh
completely, and some white areas appear.
When I drag an icon over these areas , the jsvgcanvas starts to refresh
them or when i do a zoom in/out or pan action , it refreshes all the
canvas.
Now, I was looking in the forum but i didn't find something similar. What
should i do to avoid this problem. I tried to call the repaint method of
jsvgcanvas but dosen't work.
In my desperation , i am thinking of zoom in an zoom out each time the svg
file is modified, to avoid this , but i think this is a little stupid.
--
View this message in context:
http://www.nabble.com/Some-white-areas-appear--after-many-zoom-in%2C-zoom-out-and-pan-actions-tp19460378p19460378.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]