From 8a9c874b629e978849205ba8c3155490437181c6 Mon Sep 17 00:00:00 2001
From: Xiao Gui <xgui3783@gmail.com>
Date: Mon, 5 Oct 2020 17:26:58 +0200
Subject: [PATCH] chore: fix waxholm v3 datasets

---
 src/res/ext/waxholmRatV2_0.json          | 20 +++++++-------------
 src/ui/parcellationRegion/region.base.ts |  2 +-
 2 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/src/res/ext/waxholmRatV2_0.json b/src/res/ext/waxholmRatV2_0.json
index 477d3ee0e..a6cd785fe 100644
--- a/src/res/ext/waxholmRatV2_0.json
+++ b/src/res/ext/waxholmRatV2_0.json
@@ -3796,6 +3796,12 @@
                             193,
                             45
                           ],
+                          "fullId": {
+                            "kg": {
+                              "kgSchema": "minds/core/parcellationregion/v1.0.0",
+                              "kgId": "0db35172-495f-494d-9c14-01a2d6c7e398"
+                            }
+                          },
                           "children": []
                         },
                         {
@@ -3932,19 +3938,7 @@
                           "kgSchema": "minds/core/parcellationregion/v1.0.0",
                           "kgId": "b4ab5ba5-0753-4ffb-80f9-ccd5d85cb6ac"
                         }
-                      },
-                      "relatedAreas": [
-                        {
-                          "name": "Rat Neocortex (v3)",
-                          "fullId": {
-                            "kg": {
-                              "kgSchema": "minds/core/parcellationregion/v1.0.0",
-                              "kgId": "0db35172-495f-494d-9c14-01a2d6c7e398",
-                              "alternateOf": []
-                            }
-                          }
-                        }
-                      ]
+                      }
                     },
                     {
                       "ngId": "v3",
diff --git a/src/ui/parcellationRegion/region.base.ts b/src/ui/parcellationRegion/region.base.ts
index ade02dd17..955d0591d 100644
--- a/src/ui/parcellationRegion/region.base.ts
+++ b/src/ui/parcellationRegion/region.base.ts
@@ -25,7 +25,7 @@ export class RegionBase {
     const rgb = this._region.rgb || (this._region.labelIndex && intToRgb(Number(this._region.labelIndex))) || [255, 200, 200]
     this.rgbString = `rgb(${rgb.join(',')})`
     const [_h, _s, l] = rgbToHsl(...rgb)
-    this.rgbDarkmode = l < 0.65
+    this.rgbDarkmode = l < 0.5
   }
 
   get region(){
-- 
GitLab