1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-30 19:50:01 +02:00
This commit is contained in:
Pomax
2020-09-05 22:50:12 -07:00
parent bec07e3297
commit 9434a71d34
46 changed files with 1795 additions and 1623 deletions

View File

@@ -4,7 +4,7 @@ setup() {
setPanelCount(3);
this.pairReset();
this.setupEventListening();
setSlider(`.slide-control`, `epsilon`, 1.0, v => this.reset());
setSlider(`.slide-control`, `epsilon`, 1.0, v => this.reset(v));
}
pairReset() {
@@ -15,11 +15,12 @@ pairReset() {
this.reset();
}
reset() {
reset(v) {
if (next && next.disabled) next.disabled = false;
this.pairs = [[curve1, curve2]];
this.finals = [];
this.step = 0;
return v;
}
setupEventListening() {