W3C home > Mailing lists > Public > www-svg@w3.org > May 2014

Re: Bounding box of a group with a transformed child

From: Paul LeBeau <paul.lebeau@gmail.com>
Date: Wed, 28 May 2014 03:08:20 +1200
Message-ID: <CACfsppBmcYjr3_NC_1MZCPB89dtDbZu2YHXB6jUi+UgMsd+YTg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-svg <www-svg@w3.org>
Yeah good point.  That was a bad argument anyway because fills are
transformed along with the object.  So they aren't affected.  Filters will
be, but most of them won't be visually altered by a filter region that is a
bit too large.

sqrt(2) is the biggest error for a single object.  But if you have a group
of objects, chances are high that the error will be much lower when the
bboxes are unioned.


On 28 May 2014 02:28, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 5/27/14, 10:01 AM, Paul LeBeau wrote:
>> I'm not saying that there aren't potentially large variations between
>> the cheat and the correct bbox.  Just that in most cases where you are
>> applying a pattern or gradient, the shape probably has an aspect ration
>> that is not far from 1:1.
> The original example in this thread was a circle, which definitely has an
> aspect ratio of 1:1.  But the correct bounding box for a
> rotated-by-45-degrees circle is a factor of sqrt(2) smaller than the cheat
> bounding box.
> -Boris
Received on Tuesday, 27 May 2014 15:09:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:53 UTC