|
@@ -70,7 +70,7 @@ enum SiteIndexes {
|
|
|
Periplasm = 8
|
|
|
};
|
|
|
|
|
|
-// Old default values - it is overwritten by ult_* CSS classes
|
|
|
+// Old default values - it is overwritten by ult_* CSS classes, except in case of Node.JS
|
|
|
// See below updateSiteColors().
|
|
|
const siteColors = [
|
|
|
Color.fromArray([255,100,100], 0), // Side1
|
|
@@ -96,6 +96,15 @@ const siteCssNames = [
|
|
|
"ult_periplasm"
|
|
|
];
|
|
|
|
|
|
+// If runtime env is Node.JS
|
|
|
+if (typeof window === 'undefined') {
|
|
|
+ siteColors.push(
|
|
|
+ Color.fromArray([255,0,0], 0), // Inside
|
|
|
+ Color.fromArray([0,0,255], 0) // Outside
|
|
|
+ );
|
|
|
+ siteCssNames.push('ult_inside', 'ult_outside' );
|
|
|
+}
|
|
|
+
|
|
|
const regionColorMapFromCss = new Map();
|
|
|
|
|
|
// set default values
|