W3C home > Mailing lists > Public > www-svg@w3.org > November 2013

Re: Automatic centering and positioning

From: Alex Bell <alex@bellandwhistle.net>
Date: Fri, 08 Nov 2013 15:22:58 -0800
Message-ID: <20131108152258.18235sfnz8dg0fgy@webmail.bellandwhistle.net>
To: paul.lebeau@gmail.com
Cc: www-svg@w3.org
Paul LeBeau wrote:

I have spent a bit of time on Stack Overflow lately, answering questions on
SVG.  It seems a very common use case that people want to centre elements
inside other elements.  For example, text in a circle, image in a box.

I have been wondering if this use case has been discussed before and
whether there were any previous proposals or interest in adding some sort
of feature that can automatically position elements with respect to a box
or other element.

***********

I'm all for authoring convenience, but mutual centering is achievable  
in Illustrator (for example) with one click on the "Align" tab. Also,  
how would the new feature take account of matrix transformations on  
the element being aligned to? Or would it just refer to the bounding  
box? Would the positioning reference be chainable, i.e. an element  
centered with respect to an element centered with respect to another  
element?

Paul, was element nesting one of your ideas for this? Can you explain more?

-Alex
Received on Friday, 8 November 2013 23:23:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:34 UTC