]> granicus.if.org Git - graphviz/commitdiff
correct viewport W,H behavior for graphquest to work again
authorellson <devnull@localhost>
Tue, 25 Sep 2007 17:15:36 +0000 (17:15 +0000)
committerellson <devnull@localhost>
Tue, 25 Sep 2007 17:15:36 +0000 (17:15 +0000)
doc/info/attrs.html
lib/common/emit.c

index 837dca89830f05544498c8a8bbaf17bfa06c19c0..c76ab20adb3fd4eedccf8fd34bd67d44f7933d85 100644 (file)
@@ -1805,8 +1805,7 @@ the given types.
   dimensions (width and height) of the viewport image, in
   <A HREF=#points>points</A>,
   in the original graph drawing.
-  The optional Z is the zoom factor, i.e., the resulting image will be
-  Z*W by Z*H points in size. By default, Z is 1.
+  The optional Z is the zoom factor.  By default, Z is 1.
   The optional pair (x,y) give the position in the graph, in 
   <A HREF=#points>points</A>, of the center 
   of the viewport. To focus on a particular node, (x,y) can be set to the 
index 71e6db278d91e5c8a5963787b71f4c89f99e3b08..b20bc11f29eb98f095c9996133468acfd1878109 100644 (file)
@@ -637,8 +637,7 @@ static void init_job_pagination(GVJ_t * job, graph_t *g)
     pointf centering = {0.0, 0.0}; /* centering offset - points */
 
     /* unpaginated image size - in points - in graph orientation */
-    imageSize.x = job->zoom*job->view.x;
-    imageSize.y = job->zoom*job->view.y;
+    imageSize = job->view;
 
     /* rotate imageSize to page orientation */
     if (job->rotation)
@@ -2037,9 +2036,7 @@ static void init_job_viewport(GVJ_t * job, graph_t * g)
 
        /* job->view gives port size in graph units, unscaled or rotated
         * job->focus gives center of port in graph units
-        * job->zoom gives scaling factor for viewport in device; that is,
-        * final image will be (view.x*zoom, view.y*zoom) (possibly
-        * rotated).
+        * job->zoom gives scaling factor for viewpor
         */
     job->view.x = X;
     job->view.y = Y;