geometry_io_svg/lib.rs
1//! SVG output for Cartesian geometries — a debugging convenience.
2//!
3//! Mirrors `boost/geometry/io/svg/svg_mapper.hpp`. Cartesian only: an
4//! [`SvgMapper`] accumulates geometries, tracks their combined bounding
5//! box, and emits a self-contained `<svg>` document mapping world
6//! coordinates to a fixed pixel canvas (y flipped, since SVG y grows
7//! downward).
8
9#![cfg_attr(not(feature = "std"), no_std)]
10#![forbid(unsafe_code)]
11
12extern crate alloc;
13
14mod mapper;
15
16// feature-group: I/O — SVG
17// feature-desc: Render geometries to SVG (debugging)
18// feature-keep: SvgMapper
19pub use mapper::SvgMapper;