Skip to main content

graphviz_pure_core/
lib.rs

1//! Core data structures, error types, geometry primitives, and tables for `graphviz-pure`.
2
3pub mod charset;
4pub mod color;
5mod color_table;
6pub mod diag;
7pub mod error;
8pub mod font;
9pub mod geom;
10pub mod graph;
11pub mod math;
12
13pub use color::{
14    RgbaColor, format_svg_color, resolve_color, resolve_color_with_scheme, warn_unknown_color,
15};
16pub use error::{GraphvizError, Result};
17pub use font::{
18    DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_LABEL_FONT_SIZE, LINESPACING, LabelSubstContext,
19    TextJustify, TextLabelLayout, TextLineLayout, estimate_text_size, estimate_text_width_1pt,
20    measure_multiline_label, measure_multiline_label_with_context,
21};
22pub use geom::{BezierSegment, BoundingBox, Point, Spline};
23pub use graph::{
24    AttrDicts, AttrMap, AttrSym, CLUST_NODE_KEY, CLUSTER_LIST_KEY, EdgeData, EdgeId, Graph,
25    GraphKind, HEAD_PORT_NAME_KEY, IGNORED_EDGE_INPUT_KEYS, IGNORED_EDGE_KEY, NO_EDGE_INIT_KEY,
26    NO_GRAPH_LABEL_KEY, NODE_LW_RW_KEY, NodeData, NodeId, Port, REGISTERED_CLUSTER_KEY, SEQ_KEY,
27    SubgraphData, SubgraphId, TAIL_PORT_NAME_KEY, UNPLACED_PORT_LABELS_KEY,
28    UNREGISTERED_CLUSTER_KEY, has_cluster_prefix,
29};