diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 394cee1..6a602db 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -187,8 +187,8 @@ app.registerExtension({ this.splineEditor.parentEl.className = "spline-editor"; this.splineEditor.parentEl.id = `spline-editor-${this.uuid}` element.appendChild(this.splineEditor.parentEl); - - chainCallback(this, "onGraphConfigured", function() { + + chainCallback(this, "onConfigure", function() { createSplineEditor(this); }); @@ -394,6 +394,10 @@ function createSplineEditor(context, reset=false) { context.setSize([context.size[0], h + 410]); updatePath(); } + pointsStoreWidget.callback = () => { + points = JSON.parse(pointsStoreWidget.value); + updatePath(); + } // Initialize or reset points array var drawHandles = false;