html5 canvas - Kineticjs Stage Cordinates after scaling -


i'm using kineticjs allow users free hand drawing shapes on canvas , able zoom in/out canvas stage setting scale.

challenge:

am not getting updated scaled coordinates values after zoom in/out. suggestion appreciated.

as far know, coordinates don't scaled, because thing changing 'setscale()' method zoom.

so, if want know tne coordinates in scaled stage have store scale amount in variable , when need coordinate after scaling, multiply original shape coordinate scale of stage.

this approach, not sure if there other way ;)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -