5#if defined(AST_WITH_AGG)
7#include "agg/agg_color_rgba.h"
8#include "agg/agg_math_stroke.h"
9#include "path_converters.h"
17 double linewidth = 1.5;
18 agg::rgba color{0.122, 0.467, 0.706, 1.0};
19 agg::line_cap_e cap = agg::square_cap;
20 agg::line_join_e join = agg::round_join;
21 bool antialiased =
true;
22 e_snap_mode snap = SNAP_AUTO;
24 double dash_offset = 0.0;
25 std::vector<double> dash_pattern;
28 double simplify_threshold = 0.111111;
30 double sketch_scale = 0.0;
31 double sketch_length = 0.0;
32 double sketch_randomness = 0.0;
34 bool is_dashed()
const {
return !dash_pattern.empty(); }
35 double linewidth_px(
double dpi)
const {
return linewidth * dpi / 72.0; }