From 66a0da60f3980a56a7d5253971a277138b38afbe Mon Sep 17 00:00:00 2001 From: Zhen-Kai Gao Date: Fri, 27 Mar 2026 14:46:49 +0800 Subject: [PATCH 1/5] Update maximum scaling value to 9 in preferences and workspace schemas --- preferences_schema_2.json | 2 +- workspace_schema_1.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/preferences_schema_2.json b/preferences_schema_2.json index 049f098..83f70f0 100644 --- a/preferences_schema_2.json +++ b/preferences_schema_2.json @@ -49,7 +49,7 @@ "scaling": { "type": "integer", "minimum": 0, - "maximum": 7 + "maximum": 9 }, "colormap": { "type": "string" diff --git a/workspace_schema_1.json b/workspace_schema_1.json index ffa8258..b491bed 100644 --- a/workspace_schema_1.json +++ b/workspace_schema_1.json @@ -50,7 +50,7 @@ "scaling": { "type": "integer", "minimum": 0, - "maximum": 7 + "maximum": 9 }, "colorMap": { "type": "string" From 9973a872d16ccd4ba7f8f63b0e1adde3c38927ab Mon Sep 17 00:00:00 2001 From: Zhen-Kai Gao Date: Thu, 4 Jun 2026 14:18:23 +0800 Subject: [PATCH 2/5] Separate alpha into four kinds for Log, Power, Sinh, and Asinh --- preferences_schema_2.json | 19 +++++++++++++++++-- workspace_schema_1.json | 11 ++++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/preferences_schema_2.json b/preferences_schema_2.json index 83f70f0..23312b7 100644 --- a/preferences_schema_2.json +++ b/preferences_schema_2.json @@ -59,9 +59,24 @@ "minimum": 0, "maximum": 100 }, - "scalingAlpha": { + "scalingAlphaLog": { "type": "number", - "minimum": 0.1, + "minimum": 0.000001, + "maximum": 1000000 + }, + "scalingAlphaPower": { + "type": "number", + "minimum": 0.000001, + "maximum": 1000000 + }, + "scalingAlphaSinh": { + "type": "number", + "minimum": 0.000001, + "maximum": 1000000 + }, + "scalingAlphaAsinh": { + "type": "number", + "minimum": 0.000001, "maximum": 1000000 }, "scalingGamma": { diff --git a/workspace_schema_1.json b/workspace_schema_1.json index b491bed..61471be 100644 --- a/workspace_schema_1.json +++ b/workspace_schema_1.json @@ -70,7 +70,16 @@ "gamma": { "type": "number" }, - "alpha": { + "alphaLog": { + "type": "number" + }, + "alphaPower": { + "type": "number" + }, + "alphaSinh": { + "type": "number" + }, + "alphaAsinh": { "type": "number" }, "inverted": { From 79b26e3cf11160060f870f281b2e1662dabf8924 Mon Sep 17 00:00:00 2001 From: Zhen-Kai Gao Date: Fri, 5 Jun 2026 13:59:28 +0800 Subject: [PATCH 3/5] Refactor scaling alpha and gamma properties to use exclusiveMinimum constraint --- preferences_schema_2.json | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/preferences_schema_2.json b/preferences_schema_2.json index 23312b7..4460527 100644 --- a/preferences_schema_2.json +++ b/preferences_schema_2.json @@ -61,28 +61,23 @@ }, "scalingAlphaLog": { "type": "number", - "minimum": 0.000001, - "maximum": 1000000 + "exclusiveMinimum": 0 }, "scalingAlphaPower": { "type": "number", - "minimum": 0.000001, - "maximum": 1000000 + "exclusiveMinimum": 0 }, "scalingAlphaSinh": { "type": "number", - "minimum": 0.000001, - "maximum": 1000000 + "exclusiveMinimum": 0 }, "scalingAlphaAsinh": { "type": "number", - "minimum": 0.000001, - "maximum": 1000000 + "exclusiveMinimum": 0 }, "scalingGamma": { "type": "number", - "minimum": 0.1, - "maximum": 2 + "exclusiveMinimum": 0 }, "nanColorHex": { "type": "string", From aacb90efbd93f1e651efc4b12e3b21618f76c8a3 Mon Sep 17 00:00:00 2001 From: Zhen-Kai Gao Date: Fri, 5 Jun 2026 14:14:04 +0800 Subject: [PATCH 4/5] Remove maximum constraint from scaling properties in preferences and workspace schemas and let frontend fallback unsupported scaling values --- preferences_schema_2.json | 3 +-- workspace_schema_1.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/preferences_schema_2.json b/preferences_schema_2.json index 4460527..42e5eef 100644 --- a/preferences_schema_2.json +++ b/preferences_schema_2.json @@ -48,8 +48,7 @@ }, "scaling": { "type": "integer", - "minimum": 0, - "maximum": 9 + "minimum": 0 }, "colormap": { "type": "string" diff --git a/workspace_schema_1.json b/workspace_schema_1.json index 61471be..cf43db6 100644 --- a/workspace_schema_1.json +++ b/workspace_schema_1.json @@ -49,8 +49,7 @@ "properties": { "scaling": { "type": "integer", - "minimum": 0, - "maximum": 9 + "minimum": 0 }, "colorMap": { "type": "string" From c196c9a3957798251cca5259added39ea707a67f Mon Sep 17 00:00:00 2001 From: Zhen-Kai Gao Date: Fri, 5 Jun 2026 14:42:35 +0800 Subject: [PATCH 5/5] Add exclusiveMinimum constraint to gamma and alpha properties in workspace schema --- workspace_schema_1.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/workspace_schema_1.json b/workspace_schema_1.json index cf43db6..cb61e53 100644 --- a/workspace_schema_1.json +++ b/workspace_schema_1.json @@ -67,19 +67,24 @@ "type": "number" }, "gamma": { - "type": "number" + "type": "number", + "exclusiveMinimum": 0 }, "alphaLog": { - "type": "number" + "type": "number", + "exclusiveMinimum": 0 }, "alphaPower": { - "type": "number" + "type": "number", + "exclusiveMinimum": 0 }, "alphaSinh": { - "type": "number" + "type": "number", + "exclusiveMinimum": 0 }, "alphaAsinh": { - "type": "number" + "type": "number", + "exclusiveMinimum": 0 }, "inverted": { "type": "boolean"