W3C home > Mailing lists > Public > www-svg@w3.org > August 2003

Re: SVG1.2 and web applications

From: Antoine Quint <ml@graougraou.com>
Date: Tue, 19 Aug 2003 11:21:45 +0200
Message-Id: <8D9A11E2-D226-11D7-9DE2-000393D124C4@graougraou.com>
Cc: www-svg@w3.org
To: Bernhard Zwischenbrugger <bz@datenkueche.com>

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 GMT

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