Skip to main content

Crate rust_motion_paths

Crate rust_motion_paths 

Source
Expand description

Rust Motion Paths — SVG path parsing, metrics, and stroke evolution utilities.

Ported from @remotion/paths:

Re-exports§

pub use bounding_box::get_bounding_box;
pub use bounding_box::get_instructions_bounding_box;
pub use evolve_path::evolve_path;
pub use evolve_path::evolve_path_with_length;
pub use interpolate::approximate_path_length;
pub use interpolate::interpolate_path;
pub use length::arc_segment_length;
pub use length::get_instructions_length;
pub use length::get_length;
pub use parser::parse_path;
pub use parser::serialize_instructions;
pub use parser::PathParseError;
pub use point_at_length::get_point_at_length;
pub use subpaths::get_subpaths;
pub use tangent::get_tangent_angle_at_length;
pub use tangent::get_tangent_at_length;
pub use transform::reset_path;
pub use transform::reverse_path;
pub use transform::rotate_path;
pub use transform::scale_path;
pub use transform::translate_path;
pub use transform::warp_path;
pub use types::BoundingBox;
pub use types::EvolvedPath;
pub use types::Instruction;
pub use types::Point;

Modules§

bounding_box
Bounding box computation for SVG paths.
evolve_path
SVG path evolution for line drawing animations.
interpolate
SVG path interpolation and length approximation utilities.
length
SVG path length calculation.
parser
SVG path parser and serializer.
point_at_length
Point calculation at specific distance along an SVG path.
subpaths
SVG subpath extraction.
tangent
SVG path tangent vector computation.
transform
SVG path geometric transformations.
types
SVG path types and data structures.