My application uses SVG g elements to implement layering over a background image, and at any time, some of these layers will be hidden. I'm hiding the elements by temporarily setting the style attribute to display:none, saving the original style attribute for later restoration.
When I save the file, I would like to restore all of the original style attributes to the DOM temporarily, write out the document, then put the DOM back the way it started, re-hiding all of the layers that the user had hidden. I really don't want these temporary visibility changes rendered. Is there a way to temporarily suspend re-rendering while changes are going on? It's hinted at in other discussion in the list archives that there is not, but if someone can give me a definitive yes or no, that would be helpful. Assuming there is no such mechanism, one way I could do it is to just clone the document, make the changes in the clone, and save that, but that forces me to be very careful about race conditions between the saving thread and the Update Manager's thread, which might have changes in progress. It looks like maybe I could suspend() and resume() the Update Manager to avoid that problem. Does anyone have a better idea on how I might go about this? -- View this message in context: http://www.nabble.com/update-DOM-without-rendering-tf3705320.html#a10362256 Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
