RE: [svg-developers] getBBox of a stroked object

I'm forwarding this discussion to the SVG Working Group, in hopes that
something like getStrokedBBox() could be added to SVG 2.0.
There are times that one would want to know the actual footprint of
something with its stroke. Apologies if this has already been discussed here
-- I seem to recall a thread, but a scan of the last few months of the
archives didn't reveal it.

(see the example at )


-----Original Message-----
From: []
On Behalf Of Jeff Schiller
Sent: Saturday, September 17, 2011 10:59 AM
Subject: Re: [svg-developers] getBBox of a stroked object

svg-edit uses its own getStrokedBBox() function:

which, as you say, was non-trivial.


On Sat, Sep 17, 2011 at 7:11 AM, David Dailey

> **
> I'm certain this topic has been discussed before (perhaps even by me), so
> please forgive any duplication. In the example at
> the bounding box around
> the curve (as drawn by script) does not factor in the stroke-width. Is
> there
> a method that does this? Given that the bounds of the stroke will be
> parallel to the curve itself and I assume (though I don't see instructions
> in the spec [1] ) that offsets are determined by lines perpendicular to
> tangents to the curve at its endpoints, calculating the actual bounding
> might not be an easy scripting exercise.
> Thanks in advance
> David
> [1]

<*> To change settings via email:

<*> To unsubscribe from this group, send an email to:

<*> Your use of Yahoo! Groups is subject to:

Received on Saturday, 17 September 2011 15:48:33 UTC