I’m using Raphael to build a map-like site.
when panning and zooming I want some objects to be in the middle, there for I need to know where is the middle in perspective to the current viewbox (not the paper). How can I know the center of the paper’s viewbox after a lot of manipulations?
I’m using Raphael to build a map-like site. when panning and zooming I want
Share
The center of the viewbox can be calculated by dividing the viewbox width and height by 2 and adding the x/y offsets.