Loading ...
Sorry, an error occurred while loading the content.

Re: Accessing Paths based on bounds.

Expand Messages
  • HelderMagalhaes
    ... Hi wrinkledcheese, ... Checkout methods such as getIntersectionList and getEnclosureList (and/or their boolean counterparts, checkIntersection and
    Message 1 of 3 , Mar 31, 2013
    View Source
    • 0 Attachment
      > Hello all,

      Hi wrinkledcheese,


      > I want to access all paths that fall within a certain bounds.

      Checkout methods such as "getIntersectionList" and "getEnclosureList" (and/or their boolean counterparts, checkIntersection and checkEnclosure) [1]. I believe they offer exactly what you're looking for... ;-)


      > I'm hoping there is something in jQuery or D3 that can help me [...]

      These are native methods which should already be in most SVG implementations, so no need for add-ons. Note that, nevertheless, you should test them in your target environments, as implementations such as WebKit (Safari/Chrome/etc.) and Gecko (Firefox) have "only" added support for this about 1-2 years ago (so very outdated versions don't have these methods available).


      Hope this helps,
      Helder


      [1] http://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__getIntersectionList
    • HelderMagalhaes
      Follow-up on my previous post... ... Unfortunately, I thought this had landed already but it s not the case, so it s still not available in Firefox. :-( You
      Message 2 of 3 , Mar 31, 2013
      View Source
      • 0 Attachment
        Follow-up on my previous post...

        > These are native methods which should already be in most SVG implementations [...] and Gecko (Firefox) have "only" added support for this about 1-2 years ago [...]

        Unfortunately, I thought this had landed already but it's not the case, so it's still not available in Firefox. :-(

        You can follow progress and/or vote on bug 501421 [1].

        [1] https://bugzilla.mozilla.org/show_bug.cgi?id=501421
      Your message has been successfully submitted and would be delivered to recipients shortly.