Return-Path: X-Original-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1E75C898 for ; Sat, 12 May 2012 17:10:40 +0000 (UTC) Received: (qmail 98058 invoked by uid 500); 12 May 2012 17:10:40 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 97998 invoked by uid 500); 12 May 2012 17:10:39 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 97991 invoked by uid 99); 12 May 2012 17:10:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 17:10:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thomas.deweese@gmail.com designates 209.85.216.51 as permitted sender) Received: from [209.85.216.51] (HELO mail-qa0-f51.google.com) (209.85.216.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 17:10:29 +0000 Received: by qaea16 with SMTP id a16so2723085qae.3 for ; Sat, 12 May 2012 10:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:x-priority:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=lGfCT79V9nXkKq9QN6sWC0GR8vdX/2948ESPJcea3Fg=; b=cGddHS8nhfeFUX1FIqew1JBgfuNmcWLzERnB41hjgrhlujlf6GFeu+xb0IdUYsy/QU Ex34vTZ1dKuRxSCAjuYgc8kfxa17mBa66o2uEOGO8dDhNsrF+U962XTgGzdCFvzZStjg 1SKNu9j9KASQQsv1oAh/7+0uifC1Iy84ceGbB85EuPPJ2HO0WrJTgVZygmY92hlLKFoh lURCrDUCCEZpXG7qtz1P+KTrZVerUZpgAKuo8a2xT01a8FoOPFpTWGLx88Zbpvm3gOI9 sjh9gV1qxmnOceM8Z+rfZNGLitcifKniToEHLb2Wg9eRuHVmVuMnTScRUpbcxde+3l7B T4og== Received: by 10.229.137.15 with SMTP id u15mr1077057qct.36.1336842608793; Sat, 12 May 2012 10:10:08 -0700 (PDT) Received: from new-host-2.home (pool-108-20-138-223.bstnma.fios.verizon.net. [108.20.138.223]) by mx.google.com with ESMTPS id ej8sm19750482qab.15.2012.05.12.10.10.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 May 2012 10:10:07 -0700 (PDT) Subject: Re: Set a zooming-strategy to an SVGCanvas Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: DeWeese Thomas X-Priority: 3 (Normal) In-Reply-To: Date: Sat, 12 May 2012 13:10:05 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3a75411b06fa68b78cc67c730314159b.squirrel@sec-ssl.de> <31522EF3-52A9-4F54-BDDF-80B0F11592F8@gmail.com> To: batik-users@xmlgraphics.apache.org X-Mailer: Apple Mail (2.1257) Hi Marco, There was a bug in the case where recenterOnResize was set to = false that caused it to not include the updated viewing transform. This is = now fixed in SVN. Thomas On May 11, 2012, at 4:31 AM, ml@mherrn.de wrote: > Hi, >=20 >>> The example application and SVG file are attached to this mail. >>=20 >> I didn't see them show up as attachments. >=20 > Damn. I forgot the attachments.... > Included in this mail now. :-) >=20 >>> When the application starts, the image is always displayed as = expected. >>> But when extending the width of the window, the image starts = beginning >>> to >>> move out of the canvas on the top. Addionally when lowering the = width of >>> the window, the image starts to move down inside the canvas (not = staying >>> in the top left corner). >>=20 >> Do you have 'recenterOnResize' enabled? That might react badly = to your >> reimplementation of calculateViewingTransform. >=20 > Yes, recenterOnResize was enabled. But if I set = recenterOnResize=3Dfalse, > nothing gets scaled at all! (And I don't know why. It seems I really = have > to view through some implementation details in JSVGCanvas.) >=20 >>> 2. What am I doing wrong here (or where is my misunderstanding)? >>=20 >> It is very easy to make small mistakes in the calculation of >> AffineTransforms >> that can lead to effects like this. Resize is especially tricky = because >> it requires a >> trip through the SVG Document event handlers and it's complex to get = the >> viewing >> transform and the display transform to behave sensibly. >=20 > Actually, I thought what I am doing would't be that tricky, because my > current implementation is far from complex. Well, it is now attached. > Maybe you see my mistake. :-) >=20 >=20 > Regards > Marco > --------------------------------------------------------------------- > To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org > For additional commands, e-mail: = batik-users-help@xmlgraphics.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org