1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-27 00:29:00 +02:00

error-only for http-server, better parameter parsing for sketch markup

This commit is contained in:
Pomax
2020-08-27 11:36:17 -07:00
parent 46f94282e1
commit b2314a4f87
47 changed files with 130 additions and 293 deletions

View File

@@ -138,19 +138,6 @@ class GraphicsAPI extends BaseAPI {
points.forEach((p) => this.movable.push(p));
}
/**
* Get a parameter specified via data-attribute
*/
getParameter(name, fallback) {
let val = this.dataset[name];
if (val) {
let asFloat = parseFloat(val);
if (val == asFloat) return asFloat;
return val;
}
return fallback;
}
/**
* Set up a slider to control a named, numerical property in the sketch.
*