W3C home > Mailing lists > Public > www-svg@w3.org > September 2004

[SVGT12 Comment] Comments from Andrew Girow

From: Chris Lilley <chris@w3.org>
Date: Wed, 1 Sep 2004 17:31:03 +0200
Message-ID: <1482796406.20040901173103@w3.org>
To: www-svg@w3.org
This is a forwarded message
From: andrewgirow <andrewgirow@yahoo.com>
To: SVG-Mobile@yahoogroups.com
Date: Wednesday, September 1, 2004, 5:00:04 PM
Subject: [SVG-Mobile] SVG Tiny 1.2 DOM Feedback and Questions

===8<==============Original message text===============
While checking/ implementing SVG Tiny 1.2 DOM
 I got several questions:

1. THE COLOR TRAITS
In the A.2.6 Attribute and Property Access is written "Trait is the 
typed value (e.g., a number, not just a string) that gets assigned 
through an XML attribute"

The set trait for color uses two functions instead of one: 

setRGBColorTrait [null | SVGRGBColor]
setTrait(none | currentColor | inherit)

I see here a problem for application programmers who are not experts 
in SVG. Why there are two functions for the same type? 

The get trait for color uses just one function: getRGBColorTrait.
So, there is no way to know that the given PathElement, for example, 
uses the `currentColor' of the parent GroupElement. 

The get trait also does not allow to know that the PathElement fill 
attribute is inherited from the parent GroupElement. 

If the getRGBColorTrait returns null. What it is suppose to mean: 
none, currentColor or inherit?

The set and get traits must be consistent. If the program sets the 
fill attribute to `currentColor' it must be a way later on to check 
if this attribute equals to the `currentColor'.  
As I understand the whole idea behind traits is to provide strongly 
typed access to SVG attributes. In a case of color we have two types 
instead of one!

2. SVGSVGElement

In the SVGSVGElement there is a new attribute that could not be found 
in the previous versions of SVG DOM. 

attribute float currentRotate; // raises (DOMException) on setting

The question is how this parameter applied to the current 
transformation matrix?
Does it go after the currentTranslate of before? What are the order 
of operations now for the current transform? Do we need this at all? 
I mean that there is no explanation why it is in the DOM now.

3. Fixed Points vs Float Points 
Most mobile devices on the market use CLDC Java that does not have 
floating point numbers. What do you think about to have also the same 
SVG Tiny 1.2 DOM API with fixed-point numbers? 


That's all for now I will keep checking….;)
Andrew Girow
www.tinyline.com







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k0XrlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SVG-Mobile/

<*> To unsubscribe from this group, send an email to:
    SVG-Mobile-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

===8<===========End of original message text===========



-- 
 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 Member, W3C Technical Architecture Group

attached mail follows:


Received on Wednesday, 1 September 2004 15:31:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:55 UTC