From 785463387b5671181bcd5613cfbba5c17fbb192f Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Thu, 25 Apr 2024 18:14:30 +0300 Subject: [PATCH] Update spline_editor.js --- web/js/spline_editor.js | 7 +++++++ 1 file changed, 7 insertions(+) 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