Expand description
vsvg
is a library crate to manipulate vector graphics, with a focus on SVG and
pen-plotter applications. It’s inspired upon vpype
, the
Swiss-Army-knife command-line tool for plotter vector graphics.
Modules§
- exports
- Export of core dependencies.
Macros§
- test_
file - Macro to return a test file path located in
resources/fixtures
. - trace_
function - trace_
scope
Structs§
- Angle
- An angle in radians, with facilities for parsing and formatting.
- Angle
Sampler - Catmull
Rom - A Catmull-Rom spline.
- Color
- Document
- Document
Metadata - Flattened
Document - Flattened
Layer - Flattened
Path - Index
Builder - Layer
- Layer
Metadata - Layer
Stats - Length
- A physical length, described by a value and a
Unit
. - Length
Sampler - Path
- Path
Index - Path
Item - Path
Metadata - Point
- Polyline
- A
Polyline
is a sequence of connectedPoint
s. It’s considered closed if the first and last points are the same.
Enums§
- Angle
Error - Length
Error - Page
Size - Reindex
Strategy - Unit
- A distance unit.
- Unit
Error - Errors related to
Unit
Constants§
- COLORS
- DEFAULT_
TOLERANCE - PAGE_
SIZES - SMALL_
UNITS - List of reasonably small units that are typically useful for drawings..
- UNITS
- List of all available units, useful for iteration.
Traits§
- Crop
- Implement cropability for a geometric type.
- Document
Trait - Draw
- Into
BezPath - Can be converted into a
BezPath
. - Into
BezPath Tolerance - Provided a tolerance, can be converted into a
BezPath
. - Layer
Trait - Path
Data Trait - Path
Trait - SvgPath
Writer - Transforms