@vitessce/utils 3.3.5 → 3.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist-tsc/components.d.ts +1 -0
- package/dist-tsc/components.d.ts.map +1 -1
- package/dist-tsc/components.js +5 -1
- package/package.json +1 -1
- package/src/components.ts +5 -1
package/dist/index.js
CHANGED
|
@@ -438,8 +438,9 @@ function getInitialCoordinationScopeName(datasetUid, dataType, i = null) {
|
|
|
438
438
|
}
|
|
439
439
|
const DEFAULT_DARK_COLOR = [50, 50, 50];
|
|
440
440
|
const DEFAULT_LIGHT_COLOR = [200, 200, 200];
|
|
441
|
+
const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
|
|
441
442
|
function getDefaultColor(theme) {
|
|
442
|
-
return theme === "dark" ? DEFAULT_DARK_COLOR : DEFAULT_LIGHT_COLOR;
|
|
443
|
+
return theme === "dark" ? DEFAULT_DARK_COLOR : theme === "light" ? DEFAULT_LIGHT_COLOR : DEFAULT_LIGHT2_COLOR;
|
|
443
444
|
}
|
|
444
445
|
const PALETTE = [
|
|
445
446
|
[68, 119, 170],
|
package/dist-tsc/components.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const DEFAULT_DARK_COLOR: number[];
|
|
2
2
|
export declare const DEFAULT_LIGHT_COLOR: number[];
|
|
3
|
+
export declare const DEFAULT_LIGHT2_COLOR: number[];
|
|
3
4
|
export declare function getDefaultColor(theme: 'dark' | 'light' | 'light2'): number[];
|
|
4
5
|
export declare const PALETTE: number[][];
|
|
5
6
|
export declare const VIEWER_PALETTE: number[][];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,UAAe,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,UAAe,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAkB,CAAC;AACnD,eAAO,MAAM,oBAAoB,UAAkB,CAAC;AAEpD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,YAKjE;AAGD,eAAO,MAAM,OAAO,YAUnB,CAAC;AAEF,eAAO,MAAM,cAAc,YAS1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAS7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,YAiBnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAW5B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;CAAmB,CAAC;AAEnD,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,aAC5C,MAAM,UACxB;AAED,wBAAgB,iCAAiC,CAAC,aAAa,EAAE,MAAM,oBAC7C,GAAG,UAC5B;AAED,wBAAgB,6BAA6B,CAAC,aAAa,EAAE,MAAM,eAC9C;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,UACtC;AAED,wBAAgB,6BAA6B,CAAC,aAAa,EAAE,MAAM,eAC9C;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,UACtC;AAED,wBAAgB,8BAA8B,CAAC,aAAa,EAAE,MAAM,eAC/C,GAAG,UACvB;AAED,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,cAC7C,GAAG,UACtB;AAED,wBAAgB,4BAA4B,eAG3C;AAGD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,cAK7C;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,GAAG;;;EAKxC;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,UAWtD"}
|
package/dist-tsc/components.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// Originally in src/components/utils.js
|
|
2
2
|
export const DEFAULT_DARK_COLOR = [50, 50, 50];
|
|
3
3
|
export const DEFAULT_LIGHT_COLOR = [200, 200, 200];
|
|
4
|
+
export const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
|
|
4
5
|
export function getDefaultColor(theme) {
|
|
5
|
-
|
|
6
|
+
// eslint-disable-next-line no-nested-ternary
|
|
7
|
+
return theme === 'dark'
|
|
8
|
+
? DEFAULT_DARK_COLOR
|
|
9
|
+
: (theme === 'light' ? DEFAULT_LIGHT_COLOR : DEFAULT_LIGHT2_COLOR);
|
|
6
10
|
}
|
|
7
11
|
// From https://personal.sron.nl/~pault/#sec:qualitative
|
|
8
12
|
export const PALETTE = [
|
package/package.json
CHANGED
package/src/components.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
// Originally in src/components/utils.js
|
|
2
2
|
export const DEFAULT_DARK_COLOR = [50, 50, 50];
|
|
3
3
|
export const DEFAULT_LIGHT_COLOR = [200, 200, 200];
|
|
4
|
+
export const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
|
|
4
5
|
|
|
5
6
|
export function getDefaultColor(theme: 'dark' | 'light' | 'light2') {
|
|
6
|
-
|
|
7
|
+
// eslint-disable-next-line no-nested-ternary
|
|
8
|
+
return theme === 'dark'
|
|
9
|
+
? DEFAULT_DARK_COLOR
|
|
10
|
+
: (theme === 'light' ? DEFAULT_LIGHT_COLOR : DEFAULT_LIGHT2_COLOR);
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
// From https://personal.sron.nl/~pault/#sec:qualitative
|