Hello there,
 
A few days ago, I asked how I would be able to set the value of the scroll to a certain value, and Thomas (the ever dependeble one), told me that I should use the affine transform of the canvas, so, I added the following codes,
 

(x is the value i want for the canvas)

AffineTransform at = canvas.getRenderingTransform();
AffineTransform t = AffineTransform.getTranslateInstance(x, 0);
t.concatenate( at );
canvas.setRenderingTransform( t );

  and, ofcourse, what happened is that my canvas got translated x units, but the scroll remained in its position. How would I make the horzontal scroll to move to the value x?

And another one, my Boss, wants me to create a functionality where I would zoom the JSVGCanvas ( I also use the process similar above), but he want me to keep some of the SVG items in the canvas to remain static (not affected by zooming), is this possible? 

 

Thanks a lot for your replies

Philip Zuniga 

Reply via email to