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

Re: marker orient

From: Jon Ferraiolo <jferraio@Adobe.COM>
Date: Fri, 23 Mar 2001 09:37:49 -0800
Message-Id: <4.2.2.20010323093455.04b77380@mailsj.corp.adobe.com>
To: Stephane Conversy <conversy@emn.fr>
Cc: www-svg@w3.org
At 11:23 AM 3/23/01 +0100, Stephane Conversy wrote:
>Hello.
>
>There is an inconstitency between idl and dtd+RFC for
>the 'orient' attribute in marker.
>
>There is an 'orient' attribute in the dtd, but in the idl we have
>both an 'orientType' and an 'orientAngle' attribute.
>
>Which one is right, the dtd or the idl ?

Both are correct. The DTD specifies an attribute that can take either a 
keyword value 'auto' or an <angle>. The SVG DOM represents the 'orient' 
attribute via two DOM attributes, the first of which (orientType) is an 
enumeration which indicates whether the keyword 'auto' or an <angle> was 
provided. orientType can have one of the following values:

// Marker Orientation Types
const unsigned short SVG_MARKER_ORIENT_UNKNOWN = 0;
const unsigned short SVG_MARKER_ORIENT_AUTO = 1;
const unsigned short SVG_MARKER_ORIENT_ANGLE = 2;

Then, if orientType==SVG_MARKER_ORIENT_ANGLE, then you look at orientAngle 
to retrieve the <angle> value.

Jon Ferraiolo
SVG Editor
jferraio@adobe.com



>regards,
>
>--
>stephane conversy
>ecole des mines de nantes
>
Received on Friday, 23 March 2001 13:02:01 GMT

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