John wrote:
I invoke setSVGDocument to set the JSVGCanvas's SVG document. A shape is partially off screen. I translate the view over some to show the offcanvas part of the shape… Uh oh, the offcanvas part of the shape has been clipped off! That circle/triangle/blob has it’s end chopped off! Rerendering/translating/zooming/rotating doesn't do anything, the shape remains clipped. The end remains chopped off!

You don't provide sample content, but I suspect that you need to set 'overflow="visible"' on the outermost SVG element. Otherwise it creates a clip rect that maches the bounds of the svg element.


It appears that the JSVGCanvas caches a version of my SVG document limited to the visible portions and never changes it. It simply never render shapes/shapeparts that were offcanvas when the SVGDocument was first set. I want my shapes to be whole. What do I do?



2 possible solutions I see:



(1) Set the initial transform on the canvas so all shapes in the document are visible from the start. I have found no way to do this. The transform seems to be reset everytime setSVGDocument is invoked. I can find no way to have a transform in effect when invoking setSVGDocument.



(2) Use some kind of updateRendering method that takes a preexisting transform into account. It'd be pretty much the same as (1) then I guess.



Help!





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to