@vitessce/vit-s 2.0.3 → 3.0.0

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.
Files changed (216) hide show
  1. package/dist/index.js +41348 -0
  2. package/dist-tsc/CallbackPublisher.d.ts +18 -0
  3. package/dist-tsc/CallbackPublisher.d.ts.map +1 -0
  4. package/dist-tsc/CallbackPublisher.js +62 -0
  5. package/dist-tsc/LoadingIndicator.d.ts +2 -0
  6. package/dist-tsc/LoadingIndicator.d.ts.map +1 -0
  7. package/dist-tsc/LoadingIndicator.js +26 -0
  8. package/dist-tsc/TitleInfo.d.ts +2 -0
  9. package/dist-tsc/TitleInfo.d.ts.map +1 -0
  10. package/dist-tsc/TitleInfo.js +74 -0
  11. package/dist-tsc/VitS.d.ts +45 -0
  12. package/dist-tsc/VitS.d.ts.map +1 -0
  13. package/dist-tsc/VitS.js +119 -0
  14. package/dist-tsc/VitessceGrid.d.ts +23 -0
  15. package/dist-tsc/VitessceGrid.d.ts.map +1 -0
  16. package/dist-tsc/VitessceGrid.js +60 -0
  17. package/dist-tsc/VitessceGrid.test.d.ts +2 -0
  18. package/dist-tsc/VitessceGrid.test.d.ts.map +1 -0
  19. package/dist-tsc/VitessceGrid.test.js +40 -0
  20. package/dist-tsc/Warning.d.ts +2 -0
  21. package/dist-tsc/Warning.d.ts.map +1 -0
  22. package/dist-tsc/Warning.js +45 -0
  23. package/dist-tsc/classNames.d.ts +8 -0
  24. package/dist-tsc/classNames.d.ts.map +1 -0
  25. package/dist-tsc/classNames.js +8 -0
  26. package/dist-tsc/data/AbstractLoader.d.ts +22 -0
  27. package/dist-tsc/data/AbstractLoader.d.ts.map +1 -0
  28. package/dist-tsc/data/AbstractLoader.js +18 -0
  29. package/dist-tsc/data/AbstractTwoStepLoader.d.ts +6 -0
  30. package/dist-tsc/data/AbstractTwoStepLoader.d.ts.map +1 -0
  31. package/dist-tsc/data/AbstractTwoStepLoader.js +7 -0
  32. package/dist-tsc/data/LoaderResult.d.ts +7 -0
  33. package/dist-tsc/data/LoaderResult.d.ts.map +1 -0
  34. package/dist-tsc/data/LoaderResult.js +7 -0
  35. package/dist-tsc/data/index.d.ts +4 -0
  36. package/dist-tsc/data/index.d.ts.map +1 -0
  37. package/dist-tsc/data/index.js +3 -0
  38. package/dist-tsc/data/loader-registry.d.ts +9 -0
  39. package/dist-tsc/data/loader-registry.d.ts.map +1 -0
  40. package/dist-tsc/data/loader-registry.js +27 -0
  41. package/dist-tsc/data-hook-utils.d.ts +69 -0
  42. package/dist-tsc/data-hook-utils.d.ts.map +1 -0
  43. package/dist-tsc/data-hook-utils.js +173 -0
  44. package/dist-tsc/data-hooks.d.ts +77 -0
  45. package/dist-tsc/data-hooks.d.ts.map +1 -0
  46. package/dist-tsc/data-hooks.js +241 -0
  47. package/dist-tsc/errors/AbstractLoaderError.d.ts +10 -0
  48. package/dist-tsc/errors/AbstractLoaderError.d.ts.map +1 -0
  49. package/dist-tsc/errors/AbstractLoaderError.js +13 -0
  50. package/dist-tsc/errors/DataSourceFetchError.d.ts +8 -0
  51. package/dist-tsc/errors/DataSourceFetchError.d.ts.map +1 -0
  52. package/dist-tsc/errors/DataSourceFetchError.js +13 -0
  53. package/dist-tsc/errors/DatasetNotFoundError.d.ts +6 -0
  54. package/dist-tsc/errors/DatasetNotFoundError.d.ts.map +1 -0
  55. package/dist-tsc/errors/DatasetNotFoundError.js +17 -0
  56. package/dist-tsc/errors/LoaderNotFoundError.d.ts +10 -0
  57. package/dist-tsc/errors/LoaderNotFoundError.d.ts.map +1 -0
  58. package/dist-tsc/errors/LoaderNotFoundError.js +17 -0
  59. package/dist-tsc/errors/LoaderValidationError.d.ts +10 -0
  60. package/dist-tsc/errors/LoaderValidationError.d.ts.map +1 -0
  61. package/dist-tsc/errors/LoaderValidationError.js +15 -0
  62. package/dist-tsc/errors/index.d.ts +6 -0
  63. package/dist-tsc/errors/index.d.ts.map +1 -0
  64. package/dist-tsc/errors/index.js +5 -0
  65. package/dist-tsc/hooks.d.ts +80 -0
  66. package/dist-tsc/hooks.d.ts.map +1 -0
  67. package/dist-tsc/hooks.js +271 -0
  68. package/dist-tsc/index.d.ts +11 -0
  69. package/dist-tsc/index.d.ts.map +1 -0
  70. package/dist-tsc/index.js +10 -17
  71. package/dist-tsc/plugins.test.fixtures.d.ts +61 -0
  72. package/dist-tsc/plugins.test.fixtures.d.ts.map +1 -0
  73. package/dist-tsc/plugins.test.fixtures.js +76 -0
  74. package/dist-tsc/schemas/config-0.1.0.schema.json +84 -0
  75. package/dist-tsc/schemas/config-1.0.0.schema.json +733 -0
  76. package/dist-tsc/schemas/config-1.0.1.schema.json +909 -0
  77. package/dist-tsc/schemas/config-1.0.10.schema.json +969 -0
  78. package/dist-tsc/schemas/config-1.0.11.schema.json +990 -0
  79. package/dist-tsc/schemas/config-1.0.12.schema.json +997 -0
  80. package/dist-tsc/schemas/config-1.0.13.schema.json +1013 -0
  81. package/dist-tsc/schemas/config-1.0.14.schema.json +1048 -0
  82. package/dist-tsc/schemas/config-1.0.15.schema.json +1048 -0
  83. package/dist-tsc/schemas/config-1.0.16.schema.json +1089 -0
  84. package/dist-tsc/schemas/config-1.0.2.schema.json +910 -0
  85. package/dist-tsc/schemas/config-1.0.3.schema.json +910 -0
  86. package/dist-tsc/schemas/config-1.0.4.schema.json +949 -0
  87. package/dist-tsc/schemas/config-1.0.5.schema.json +949 -0
  88. package/dist-tsc/schemas/config-1.0.6.schema.json +949 -0
  89. package/dist-tsc/schemas/config-1.0.7.schema.json +949 -0
  90. package/dist-tsc/schemas/config-1.0.8.schema.json +965 -0
  91. package/dist-tsc/schemas/config-1.0.9.schema.json +965 -0
  92. package/dist-tsc/schemas/obsSets.schema.d.ts +179 -0
  93. package/dist-tsc/schemas/obsSets.schema.d.ts.map +1 -0
  94. package/dist-tsc/schemas/obsSets.schema.js +195 -0
  95. package/dist-tsc/schemas/obsSetsTabular.schema.d.ts +57 -0
  96. package/dist-tsc/schemas/obsSetsTabular.schema.d.ts.map +1 -0
  97. package/dist-tsc/schemas/obsSetsTabular.schema.js +38 -0
  98. package/dist-tsc/schemas/raster.schema.d.ts +239 -0
  99. package/dist-tsc/schemas/raster.schema.d.ts.map +1 -0
  100. package/dist-tsc/schemas/raster.schema.js +120 -0
  101. package/dist-tsc/shared-mui/components.d.ts +2 -0
  102. package/dist-tsc/shared-mui/components.d.ts.map +1 -0
  103. package/dist-tsc/shared-mui/components.js +29 -0
  104. package/dist-tsc/shared-mui/container.d.ts +2 -0
  105. package/dist-tsc/shared-mui/container.d.ts.map +1 -0
  106. package/dist-tsc/shared-mui/container.js +211 -0
  107. package/dist-tsc/shared-mui/styles.d.ts +5 -0
  108. package/dist-tsc/shared-mui/styles.d.ts.map +1 -0
  109. package/dist-tsc/shared-mui/styles.js +109 -0
  110. package/dist-tsc/shared-plot-options/CellColorEncodingOption.d.ts +2 -0
  111. package/dist-tsc/shared-plot-options/CellColorEncodingOption.d.ts.map +1 -0
  112. package/dist-tsc/shared-plot-options/CellColorEncodingOption.js +17 -0
  113. package/dist-tsc/shared-plot-options/OptionSelect.d.ts +2 -0
  114. package/dist-tsc/shared-plot-options/OptionSelect.d.ts.map +1 -0
  115. package/dist-tsc/shared-plot-options/OptionSelect.js +12 -0
  116. package/dist-tsc/shared-plot-options/OptionsContainer.d.ts +2 -0
  117. package/dist-tsc/shared-plot-options/OptionsContainer.d.ts.map +1 -0
  118. package/dist-tsc/shared-plot-options/OptionsContainer.js +9 -0
  119. package/dist-tsc/shared-plot-options/index.d.ts +5 -0
  120. package/dist-tsc/shared-plot-options/index.d.ts.map +1 -0
  121. package/dist-tsc/shared-plot-options/index.js +4 -0
  122. package/dist-tsc/shared-plot-options/styles.d.ts +2 -0
  123. package/dist-tsc/shared-plot-options/styles.d.ts.map +1 -0
  124. package/dist-tsc/shared-plot-options/styles.js +48 -0
  125. package/dist-tsc/state/hooks.d.ts +216 -0
  126. package/dist-tsc/state/hooks.d.ts.map +1 -0
  127. package/dist-tsc/state/hooks.js +575 -0
  128. package/dist-tsc/title-styles.d.ts +2 -0
  129. package/dist-tsc/title-styles.d.ts.map +1 -0
  130. package/dist-tsc/title-styles.js +72 -0
  131. package/dist-tsc/view-config-utils.d.ts +30 -0
  132. package/dist-tsc/view-config-utils.d.ts.map +1 -0
  133. package/dist-tsc/view-config-utils.js +234 -0
  134. package/dist-tsc/view-config-utils.test.d.ts +2 -0
  135. package/dist-tsc/view-config-utils.test.d.ts.map +1 -0
  136. package/dist-tsc/view-config-utils.test.fixtures.d.ts +1049 -0
  137. package/dist-tsc/view-config-utils.test.fixtures.d.ts.map +1 -0
  138. package/dist-tsc/view-config-utils.test.fixtures.js +883 -0
  139. package/dist-tsc/view-config-utils.test.js +209 -0
  140. package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.d.ts +8 -0
  141. package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.d.ts.map +1 -0
  142. package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.js +114 -0
  143. package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.test.d.ts +2 -0
  144. package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.test.d.ts.map +1 -0
  145. package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.test.js +48 -0
  146. package/dist-tsc/vitessce-grid-layout/index.d.ts +2 -0
  147. package/dist-tsc/vitessce-grid-layout/index.d.ts.map +1 -0
  148. package/dist-tsc/vitessce-grid-layout/index.js +1 -0
  149. package/dist-tsc/vitessce-grid-layout/layout-utils.d.ts +15 -0
  150. package/dist-tsc/vitessce-grid-layout/layout-utils.d.ts.map +1 -0
  151. package/dist-tsc/vitessce-grid-layout/layout-utils.js +61 -0
  152. package/dist-tsc/vitessce-grid-layout/layout-utils.test.d.ts +2 -0
  153. package/dist-tsc/vitessce-grid-layout/layout-utils.test.d.ts.map +1 -0
  154. package/dist-tsc/vitessce-grid-layout/layout-utils.test.js +148 -0
  155. package/dist-tsc/vitessce-grid-utils.d.ts +13 -0
  156. package/dist-tsc/vitessce-grid-utils.d.ts.map +1 -0
  157. package/dist-tsc/vitessce-grid-utils.js +141 -0
  158. package/package.json +23 -10
  159. package/src/CallbackPublisher.js +7 -11
  160. package/src/LoadingIndicator.js +1 -2
  161. package/src/TitleInfo.js +12 -85
  162. package/src/VitS.js +72 -50
  163. package/src/VitessceGrid.js +21 -13
  164. package/src/VitessceGrid.test.jsx +16 -7
  165. package/src/Warning.js +2 -2
  166. package/src/data/AbstractLoader.js +2 -25
  167. package/src/data/AbstractTwoStepLoader.js +1 -1
  168. package/src/data/index.js +3 -3
  169. package/src/data/loader-registry.js +22 -13
  170. package/src/data-hook-utils.js +4 -6
  171. package/src/data-hooks.js +4 -4
  172. package/src/errors/DataSourceFetchError.js +1 -1
  173. package/src/errors/DatasetNotFoundError.js +1 -1
  174. package/src/errors/LoaderNotFoundError.js +1 -1
  175. package/src/errors/LoaderValidationError.js +1 -1
  176. package/src/errors/index.js +5 -6
  177. package/src/hooks.js +70 -5
  178. package/src/index.js +21 -46
  179. package/src/schemas/config-1.0.16.schema.json +21 -1
  180. package/src/shared-mui/components.js +10 -8
  181. package/src/shared-mui/container.js +1 -1
  182. package/src/shared-mui/styles.js +5 -2
  183. package/src/shared-plot-options/CellColorEncodingOption.js +3 -4
  184. package/src/shared-plot-options/OptionSelect.js +2 -2
  185. package/src/shared-plot-options/OptionsContainer.js +2 -5
  186. package/src/shared-plot-options/index.js +4 -4
  187. package/src/shared-plot-options/styles.js +1 -1
  188. package/src/state/hooks.js +10 -3
  189. package/src/title-styles.js +73 -0
  190. package/src/view-config-utils.js +46 -98
  191. package/src/view-config-utils.test.jsx +222 -0
  192. package/src/vitessce-grid-layout/VitessceGridLayout.js +51 -30
  193. package/src/vitessce-grid-layout/VitessceGridLayout.test.jsx +17 -9
  194. package/src/vitessce-grid-layout/index.js +1 -1
  195. package/src/vitessce-grid-layout/layout-utils.js +1 -1
  196. package/src/vitessce-grid-layout/layout-utils.test.js +1 -1
  197. package/src/vitessce-grid-utils.js +27 -15
  198. package/dist/index.mjs +0 -84801
  199. package/src/component-registry.js +0 -21
  200. package/src/errors/OptionsValidationError.js +0 -25
  201. package/src/file-options-schemas-legacy.js +0 -139
  202. package/src/file-options-schemas-legacy.test.js +0 -138
  203. package/src/file-options-schemas.js +0 -327
  204. package/src/file-options-schemas.test.js +0 -26
  205. package/src/joint-file-types-legacy.js +0 -298
  206. package/src/joint-file-types-legacy.test.js +0 -412
  207. package/src/joint-file-types.js +0 -171
  208. package/src/joint-file-types.test.js +0 -144
  209. package/src/json-schemas.js +0 -9
  210. package/src/plugins.js +0 -186
  211. package/src/plugins.test.js +0 -42
  212. package/src/schemas/config-1.0.16.schema.test.js +0 -32
  213. package/src/schemas/schema.test-old.js +0 -49
  214. package/src/view-config-upgraders.js +0 -628
  215. package/src/view-config-utils.test.js +0 -95
  216. package/src/view-config-versions.js +0 -68
