Hi, On Mon, 2006-05-15 at 12:47 +0800, philip zuniga wrote: > Yes, they were both good suggestions. the next question is when I zoom > the canvas, the objects that i want to remain static are not affected > by the zooming but, they move, this is caused by the zooming of the > canvas, but how would I offset the movement of the items? > > Philip
Assuming the initial transform is identity transform, just calculate the offset using identity transform as base. eg: - calculate the x,y of upperleft coord against initial transform - zoom - calculate the x,y of upperleft coord against zoom transform - calculate the diff or offset of x,y before and after zoom Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
