[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [cgmo-webcgm] New draft snapshot
"- Added setAttributeNS(). We were able to set WebCGM attributes but
not the non-WebCGM one."
Hi all,Title: WebCGM DOM
Attached you will find a new draft of the spec. There are no green
boxes in this one, which is a good sign.
The changes are:
- Removed the Hyperlink interface. I couldn't get Hyperlinks
working with the 'attributes' attribute of the Node interface since
Hyperlinks were not deriving from Node. Instead, I propose that
Hyperlinks and 'name's be expressed using DOMStringList objects.
- Changed the datatype of the 'value' attribute on the Attr
interface from DOMString to DOMStringList since we have several
attributes in WebCGM that can take more than a single value.
- Changed setters/getters on the AppStructure interface to handle
DOMStringList.
- Added RemoveEventListener on the Picture interface.
- Removed linkuri specific APIs from DOM.
- 'src' attribute was moved from getWebCGMDocument interface to the
Metafile interface (this is closer to what other technologies are doing).
- Changed 'number' datatype to a 'float'. Number was
underspecified.
- Changed 'integer' datatype to 'unsigned short'. Integer was
underspecified.
- Modified wording for 'namespaceURI', 'prefix' and 'localName'.
- Added setAttributeNS(). We were able to set WebCGM attributes but
not the non-WebCGM one.
- 'intensity' is still intensity; here's why... I tried to come up
with other names (whiteout, fadeout, lightness, etc...), but all of
them in my opinion were prone to be misinterpreted.
What I did do however, is to make the wording of the spec very clear
that this attribute makes colors whiter. I've inserted the equation
and added an example to remove any misinterpretation of the
equation. If this attribute name is unacceptable to some group
members I'll be happy to change it to something else once consensus
is reached in emails.
- Added 'pictid' to the Picture interface. Itedo noticed that
pictid is used in linkuris but that they were currently no way
for accessing a pictid given a Picture object. It is currently set
as a readonly attribute.
Please send comments regarding latest draft to the mailing list.
My next document will likely be one proposing a set of rules and
pseudocode for the applyCompanionFile method.
--
Benoit mailto:benoit@itedo.com
WebCGM Document Object Model (DOM) Specification[...]1. WebCGM Document Object Model[...]1.1.3 Coordinate values -- Normalized VDC (NVDC)In a WebCGM instance, the representation of coordinates (VDC) is influenced by several CGM elements: VDC TYPE, VDC EXTENT, and SCALE MODE. WebCGM requires that SCALE MODE be 'metric', but places few other constraints. Therefore VDC (times some scale factor) are equivalent to millimeters, but otherwise the coordinate system could have a lot of variability: upper-left or lower-left origin, right-handed or left-handed, integer values or real values (floating or fixed), etc. To simplify working with coordinates, the WebCGM DOM defines and uses a canonical, normalized coordinate system, Normalized VDC (NVDC). NVDC units are millimeters, in a coordinate system whose origin corresponds to the lower left corner of the VDC extent, with the X axis pointing to the right, and the Y axis pointing up. The following examples illustrate the correspondence between NVDC and VDC values for several WebCGM instances. Example 1: Simplest possible example, the VDC and the NVDC are identical
The picture's VDC have lower-left origin, X increases to right, Y
increases up, picture is 150 mm wide and 100 mm high. The NVDC are
identical,: (0.,0.) for lower-left corner, (150.,100.) for upper-right
corner. If
Example 2: The VDC define an upper-left origin, and correspond to a U.S. paper size of 8.5x11.0 inches:
In VDC space, the origin is the upper-left corner, X increases to right, Y
increases down. In NVDC space, the lower-left corner coordinates (as always)
are (0,0) and the upper right corner is (215.9,279.4). If
Example 3: (Do we need an integer VDC Type example, maybe with a centered or non-corner origin? Or just the general case...) In the general case, if VDC Extent coordinates are
1.2 Fundamental Interfaces[...] clientX of type float, readonly The horizontal coordinate at which the event occurred expressed in Normalized VDC. clientY of type float, readonly The vertical coordinate at which the event occurred expressed in Normalized VDC.
[...] |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]