svg-edit uses its own getStrokedBBox() function: http://code.google.com/p/svg-edit/source/browse/trunk/editor/svgcanvas.js#645
which, as you say, was non-trivial. Jeff On Sat, Sep 17, 2011 at 7:11 AM, David Dailey <[email protected]>wrote: > ** > > > I'm certain this topic has been discussed before (perhaps even by me), so > please forgive any duplication. In the example at > http://granite.sru.edu/~ddailey/svg/B/bbox2.3.svg 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 box > might not be an easy scripting exercise. > > Thanks in advance > > David > > [1] http://www.w3.org/TR/SVG/painting.html#StrokeProperties > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

