W3C home > Mailing lists > Public > www-svg@w3.org > August 2012

Re: Clarification on getBBox() with shapes of zero width

From: Rick <graham.rick@gmail.com>
Date: Tue, 7 Aug 2012 14:47:21 -0400
Message-ID: <CAGDjS3cuw124fSNxutiqYnUzYUD5p9OmftjkJ4DDo=AKtB5Y=A@mail.gmail.com>
To: Robert Longson <longsonr@gmail.com>
Cc: www-svg@w3.org, dschulze@adobe.com, jackalmage@gmail.com, pdr@google.com
On Tue, Aug 7, 2012 at 2:03 PM, Robert Longson <longsonr@gmail.com> wrote:

> >> If you want the shape included then give it a small non-zero
> width/height hidden visibility.
>

Making a rectangle of zero width not render is logical, but it is still a
legal rectangle object and can be interacted with, so it should have
geometry semantics.

Giving zero widths/heights a small value is an ugly hack.  There must be a
better way.

Is there no bottleneck in Cairo where you could discard ineligible shapes?

-- 
"*A child is a person who can't understand why someone would give away a
perfectly good kitten.*"
-- Doug Larson
Received on Tuesday, 7 August 2012 18:47:48 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:51 GMT