From 4eaffd0e5adca50fa81a87af262864f5dbcaca09 Mon Sep 17 00:00:00 2001 From: Hannah Li Date: Mon, 27 Jun 2022 19:33:56 -0400 Subject: [PATCH] Bezier split and trim implementation (#680) * Added split implementation and UI Co-authored-by: Thomas Cheng * Added bezier split impl * Adjust struct traits * Implement trim and adjust FE code to handle multiple sliders per feature Co-authored-by: Thomas Cheng Co-authored-by: Rob Nadal * Fix edge case in trim and add rust doc comments * Stylistic changes per review * More stylistic changes per review * replaced last explicit color usages Co-authored-by: Robert Nadal Co-authored-by: Thomas Cheng Co-authored-by: Thomas Cheng --- bezier-rs/docs/interactive-docs/src/App.vue | 111 ++++++++++++------ .../src/components/BezierDrawing.ts | 8 +- .../src/components/Example.vue | 11 +- .../src/components/SliderExample.vue | 13 +- .../interactive-docs/src/utils/drawing.ts | 59 ++++++---- .../docs/interactive-docs/src/utils/types.ts | 10 +- .../docs/interactive-docs/wasm/src/lib.rs | 49 ++++---- bezier-rs/lib/src/lib.rs | 65 ++++++++-- 8 files changed, 224 insertions(+), 102 deletions(-) diff --git a/bezier-rs/docs/interactive-docs/src/App.vue b/bezier-rs/docs/interactive-docs/src/App.vue index 816561fd0..5289b25cc 100644 --- a/bezier-rs/docs/interactive-docs/src/App.vue +++ b/bezier-rs/docs/interactive-docs/src/App.vue @@ -2,7 +2,7 @@

Bezier-rs Interactive Documentation

This is the interactive documentation for the bezier-rs library. Click and drag on the endpoints of the example curves to visualize the various Bezier utilities and functions.

-
+

@@ -13,7 +13,7 @@