diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index c99149b..b9611d2 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -171,8 +171,15 @@ function createSplineEditor(context, reset=false) { tensionWidget.callback = () => { tension = tensionWidget.value + points_to_sample = pointsWidget.value + let coords = samplePoints(pathElements[0], points_to_sample); + let coordsString = JSON.stringify(coords); + pointsStoreWidget.value = JSON.stringify(points); + if (coordWidget) { + coordWidget.value = coordsString; vis.render(); } +} pointsWidget.callback = () => { points_to_sample = pointsWidget.value