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
Comments
Post a Comment