W3C home > Mailing lists > Public > www-svg@w3.org > February 2001

RE: SVG Spec. Suggestions

From: Neil Stansbury <nstansbury@m85.com>
Date: Mon, 12 Feb 2001 16:09:45 +0000
Message-Id: <sa880adc.009@m85.com>
To: <www-svg@w3.org>
Something else that has just occured to me, correct me if I am wrong.

There are no explicit layer declarations at all.  "Layers" are implied by order in which they are rendered.  In which case I can see potential issues with the way multiple <g> elements are animated.  The example below hardcodes elements between the <g></g> tags, thus there is no way to manipulate an individual member, for example to the change stacking order, and how would you unassociate elements defined by a <g>?

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" 
  "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="5cm" height="5cm">
  <desc>Two groups, each of two rectangles
  </desc>
  <g id="group1" style="fill:red">
    <rect x="1cm" y="1cm" width="1cm" height="1cm" />
    <rect x="3cm" y="1cm" width="1cm" height="1cm" />
  </g>
  <g id="group2" style="fill:blue">
    <rect x="1cm" y="3cm" width="1cm" height="1cm" />
    <rect x="3cm" y="3cm" width="1cm" height="1cm" />
  </g>
</svg>

would it not be better to assign an id to an individual element, and then dynamically group and un-group those ids.  Perhaps these restrictions are as a result of an SVG element not being constructed in an implicit timeline?


Just MHO






Neil Stansbury
_____________________
Field Consultant
Mission Communications

nstansbury@m85.com
http://www.m85.com
Ph: +44 (0)20 8424 8815
Fx: +44 (0)20 8424 8813

 T e c h n o l o g y  f o r  e B u s i n e s s*
----------------------------------------------------------------------------------------------------
Confidentiality Notice:
This information is intended only for the use of the named 
recipient. Internet communications are not neccesarily 
secure and therefore Mission does not accept legal responsibility
for this message or its contents.  If you are not the intended
recipient, please notify us immediately and then delete this document. 
Do not disclose the contents of this document to any other person, 
nor take any copies.  Violation of this notice may be unlawful.
-----------------------------------------------------------------------------------------------------
Received on Monday, 12 February 2001 11:46:13 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:20 GMT