How to completely move Raphael's canvas (which contains some objects) from one coordinate to another coordinate to some other coordinate constant

I created Raphael content here. http://jsfiddle.net/ryWH3/76/

Now I need to move all the contents of Raphael's canvas from one coordinate to another coordinate.

Example:

My Raphael canvas is at - x_coordinate: 100, y_coordinate: 100

Now I want to move it to - x: 200, y: 200

From the old coordinates, I want to move all this content to - x: 150, y: 150

again to some other coordinates from the last coordinates

Please suggest me move this content

Thank you Nagarjuna

+3
source share
2 answers

, , , , r. , :

r.forEach(function (el) {
   el.translate(200,200);
});

, :

, :

Text.animate({transform: "t100,100"}, 1000);
smallCircles.animate({transform: "t100,100"}, 1000);
bigCircles.animate({transform: "t100,100"}, 1000);

+1

jquery, ...

$(paper.canvas).css({top:topPosition, left: leftPosition});

Paper.canvas - , dom .

0

All Articles