From 2f53c19ee2eab85693a738ac662016c53b2ba4f6 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 6 May 2024 00:04:51 +0300 Subject: [PATCH 1/3] Update spline_editor.js --- web/js/spline_editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 8f03f66..aa33843 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -357,6 +357,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; From 25a925001b5fc303fcc4d07ef33567278ac15e47 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 6 May 2024 00:22:06 +0300 Subject: [PATCH 2/3] Update spline_editor.js --- web/js/spline_editor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index aa33843..6966de4 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -187,8 +187,9 @@ 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() { + console.log(this) createSplineEditor(this); }); From 3bb38c967ba9bb8ef33384d05e1d24900c2f6ca0 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 6 May 2024 00:23:05 +0300 Subject: [PATCH 3/3] Update spline_editor.js --- web/js/spline_editor.js | 1 - 1 file changed, 1 deletion(-) diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 6966de4..42d1495 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -189,7 +189,6 @@ app.registerExtension({ element.appendChild(this.splineEditor.parentEl); chainCallback(this, "onConfigure", function() { - console.log(this) createSplineEditor(this); });