From 9eb2b9f6a3d2dc7c0f0d12b62dd46252576c8ce8 Mon Sep 17 00:00:00 2001 From: Linda Zheng Date: Sun, 6 Nov 2022 23:04:30 -0500 Subject: [PATCH] Bezier-rs: Convert 'arcs' wasm function from canvas to SVG rendering (#833) * Convert rotate demo to svg * Fix bugs in rotate * Fix bugs in rotate * Draft of decasteljau to svg * fixed de casteljau points to_svg impl * clean up wasm impl for de casteljau points * Use svg format in wasm for arcs * Update app.vue * Fix arcs as svg Co-authored-by: Linda Zheng * Remove comments * Reduce code duplication Co-authored-by: Thomas Cheng Co-authored-by: Hannah Li Co-authored-by: Keavon Chambers --- website/other/bezier-rs-demos/src/App.vue | 114 +++++++++--------- .../other/bezier-rs-demos/wasm/src/bezier.rs | 31 +++-- .../bezier-rs-demos/wasm/src/svg_drawing.rs | 18 +++ 3 files changed, 93 insertions(+), 70 deletions(-) diff --git a/website/other/bezier-rs-demos/src/App.vue b/website/other/bezier-rs-demos/src/App.vue index 9997d358..d71b2d96 100644 --- a/website/other/bezier-rs-demos/src/App.vue +++ b/website/other/bezier-rs-demos/src/App.vue @@ -6,7 +6,8 @@
-
+ +