Skip to main content

Crate graphviz_pure_core

Crate graphviz_pure_core 

Source
Expand description

Core data structures, error types, geometry primitives, and tables for graphviz-pure.

Re-exports§

pub use color::RgbaColor;
pub use color::format_svg_color;
pub use color::resolve_color;
pub use color::resolve_color_with_scheme;
pub use color::warn_unknown_color;
pub use error::GraphvizError;
pub use error::Result;
pub use font::DEFAULT_FONT_NAME;
pub use font::DEFAULT_FONT_SIZE;
pub use font::DEFAULT_LABEL_FONT_SIZE;
pub use font::LINESPACING;
pub use font::LabelSubstContext;
pub use font::TextJustify;
pub use font::TextLabelLayout;
pub use font::TextLineLayout;
pub use font::estimate_text_size;
pub use font::estimate_text_width_1pt;
pub use font::measure_multiline_label;
pub use font::measure_multiline_label_with_context;
pub use geom::BezierSegment;
pub use geom::BoundingBox;
pub use geom::Point;
pub use geom::Spline;
pub use graph::AttrDicts;
pub use graph::AttrMap;
pub use graph::AttrSym;
pub use graph::CLUST_NODE_KEY;
pub use graph::CLUSTER_LIST_KEY;
pub use graph::EdgeData;
pub use graph::EdgeId;
pub use graph::Graph;
pub use graph::GraphKind;
pub use graph::HEAD_PORT_NAME_KEY;
pub use graph::IGNORED_EDGE_INPUT_KEYS;
pub use graph::IGNORED_EDGE_KEY;
pub use graph::NO_EDGE_INIT_KEY;
pub use graph::NO_GRAPH_LABEL_KEY;
pub use graph::NODE_LW_RW_KEY;
pub use graph::NodeData;
pub use graph::NodeId;
pub use graph::Port;
pub use graph::REGISTERED_CLUSTER_KEY;
pub use graph::SEQ_KEY;
pub use graph::SubgraphData;
pub use graph::SubgraphId;
pub use graph::TAIL_PORT_NAME_KEY;
pub use graph::UNPLACED_PORT_LABELS_KEY;
pub use graph::UNREGISTERED_CLUSTER_KEY;
pub use graph::has_cluster_prefix;

Modules§

charset
Byte-faithful strings and the graph charset (lib/common/input.c, utils.c).
color
Color translation tables, hex/HSV parsing, and SVG color formatting ported from Graphviz 16.1.0 (lib/common/colxlate.c, lib/common/colortbl.h, lib/common/color.h).
diag
Diagnostics as lib/cgraph/agerror.c reports them: agerrorf prints Error: ... and raises the error level that dot’s main returns as its exit status (graphviz_errors + agerrors()), while the layout and the output go on. agwarningf prints Warning: ... and does not change the status.
error
font
Built-in font metrics lookup tables and text/label sizing ported from Graphviz 16.1.0 (lib/common/textspan_lut.c, lib/common/textspan.c, lib/common/ps_font_equiv.h, and lib/common/labels.c).
geom
graph
math
Transcendental functions, called as math::hypot(x, y) the way the C sources call hypot(x, y).