/* Dotted and dashed styles on the arrowhead are ugly (dds) */
/* linewidth needs to be reset */
gvrender_begin_context(gvc);
- gvrender_set_style(gvc, BaseLineStyle);
+ gvrender_set_style(gvc, gvc->defaultlinestyle);
/* generate arrowhead vector */
u.x -= p.x;
#define MAX_CODEGENS 100
-char *BaseLineStyle[3] = { "solid\0", "setlinewidth\0001\0", 0 };
+static char *defaultlinestyle[3] = { "solid\0", "setlinewidth\0001\0", 0 };
int Obj;
static attrsym_t *G_peripheries;
A[1] = pointof(A[0].x - sz.x, A[0].y);
A[2] = dotneato_closest(spl, lp->p);
/* Don't use edge style to draw attachment */
- gvrender_set_style(gvc, BaseLineStyle);
+ gvrender_set_style(gvc, gvc->defaultlinestyle);
/* Use font color to draw attachment
- need something unambiguous in case of multicolored parallel edges
- defaults to black for html-like labels
gvc->defaultfontsize = late_double(g->proto->n, N_fontsize, DEFAULT_FONTSIZE,
MIN_FONTSIZE);
+ /* default line style */
+ gvc->defaultlinestyle = defaultlinestyle;
+
gvc->graphname = g->name;
gvc->lib = Lib;
}
EXTERN double yf_off; /* y_off in inches */
EXTERN attrsym_t *g_draw;
EXTERN attrsym_t *g_l_draw;
- external char *BaseLineStyle[]; /* solid, width = 1 */
EXTERN attrsym_t
* N_height, *N_width, *N_shape, *N_color, *N_fillcolor,
/* set basic graphics context */
gvrender_begin_context(gvc);
/* Need to override line style set by node. */
- gvrender_set_style(gvc, BaseLineStyle);
+ gvrender_set_style(gvc, gvc->defaultlinestyle);
if (tbl->data.pencolor)
gvrender_set_pencolor(gvc, tbl->data.pencolor);
else
char *defaultfontname;
double defaultfontsize;
+ /* default line style */
+ char **defaultlinestyle;
+
gvstyle_t styles[MAXNEST]; /* style stack - reused by each job */
int SP;