mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-08 05:08:13 +08:00
Bezier-rs: Added curve outline functions (#789)
* Implement offset and reverse Co-authored-by: Rob Nadal <robnadal44@gmail.com> * Initial work on graduated outline Co-authored-by: Rob Nadal <robnadal44@gmail.com> * Handle linear case for graduated scale * Added skewed outline, fixed graduated scale hourglass bug * Removed test code * Update comments * Fix linting issue * Improve comments * Comment fixes Co-authored-by: Hannah Li <hannahli2010@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
Hannah Li
Keavon Chambers
parent
a695584d36
commit
56060b8e5f
@@ -108,7 +108,7 @@ impl Bezier {
|
||||
}
|
||||
|
||||
/// Return the string argument used to create a curve in an SVG `path`, excluding the start point.
|
||||
pub(crate) fn svg_curve_argument(&self) -> String {
|
||||
pub fn svg_curve_argument(&self) -> String {
|
||||
let handle_args = match self.handles {
|
||||
BezierHandles::Linear => SVG_ARG_LINEAR.to_string(),
|
||||
BezierHandles::Quadratic { handle } => {
|
||||
|
||||
Reference in New Issue
Block a user