Oh good! The center of mass (centroid or first central moment) is also a graphically relevant construct, so we should think about that too! It’s easily scriptable for integrable curves (well, heck, I suppose they don’t even need to be integrable* do they?) but declarative access to the centroid would be good for realistic rotation (even sans gravity).
Cheers David *since they can be drawn with finitely many pixels. From: [email protected] [mailto:[email protected]] On Behalf Of Cameron McCormack Sent: Tuesday, January 24, 2012 9:20 PM To: [email protected] Cc: David Dailey Subject: Re: [svg-developers] Scaling from center point of element David Dailey: > As often as I've seen this question in the past n years (for some n > k) I'd > have to resurrect the suggestion that scaling and rotation relative to the > center be added to the spec: > > transform="scale(2, centroid)" or transform="rotate(90, BBCenter)" , or > something like it, just oughta make sense. Yep, and the plan to enable this is for SVG2 to follow the combined SVG/CSS Transforms spec, where transform will become a property (instead of an attribute) and the transform-origin property will also be available. So in the future you'll be able to do: <g transform="scale(2)" transform-origin="50% 50%"> [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/