@@ -0,0 +1,109 @@
1
+ import { createTheme, colors } from '@material-ui/core';
2
+ const { grey } = colors;
3
+ const globalColors = {
4
+ white: '#FFFFFF',
5
+ grayLight: '#D3D3D3',
6
+ grayMid: '#808080',
7
+ grayDark: '#555555',
8
+ black: '#000000',
9
+ grayDarkL5: 'rgb(98, 98, 98)',
10
+ grayDarkD15: 'rgb(47, 47, 47)',
11
+ grayMidL10: 'rgb(154, 154, 154)',
12
+ grayLightL10: 'rgb(237, 237, 237)', // lighten(map-get($global-colors, "gray-light"), 10%);
13
+ };
14
+ const sharedThemeOptions = {
15
+ // Use px instead of rem, so that sizing is consistent despite the root element font-size.
16
+ // Reference: https://github.com/mui/material-ui/blob/627c08fc/src/styles/createTypography.js
17
+ typography: {
18
+ pxToRem: size => `${size}px`,
19
+ display4: {
20
+ fontSize: '112px',
21
+ },
22
+ display3: {
23
+ fontSize: '56px',
24
+ },
25
+ display2: {
26
+ fontSize: '45px',
27
+ },
28
+ display1: {
29
+ fontSize: '34px',
30
+ },
31
+ headline: {
32
+ fontSize: '24px',
33
+ },
34
+ title: {
35
+ fontSize: '21px',
36
+ },
37
+ subheading: {
38
+ fontSize: '16px',
39
+ },
40
+ body2: {
41
+ fontSize: '14px',
42
+ },
43
+ body1: {
44
+ fontSize: '14px',
45
+ },
46
+ caption: {
47
+ fontSize: '12px',
48
+ },
49
+ },
50
+ props: {
51
+ MuiButtonBase: {
52
+ disableRipple: true,
53
+ },
54
+ },
55
+ };
56
+ export const muiTheme = {
57
+ dark: createTheme({
58
+ palette: {
59
+ type: 'dark',
60
+ primary: grey,
61
+ secondary: grey,
62
+ primaryBackground: '#222222',
63
+ primaryBackgroundHighlight: '#000000',
64
+ primaryBackgroundInput: '#D3D3D3',
65
+ primaryBackgroundDim: '#333333',
66
+ primaryBackgroundLight: '#757575',
67
+ primaryForeground: '#D3D3D3',
68
+ primaryForegroundL5: 'rgb(224, 224, 224)',
69
+ primaryForegroundL10: 'rgb(237, 237, 237)',
70
+ primaryForegroundD15: 'rgb(173, 173, 173)',
71
+ primaryForegroundDim: '#000000',
72
+ primaryForegroundActive: '#9bb7d6',
73
+ secondaryBackground: '#000000',
74
+ secondaryBackgroundDim: '#444444',
75
+ secondaryForeground: '#D3D3D3',
76
+ gridLayoutBackground: '#333333',
77
+ cardBorder: 'rgba(0, 0, 0, 0.125)',
78
+ tooltipText: '#FFFFFF',
79
+ ...globalColors,
80
+ },
81
+ ...sharedThemeOptions,
82
+ }),
83
+ light: createTheme({
84
+ palette: {
85
+ type: 'light',
86
+ primary: grey,
87
+ secondary: grey,
88
+ primaryBackground: '#F1F1F1',
89
+ primaryBackgroundHighlight: '#FFFFFF',
90
+ primaryBackgroundInput: '#FFFFFF',
91
+ primaryBackgroundDim: '#8A8A8A',
92
+ primaryBackgroundLight: '#e0e0e0',
93
+ primaryForeground: '#333333',
94
+ primaryForegroundL5: 'rgb(64, 64, 64)',
95
+ primaryForegroundL10: 'rgb(77, 77, 77)',
96
+ primaryForegroundD15: 'rgb(13, 13, 13)',
97
+ primaryForegroundDim: '#808080',
98
+ primaryForegroundActive: '#0074D9',
99
+ secondaryBackground: '#F1F1F1',
100
+ secondaryBackgroundDim: '#C0C0C0',
101
+ secondaryForeground: '#222222',
102
+ gridLayoutBackground: '#FFFFFF',
103
+ cardBorder: 'rgba(241, 241, 241, 0.125)',
104
+ tooltipText: 'rgba(0, 0, 0, 0.87)',
105
+ ...globalColors,
106
+ },
107
+ ...sharedThemeOptions,
108
+ }),
109
+ };
@@ -0,0 +1,2 @@
1
+ export default function CellColorEncodingOption(props: any): JSX.Element;
2
+ //# sourceMappingURL=CellColorEncodingOption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellColorEncodingOption.d.ts","sourceRoot":"","sources":["../../src/shared-plot-options/CellColorEncodingOption.js"],"names":[],"mappings":"AAMA,yEAmCC"}
@@ -0,0 +1,17 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { TableCell, TableRow } from '@material-ui/core';
4
+ import { capitalize } from '@vitessce/utils';
5
+ import OptionSelect from './OptionSelect.js';
6
+ import { useStyles } from './styles.js';
7
+ export default function CellColorEncodingOption(props) {
8
+ const { observationsLabel, cellColorEncoding, setCellColorEncoding, } = props;
9
+ const classes = useStyles();
10
+ const observationsLabelNice = capitalize(observationsLabel);
11
+ function handleColorEncodingChange(event) {
12
+ setCellColorEncoding(event.target.value);
13
+ }
14
+ return (_jsxs(TableRow, { children: [_jsxs(TableCell, { className: classes.labelCell, htmlFor: "cell-color-encoding-select", children: [observationsLabelNice, " Color Encoding"] }), _jsx(TableCell, { className: classes.inputCell, children: _jsxs(OptionSelect, { className: classes.select, value: cellColorEncoding, onChange: handleColorEncodingChange, inputProps: {
15
+ id: 'cell-color-encoding-select',
16
+ }, children: [_jsx("option", { value: "cellSetSelection", children: "Cell Sets" }), _jsx("option", { value: "geneSelection", children: "Gene Expression" })] }) })] }));
17
+ }
@@ -0,0 +1,2 @@
1
+ export default function OptionSelect(props: any): JSX.Element;
2
+ //# sourceMappingURL=OptionSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OptionSelect.d.ts","sourceRoot":"","sources":["../../src/shared-plot-options/OptionSelect.js"],"names":[],"mappings":"AAIA,8DAcC"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { Select } from '@material-ui/core';
4
+ import { useStyles } from './styles.js';
5
+ export default function OptionSelect(props) {
6
+ const { classes: classesProp = {} } = props;
7
+ const classes = useStyles();
8
+ return (_jsx(Select, { native: true, disableUnderline: true, ...props, classes: {
9
+ root: classes.selectRoot,
10
+ ...classesProp,
11
+ } }));
12
+ }
@@ -0,0 +1,2 @@
1
+ export default function OptionsContainer(props: any): JSX.Element;
2
+ //# sourceMappingURL=OptionsContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OptionsContainer.d.ts","sourceRoot":"","sources":["../../src/shared-plot-options/OptionsContainer.js"],"names":[],"mappings":"AAIA,kEAkBC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { Box, Table, TableBody, TableContainer } from '@material-ui/core';
4
+ import { useStyles } from './styles.js';
5
+ export default function OptionsContainer(props) {
6
+ const { children, } = props;
7
+ const classes = useStyles();
8
+ return (_jsx(Box, { className: classes.box, children: _jsx(TableContainer, { className: classes.tableContainer, children: _jsx(Table, { className: classes.table, size: "small", children: _jsx(TableBody, { children: children }) }) }) }));
9
+ }
@@ -0,0 +1,5 @@
1
+ export { default as CellColorEncodingOption } from "./CellColorEncodingOption.js";
2
+ export { default as OptionsContainer } from "./OptionsContainer.js";
3
+ export { default as OptionSelect } from "./OptionSelect.js";
4
+ export { useStyles as usePlotOptionsStyles } from "./styles.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared-plot-options/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export { default as CellColorEncodingOption } from './CellColorEncodingOption.js';
2
+ export { default as OptionsContainer } from './OptionsContainer.js';
3
+ export { default as OptionSelect } from './OptionSelect.js';
4
+ export { useStyles as usePlotOptionsStyles } from './styles.js';
@@ -0,0 +1,2 @@
1
+ export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<never>;
2
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/shared-plot-options/styles.js"],"names":[],"mappings":"AAEA,2GA8CI"}
@@ -0,0 +1,48 @@
1
+ import { makeStyles } from '@material-ui/core';
2
+ export const useStyles = makeStyles(theme => ({
3
+ box: {
4
+ boxSizing: 'border-box',
5
+ },
6
+ checkbox: {
7
+ padding: '3px',
8
+ color: theme.palette.primaryForeground,
9
+ '&:checked': {
10
+ color: theme.palette.primaryForeground,
11
+ },
12
+ '& input': {
13
+ height: '100%',
14
+ },
15
+ },
16
+ slider: {
17
+ color: theme.palette.primaryForeground,
18
+ minWidth: '60px',
19
+ padding: '10px 0 10px 0',
20
+ },
21
+ sliderValueLabel: {
22
+ '& span': {
23
+ '& span': {
24
+ color: theme.palette.primaryBackground,
25
+ },
26
+ },
27
+ },
28
+ tableContainer: {
29
+ overflow: 'hidden',
30
+ overflowX: 'hidden !important',
31
+ },
32
+ labelCell: {
33
+ padding: '2px 8px 2px 16px',
34
+ },
35
+ inputCell: {
36
+ padding: '2px 16px 2px 8px',
37
+ overflow: 'visible',
38
+ },
39
+ select: {
40
+ '& select': {
41
+ fontSize: '14px',
42
+ },
43
+ },
44
+ selectRoot: {
45
+ padding: 0,
46
+ height: 'auto',
47
+ },
48
+ }));
@@ -0,0 +1,216 @@
1
+ /**
2
+ * The useCoordination hook returns both the
3
+ * values and setter functions for the coordination objects
4
+ * in a particular coordination scope mapping.
5
+ * This hook is intended to be used within the ___Subscriber
6
+ * components to allow them to "hook into" only those coordination
7
+ * objects and setter functions of relevance.
8
+ * @param {string[]} parameters Array of coordination types.
9
+ * @param {object} coordinationScopes Mapping of coordination types
10
+ * to scope names.
11
+ * @returns {array} Returns a tuple [values, setters]
12
+ * where values is an object containing all coordination values,
13
+ * and setters is an object containing all coordination setter
14
+ * functions for the values in `values`, named with a "set"
15
+ * prefix.
16
+ */
17
+ export function useCoordination(parameters: string[], coordinationScopes: object): array;
18
+ export function useMultiCoordinationValues(parameter: any, coordinationScopes: any): any;
19
+ /**
20
+ * Get a mapping from dataset coordination scopes to dataset UIDs.
21
+ * @param {object} coordinationScopes The coordination scope mapping object for a view.
22
+ * @returns {object} Mapping from dataset coordination scope names to dataset UIDs.
23
+ */
24
+ export function useDatasetUids(coordinationScopes: object): object;
25
+ /**
26
+ * Use coordination values and coordination setter functions corresponding to
27
+ * {coordinationType}-specific coordination scopes for each coordination type.
28
+ * @param {string[]} parameters An array of coordination types supported by a view.
29
+ * @param {object} coordinationScopes The coordination scope mapping object for a view.
30
+ * @param {object} coordinationScopesBy The per-coordinationType coordination scope
31
+ * mapping object for a view.
32
+ * @param {string} byType The {coordinationType} to use for per-{coordinationType} coordination
33
+ * scope mappings.
34
+ * @returns {array} [cValues, cSetters] where
35
+ * cValues is a mapping from coordination scope name to { coordinationType: coordinationValue },
36
+ * and cSetters is a mapping from coordination scope name to { setCoordinationType }
37
+ * setter functions.
38
+ */
39
+ export function useComplexCoordination(parameters: string[], coordinationScopes: object, coordinationScopesBy: object, byType: string): array;
40
+ /**
41
+ * Use coordination values and coordination setter functions corresponding to
42
+ * dataset-specific coordination scopes for each coordination type.
43
+ * @param {string[]} parameters An array of coordination types supported by a view.
44
+ * @param {object} coordinationScopes The coordination scope mapping object for a view.
45
+ * @param {object} coordinationScopesBy The per-coordinationType coordination scope
46
+ * mapping object for a view.
47
+ * @returns {array} [cValues, cSetters] where
48
+ * cValues is a mapping from coordination scope name to { coordinationType: coordinationValue },
49
+ * and cSetters is a mapping from coordination scope name to { setCoordinationType }
50
+ * setter functions.
51
+ */
52
+ export function useMultiDatasetCoordination(parameters: string[], coordinationScopes: object, coordinationScopesBy: object): array;
53
+ /**
54
+ * The useAuxiliaryCoordination hook returns both the
55
+ * values and setter functions for the auxiliary coordination objects
56
+ * in a particular coordination scope mapping.
57
+ * This hook is intended to be used within the ___Subscriber
58
+ * components to allow them to "hook into" only those auxiliary coordination
59
+ * objects and setter functions of relevance, for example "on load" callbacks.
60
+ * @param {string[]} parameters Array of coordination types.
61
+ * @param {object} coordinationScopes Mapping of coordination types
62
+ * to scope names.
63
+ * @returns {array} Returns a tuple [values, setters]
64
+ * where values is an object containing all coordination values,
65
+ * and setters is an object containing all coordination setter
66
+ * functions for the values in `values`, named with a "set"
67
+ * prefix.
68
+ */
69
+ export function useAuxiliaryCoordination(parameters: string[], coordinationScopes: object): array;
70
+ /**
71
+ * Obtain the loaders object from
72
+ * the global app state.
73
+ * @returns {object} The loaders object
74
+ * in the `useViewConfigStore` store.
75
+ */
76
+ export function useLoaders(): object;
77
+ /**
78
+ * Find a specific loader instance for a particular dataset, data type, and view
79
+ * coordination values (mapping from coordination types to coordination values).
80
+ * Uses lodash/isMatch to perform matching against the file definition's
81
+ * coordination value mapping.
82
+ * @param {object} loaders The value returned by useLoaders.
83
+ * @param {string} dataset The dataset UID.
84
+ * @param {string} dataType The data type for the matching file.
85
+ * @param {object} viewCoordinationValues Current coordination values
86
+ * from the view. Match these against a subset of file definition coordination
87
+ * values.
88
+ * @returns The matching loader instance or `null`.
89
+ */
90
+ export function useMatchingLoader(loaders: object, dataset: string, dataType: string, viewCoordinationValues: object): any;
91
+ /**
92
+ * Find a specific loader instance for a particular dataset, data type, and view
93
+ * coordination values (mapping from coordination types to coordination values).
94
+ * Uses lodash/isMatch to perform matching against the file definition's
95
+ * coordination value mapping.
96
+ * @param {object} loaders The value returned by useLoaders.
97
+ * @param {string} dataset The dataset UID.
98
+ * @param {string} dataType The data type for the matching file.
99
+ * @param {object} viewCoordinationValues Current coordination values
100
+ * from the view. Match these against a subset of file definition coordination
101
+ * values.
102
+ * @returns The matching loader instance or `null`.
103
+ */
104
+ export function useMatchingLoaders(loaders: object, dataset: string, dataType: string, viewCoordinationValuesObj: any): any;
105
+ /**
106
+ * Obtain the view config layout array from
107
+ * the global app state.
108
+ * @returns {object[]} The layout array
109
+ * in the `useViewConfigStore` store.
110
+ */
111
+ export function useLayout(): object[];
112
+ /**
113
+ * Obtain the component removal function from
114
+ * the global app state.
115
+ * @returns {function} The remove component function
116
+ * in the `useViewInfoStore` store.
117
+ */
118
+ export function useRemoveComponent(): Function;
119
+ /**
120
+ * Obtain the component prop setter function from
121
+ * the global app state.
122
+ * @returns {function} The set component props function
123
+ * in the `useViewInfoStore` store.
124
+ */
125
+ export function useChangeLayout(): Function;
126
+ /**
127
+ * Obtain the loaders setter function from
128
+ * the global app state.
129
+ * @returns {function} The loaders setter function
130
+ * in the `useViewConfigStore` store.
131
+ */
132
+ export function useSetLoaders(): Function;
133
+ /**
134
+ * Obtain the view config setter function from
135
+ * the global app state.
136
+ * @returns {function} The view config setter function
137
+ * in the `useViewConfigStore` store.
138
+ */
139
+ export function useSetViewConfig(viewConfigStoreApi: any): Function;
140
+ /**
141
+ * Obtain the component hover value from
142
+ * the global app state.
143
+ * @returns {number} The hovered component ID
144
+ * in the `useHoverStore` store.
145
+ */
146
+ export function useComponentHover(): number;
147
+ /**
148
+ * Obtain the component hover setter function from
149
+ * the global app state.
150
+ * @returns {function} The component hover setter function
151
+ * in the `useHoverStore` store.
152
+ */
153
+ export function useSetComponentHover(): Function;
154
+ /**
155
+ * Obtain the warning message from
156
+ * the global app state.
157
+ * @returns {string} The warning message
158
+ * in the `useWarnStore` store.
159
+ */
160
+ export function useWarning(): string;
161
+ /**
162
+ * Obtain the warning setter function from
163
+ * the global app state.
164
+ * @returns {function} The warning setter function
165
+ * in the `useWarnStore` store.
166
+ */
167
+ export function useSetWarning(): Function;
168
+ /**
169
+ * Obtain the component view info value from
170
+ * the global app state.
171
+ * @returns {object} The view info object for the component
172
+ * in the `useViewInfoStore` store.
173
+ */
174
+ export function useComponentViewInfo(uuid: any): object;
175
+ /**
176
+ * Obtain the component view info setter function from
177
+ * the global app state.
178
+ * @returns {function} The component view info setter function
179
+ * in the `useViewInfoStore` store.
180
+ */
181
+ export function useSetComponentViewInfo(uuid: any): Function;
182
+ /**
183
+ * Obtain the grid resize count value
184
+ * from the global app state.
185
+ * @returns {number} The grid resize increment value.
186
+ */
187
+ export function useGridResize(): number;
188
+ /**
189
+ * Obtain the grid resize count increment function
190
+ * from the global app state.
191
+ * @returns {function} The grid resize count increment
192
+ * function.
193
+ */
194
+ export function useEmitGridResize(): Function;
195
+ export const ViewConfigProvider: ({ initialStore, createStore, children, }: {
196
+ initialStore?: import("zustand").UseBoundStore<object, import("zustand").StoreApi<object>> | undefined;
197
+ createStore: () => import("zustand").UseBoundStore<object, import("zustand").StoreApi<object>>;
198
+ children: import("../../../plugins/node_modules/@types/react/ts5.0").ReactNode;
199
+ }) => import("../../../plugins/node_modules/@types/react/ts5.0").FunctionComponentElement<import("../../../plugins/node_modules/@types/react/ts5.0").ProviderProps<import("zustand").UseBoundStore<object, import("zustand").StoreApi<object>> | undefined>>;
200
+ export const useViewConfigStore: import("zustand/context").UseContextStore<object>;
201
+ export const useViewConfigStoreApi: () => {
202
+ getState: import("zustand").GetState<object>;
203
+ setState: import("zustand").SetState<object>;
204
+ subscribe: import("zustand").Subscribe<object>;
205
+ destroy: import("zustand").Destroy;
206
+ };
207
+ export const AuxiliaryProvider: ({ initialStore, createStore, children, }: {
208
+ initialStore?: import("zustand").UseBoundStore<object, import("zustand").StoreApi<object>> | undefined;
209
+ createStore: () => import("zustand").UseBoundStore<object, import("zustand").StoreApi<object>>;
210
+ children: import("../../../plugins/node_modules/@types/react/ts5.0").ReactNode;
211
+ }) => import("../../../plugins/node_modules/@types/react/ts5.0").FunctionComponentElement<import("../../../plugins/node_modules/@types/react/ts5.0").ProviderProps<import("zustand").UseBoundStore<object, import("zustand").StoreApi<object>> | undefined>>;
212
+ export const useAuxiliaryStore: import("zustand/context").UseContextStore<object>;
213
+ export function createViewConfigStore(): Function;
214
+ export function useComponentLayout(component: any, scopes: any, coordinationScopes: any): Object;
215
+ export function createAuxiliaryStore(): Function;
216
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/state/hooks.js"],"names":[],"mappings":"AAuLA;;;;;;;;;;;;;;;GAeG;AACH,4CATW,MAAM,EAAE,sBACR,MAAM,SAkChB;AAED,yFAmBC;AAED;;;;GAIG;AACH,mDAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;;;;;;;;;;GAaG;AACH,mDAXW,MAAM,EAAE,sBACR,MAAM,wBACN,MAAM,UAEN,MAAM,SAsEhB;AAED;;;;;;;;;;;GAWG;AACH,wDATW,MAAM,EAAE,sBACR,MAAM,wBACN,MAAM,SAYhB;AA6BD;;;;;;;;;;;;;;;GAeG;AACH,qDATW,MAAM,EAAE,sBACR,MAAM,SAkChB;AAED;;;;;GAKG;AACH,8BAHa,MAAM,CAKlB;AAED;;;;;;;;;;;;GAYG;AACH,2CARW,MAAM,WACN,MAAM,YACN,MAAM,0BACN,MAAM,OAsBhB;AAED;;;;;;;;;;;;GAYG;AACH,4CARW,MAAM,WACN,MAAM,YACN,MAAM,uCA4BhB;AAED;;;;;GAKG;AACH,6BAHa,MAAM,EAAE,CAKpB;AAED;;;;;GAKG;AACH,+CAEC;AAED;;;;;GAKG;AACH,4CAEC;AAED;;;;;GAKG;AACH,0CAEC;AAED;;;;;GAKG;AACH,oEAIC;AAED;;;;;GAKG;AACH,qCAHa,MAAM,CAKlB;AAED;;;;;GAKG;AACH,iDAEC;AAED;;;;;GAKG;AACH,8BAHa,MAAM,CAKlB;AAED;;;;;GAKG;AACH,0CAEC;AAED;;;;;GAKG;AACH,iDAHa,MAAM,CAKlB;AAED;;;;;GAKG;AACH,6DAOC;AAED;;;;GAIG;AACH,iCAFa,MAAM,CAIlB;AAED;;;;;GAKG;AACH,8CAEC;AA9mBD;;;;6PAA0D;AAC1D,mFAA0D;AAC1D;;;;;EAAgE;AAOhE;;;;6PAAwD;AACxD,kFAAwD;AAajD,kDA+CJ;AAOI,0FAFM,MAAM,CAOlB;AAcM,iDAUJ"}