javascript - SVG: How can I grabs paths within coords -


i have various paths being generated , added svg group .

now have (x, y, width , height) combinations available. select paths fall within , group them.

any idea how identify paths?

thanks! -sri

in order geometric boundingbox of svg element can call getbbox dom method.

in raphael, may use

element.getbbox();

which returns object following properties.

x:      number       top left corner x y:      number       top left corner y x2:     number       bottom right corner x y2:     number       bottom right corner y width:  number       width height: number       height  

refer: http://raphaeljs.com/reference.html#element.getbbox.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -