Bezier split and trim implementation (#680)

* Added split implementation and UI

Co-authored-by: Thomas Cheng <Androxium@users.noreply.github.com>

* Added bezier split impl

* Adjust struct traits

* Implement trim and adjust FE code to handle multiple sliders per feature

Co-authored-by: Thomas Cheng <contact.chengthomas@gmail.com>
Co-authored-by: Rob Nadal <robnadal44@gmail.com>

* 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 <Robnadal44@gmail.com>
Co-authored-by: Thomas Cheng <Androxium@users.noreply.github.com>
Co-authored-by: Thomas Cheng <contact.chengthomas@gmail.com>
This commit is contained in:
Hannah Li
2022-06-27 19:33:56 -04:00
committed by Keavon Chambers
co-authored by Thomas Cheng Thomas Cheng Rob Nadal
parent 7f15cac5e2
commit 4eaffd0e5a
8 changed files with 224 additions and 102 deletions
@@ -30,8 +30,8 @@ export default defineComponent({
required: true,
},
options: {
type: String,
default: "",
type: Object as PropType<Record<string, number>>,
default: () => ({}),
},
},
mounted() {
@@ -40,8 +40,11 @@ export default defineComponent({
this.bezierDrawing.updateBezier();
},
watch: {
options() {
this.bezierDrawing.updateBezier(this.options);
options: {
deep: true,
handler() {
this.bezierDrawing.updateBezier(this.options);
},
},
},
});