bezierf bzf;
splinesf offspl, tmpspl;
pointf pf0, pf1, pf2 = { 0, 0 }, pf3, *offlist, *tmplist;
- double scale, numc2;
+ double arrowsize, numc2;
char* p;
#define SEP 2.0
setColorScheme (agget (e, "colorscheme"));
if (ED_spl(e)) {
- scale = late_double(e, E_arrowsz, 1.0, 0.0);
+ arrowsize = late_double(e, E_arrowsz, 1.0, 0.0);
color = late_string(e, E_color, "");
/* need to know how many colors separated by ':' */
}
}
arrow_gen(job, EMIT_TDRAW, bz.sp, bz.list[0],
- scale, job->obj->penwidth, bz.sflag);
+ arrowsize, job->obj->penwidth, bz.sflag);
}
if (bz.eflag) {
if (color != headcolor) {
}
}
arrow_gen(job, EMIT_HDRAW, bz.ep, bz.list[bz.size - 1],
- scale, job->obj->penwidth, bz.eflag);
+ arrowsize, job->obj->penwidth, bz.eflag);
}
free(colors);
for (i = 0; i < offspl.size; i++) {
FALSE, FALSE);
if (bz.sflag) {
arrow_gen(job, EMIT_TDRAW, bz.sp, bz.list[0],
- scale, job->obj->penwidth, bz.sflag);
+ arrowsize, job->obj->penwidth, bz.sflag);
}
if (bz.eflag) {
arrow_gen(job, EMIT_HDRAW, bz.ep, bz.list[bz.size - 1],
- scale, job->obj->penwidth, bz.eflag);
+ arrowsize, job->obj->penwidth, bz.eflag);
}
/* arrow_gen resets the job style
* If we have more splines to do, restore the old one.
extern void add_box(path *, box);
extern void arrow_flags(Agedge_t * e, int *sflag, int *eflag);
- extern boxf arrow_bb(pointf p, pointf u, double scale, int flag);
+ extern boxf arrow_bb(pointf p, pointf u, double arrowsize, int flag);
extern void arrow_gen(GVJ_t * job, emit_state_t emit_state, point p, point u,
- double scale, double penwidth, int flag);
+ double arrowsize, double penwidth, int flag);
extern double arrow_length(edge_t * e, int flag);
extern int arrowEndClip(edge_t*, point*, int, int , bezier*, int eflag);
extern int arrowStartClip(edge_t*, point* ps, int, int, bezier*, int sflag);