mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-28 18:49:57 +02:00
error-only for http-server, better parameter parsing for sketch markup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
let curve;
|
||||
|
||||
setup() {
|
||||
const type = this.getParameter(`type`, `quadratic`);
|
||||
const type = this.parameters.type ?? `quadratic`;
|
||||
curve = (type === `quadratic`) ? Bezier.defaultQuadratic(this) : Bezier.defaultCubic(this);
|
||||
setMovable(curve.points);
|
||||
}
|
||||
|
Reference in New Issue
Block a user