Return-Path: Delivered-To: apmail-xml-batik-users-archive@www.apache.org Received: (qmail 396 invoked from network); 11 Jan 2005 11:29:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jan 2005 11:29:38 -0000 Received: (qmail 52881 invoked by uid 500); 11 Jan 2005 11:29:38 -0000 Delivered-To: apmail-xml-batik-users-archive@xml.apache.org Received: (qmail 52574 invoked by uid 500); 11 Jan 2005 11:29:37 -0000 Mailing-List: contact batik-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Batik Users" Delivered-To: mailing list batik-users@xml.apache.org Received: (qmail 52561 invoked by uid 99); 11 Jan 2005 11:29:37 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of Thomas.DeWeese@kodak.com designates 192.232.121.200 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (192.232.121.200) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 03:29:36 -0800 Received: from roc-us-e1000-111.kodak.com (roc-us-e1000-111.kodak.com [192.232.121.191]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j0BBTYI22042 for ; Tue, 11 Jan 2005 06:29:34 -0500 (EST) Received: from (165.170.8.93) by roc-us-e1000-111.kodak.com via smtp id 602d_153b7e3c_63c5_11d9_9aac_0002b3efa0be; Tue, 11 Jan 2005 06:36:49 -0500 (EST) Message-ID: <41E3B89B.10808@Kodak.com> Date: Tue, 11 Jan 2005 06:29:31 -0500 From: Thomas DeWeese Organization: Eastman Kodak Company User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Batik Users Subject: Re: Centering the SVG References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Danilo Costa wrote: > I have an SVG file displayed on a JSVGCanvas and I need to recenter > the visible area passing the new center coords using the viewBox > coords not the screen corrds. > > Anybody knows how is the simplest way to do this? I would suggest looking at the code in: org.apache.batik.apps.svgbrowser.FindDialog ~ line 348. You might also look at using JSVGCanvas.getViewBoxTransform which will give you the transform from viewBox to Screen coords. --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For additional commands, e-mail: batik-users-help@xml.apache.org