Re: SVG1.2 and web applications

Hi Bernhard,

On Monday, August 18, 2003, at 5:37 PM, Bernhard Zwischenbrugger wrote:

> o draw BBox, convert Screen coordinates to CTM coordinates (ASV3.0 is 
> buggy)
> ASV6.0 still has problems with nested SVG Elements.
> o Scrollbars (CTM, Screen.x/y)

Both of these are fairly trivial with correct support for the 
SVGLocatable methods, as supported by ASV6 for instance. I fail to see 
what ASV6 issues you are refering to, my code for converting coords 
back and forth works fine.

> -------------
>
> I also have problems with style and transform attributes:
>
> Example:
> <rect x="10" y="10" width="20" height="20" transform="translate(4,4) 
> rotate
> (10,3) matrix(3,8) transform(-4,7) matrix(3 4 2 6 4 8)"/>
>
> The transform attribute can have lots of values and it would be nice if
> there would be a function "normalizeTransform" that converts the 
> transform
> attribute to something like
> <rect x="xxx" y="xx" width="xxx" height="xxx" transform="matrix(a b c 
> d 0 0)"/>
> (the matrix has zero for transX transY)

You can do this:

var m = element.getTransformToElement(element.parentNode);
var canon = print('matrix(' + m.a + ' ' + m.b + ' ' + m.c + ' ' + m.d + 
' ' + m.e + ' ' + m.f + ')');

Antoine
-- 
Antoine Quint <antoine.quint@fuchsia-design.com>
SVG Consultant & Research Scientist, Fuchsia Design
W3C SVG Working Group Invited Expert

Received on Tuesday, 19 August 2003 05:22:05 UTC