]> granicus.if.org Git - graphviz/commitdiff
start at fixing missing mapping in html tables
authorellson <devnull@localhost>
Tue, 29 Aug 2006 21:31:50 +0000 (21:31 +0000)
committerellson <devnull@localhost>
Tue, 29 Aug 2006 21:31:50 +0000 (21:31 +0000)
lib/common/emit.c

index bbfbc2e3dd69a51ccab93043548f5b5a8c604488..d6838aa35b6a288cabc16173f4b9a93c9126b022 100644 (file)
@@ -1507,6 +1507,29 @@ static bool edge_in_box(edge_t *e, boxf b)
     return FALSE;
 }
 
+#if 0
+static void map_label(GVJ_t *job, textlabel_t *lab)
+{
+    obj_state_t *obj = job->obj;
+    int flags = job->flags;
+
+    if (flags & GVRENDER_DOES_MAP_RECTANGLE) {
+       obj->map_shape = MAP_RECTANGLE;
+       p = N_NEW(2, pointf);
+    }
+    else {
+       obj->map_shape = MAP_POLYGON;
+       p = N_NEW(2, pointf);
+    }
+    P2RECT(lab->p, p, lab->dimen.x / 2., lab->dimen.y / 2.);
+    if (! (flags & GVRENDER_DOES_TRANSFORM))
+       gvrender_ptf_A(job, p, p, 2);
+    if (! (flags & GVRENDER_DOES_MAP_RECTANGLE))
+       rect2poly(p);
+    obj->map_p = p;
+}
+#endif
+
 static void emit_begin_edge(GVJ_t * job, edge_t * e)
 {
     obj_state_t *obj;