W3C home > Mailing lists > Public > www-svg@w3.org > April 2008

Re: transform attribute causing problem

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 29 Apr 2008 15:20:22 +0200
To: "Eric Hamacher" <eric.hamacher@enetrix.com>
Cc: <www-svg@w3.org>
Message-ID: <ts7e149j3t0ns8f1a4rtcoa08uhlfcrca1@hive.bjoern.hoehrmann.de>

* Eric Hamacher wrote:
><g id="ida" transform="scale(3)">
><path id="testarrow"

As an aside, I would recommend to post samples to a separate site, such
as one of the many pastebin services or the www-archive mailing list, to
avoid issues like we have here, you wrapped the path data in the middle
of numbers, making the whole d attribute malformed.

>The path will not print.  When the 'transform="scale(3)"' is taken out,
>the path shows up.  I am using Batik 1.7 but is that what is causing the

The transformation does not scale the item e.g. using the middle of the
bounding box as center, so unless you position it around 0,0, scaling
will also shift it, and in your case probably shift it out of view. You
have to move it back into view. You could use e.g. scripting to find out
where it ends up, or use <animateTransform> to see how it's shifting.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 29 April 2008 13:21:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:18 UTC