Re: Problem with large coordinates?
Rick <[email protected]> Wed, 17 Feb 2010 09:13:39 -0500
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
If I remember correctly (I haven't looked it up) The limit is not imposed by the sped, it is implementation dependent. On Wed, Feb 17, 2010 at 5:08 AM, praveen <[email protected]> wrote: > Robert, > > I've noticed that it happens in Linux (Firefox 3.5.6) as well. > > > Thanks, > Praveen > _______________________________________________ > dev-tech-svg mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-svg > FYI: Data size minimums from the 1.1 spec. See: http://www.w3.org/TR/SVG/types.html Minimums are based on conformance levels <http://www.w3.org/TR/SVG/conform.html>. <integer> An <integer> is specified as an optional sign character ('+' or '-') followed by one or more digits "0" to "9". If the sign character is not present, the number is non-negative. Unless stated otherwise for a particular attribute or property<http://www.w3.org/TR/SVG/intro.html#TermProperty>, the range for a <integer> encompasses (at a minimum) -2147483648 to 2147483647. Within the SVG DOM, an <integer> is represented as an long or an SVGAnimatedInteger<http://www.w3.org/TR/SVG/types.html#InterfaceSVGAnimatedInteger>. <number> (real number value): The specification of real number values is different for property <http://www.w3.org/TR/SVG/intro.html#TermProperty>values than for XML attribute values. - CSS2 [CSS2 <http://www.w3.org/TR/2008/REC-CSS2-20080411/>] states that a property <http://www.w3.org/TR/SVG/intro.html#TermProperty> value which is a <number> is specified in decimal notation (i.e., a <decimal-number>), which consists of either an <integer><http://www.w3.org/TR/SVG/types.html#DataTypeInteger>, or an optional sign character followed by zero or more digits followed by a dot (.) followed by one or more digits. Thus, for conformance with CSS2, any property <http://www.w3.org/TR/SVG/intro.html#TermProperty> in SVG which accepts <number> values is specified in decimal notation only. - For SVG's XML attributes, to provide as much scalability in numeric values as possible, real number values can be provided either in decimal notation <http://www.w3.org/TR/SVG/types.html#DataTypeDecimalNumber> or in scientific notation (i.e., a <scientific-number>), which consists of a <decimal-number><http://www.w3.org/TR/SVG/types.html#DataTypeDecimalNumber>immediately followed by the letter "e" or "E" immediately followed by an <integer> <http://www.w3.org/TR/SVG/types.html#DataTypeInteger>. Unless stated otherwise for a particular attribute or property<http://www.w3.org/TR/SVG/intro.html#TermProperty>, a <number> has the capacity for at least a single-precision floating point number (see [ICC32 <http://www.color.org/ICC-1A_1999-04.PDF>]) and has a range (at a minimum) of -3.4e+38F to +3.4e+38F. It is recommended that higher precision floating point storage and computation be performed on operations such as coordinate system transformations to provide the best possible precision and to prevent round-off errors. Conforming High-Quality SVG Viewers<http://www.w3.org/TR/SVG/conform.html#ConformingHighQualitySVGViewers>are required to use at least double-precision floating point (see [ ICC32 <http://www.color.org/ICC-1A_1999-04.PDF>]) for intermediate calculations on certain numerical operations. Within the SVG DOM, a <number> is represented as a float or an SVGAnimatedNumber<http://www.w3.org/TR/SVG/types.html#InterfaceSVGAnimatedNumber>. -- Cheers! Rick