@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.
- package/dist/index.js +41348 -0
- package/dist-tsc/CallbackPublisher.d.ts +18 -0
- package/dist-tsc/CallbackPublisher.d.ts.map +1 -0
- package/dist-tsc/CallbackPublisher.js +62 -0
- package/dist-tsc/LoadingIndicator.d.ts +2 -0
- package/dist-tsc/LoadingIndicator.d.ts.map +1 -0
- package/dist-tsc/LoadingIndicator.js +26 -0
- package/dist-tsc/TitleInfo.d.ts +2 -0
- package/dist-tsc/TitleInfo.d.ts.map +1 -0
- package/dist-tsc/TitleInfo.js +74 -0
- package/dist-tsc/VitS.d.ts +45 -0
- package/dist-tsc/VitS.d.ts.map +1 -0
- package/dist-tsc/VitS.js +119 -0
- package/dist-tsc/VitessceGrid.d.ts +23 -0
- package/dist-tsc/VitessceGrid.d.ts.map +1 -0
- package/dist-tsc/VitessceGrid.js +60 -0
- package/dist-tsc/VitessceGrid.test.d.ts +2 -0
- package/dist-tsc/VitessceGrid.test.d.ts.map +1 -0
- package/dist-tsc/VitessceGrid.test.js +40 -0
- package/dist-tsc/Warning.d.ts +2 -0
- package/dist-tsc/Warning.d.ts.map +1 -0
- package/dist-tsc/Warning.js +45 -0
- package/dist-tsc/classNames.d.ts +8 -0
- package/dist-tsc/classNames.d.ts.map +1 -0
- package/dist-tsc/classNames.js +8 -0
- package/dist-tsc/data/AbstractLoader.d.ts +22 -0
- package/dist-tsc/data/AbstractLoader.d.ts.map +1 -0
- package/dist-tsc/data/AbstractLoader.js +18 -0
- package/dist-tsc/data/AbstractTwoStepLoader.d.ts +6 -0
- package/dist-tsc/data/AbstractTwoStepLoader.d.ts.map +1 -0
- package/dist-tsc/data/AbstractTwoStepLoader.js +7 -0
- package/dist-tsc/data/LoaderResult.d.ts +7 -0
- package/dist-tsc/data/LoaderResult.d.ts.map +1 -0
- package/dist-tsc/data/LoaderResult.js +7 -0
- package/dist-tsc/data/index.d.ts +4 -0
- package/dist-tsc/data/index.d.ts.map +1 -0
- package/dist-tsc/data/index.js +3 -0
- package/dist-tsc/data/loader-registry.d.ts +9 -0
- package/dist-tsc/data/loader-registry.d.ts.map +1 -0
- package/dist-tsc/data/loader-registry.js +27 -0
- package/dist-tsc/data-hook-utils.d.ts +69 -0
- package/dist-tsc/data-hook-utils.d.ts.map +1 -0
- package/dist-tsc/data-hook-utils.js +173 -0
- package/dist-tsc/data-hooks.d.ts +77 -0
- package/dist-tsc/data-hooks.d.ts.map +1 -0
- package/dist-tsc/data-hooks.js +241 -0
- package/dist-tsc/errors/AbstractLoaderError.d.ts +10 -0
- package/dist-tsc/errors/AbstractLoaderError.d.ts.map +1 -0
- package/dist-tsc/errors/AbstractLoaderError.js +13 -0
- package/dist-tsc/errors/DataSourceFetchError.d.ts +8 -0
- package/dist-tsc/errors/DataSourceFetchError.d.ts.map +1 -0
- package/dist-tsc/errors/DataSourceFetchError.js +13 -0
- package/dist-tsc/errors/DatasetNotFoundError.d.ts +6 -0
- package/dist-tsc/errors/DatasetNotFoundError.d.ts.map +1 -0
- package/dist-tsc/errors/DatasetNotFoundError.js +17 -0
- package/dist-tsc/errors/LoaderNotFoundError.d.ts +10 -0
- package/dist-tsc/errors/LoaderNotFoundError.d.ts.map +1 -0
- package/dist-tsc/errors/LoaderNotFoundError.js +17 -0
- package/dist-tsc/errors/LoaderValidationError.d.ts +10 -0
- package/dist-tsc/errors/LoaderValidationError.d.ts.map +1 -0
- package/dist-tsc/errors/LoaderValidationError.js +15 -0
- package/dist-tsc/errors/index.d.ts +6 -0
- package/dist-tsc/errors/index.d.ts.map +1 -0
- package/dist-tsc/errors/index.js +5 -0
- package/dist-tsc/hooks.d.ts +80 -0
- package/dist-tsc/hooks.d.ts.map +1 -0
- package/dist-tsc/hooks.js +271 -0
- package/dist-tsc/index.d.ts +11 -0
- package/dist-tsc/index.d.ts.map +1 -0
- package/dist-tsc/index.js +10 -17
- package/dist-tsc/plugins.test.fixtures.d.ts +61 -0
- package/dist-tsc/plugins.test.fixtures.d.ts.map +1 -0
- package/dist-tsc/plugins.test.fixtures.js +76 -0
- package/dist-tsc/schemas/config-0.1.0.schema.json +84 -0
- package/dist-tsc/schemas/config-1.0.0.schema.json +733 -0
- package/dist-tsc/schemas/config-1.0.1.schema.json +909 -0
- package/dist-tsc/schemas/config-1.0.10.schema.json +969 -0
- package/dist-tsc/schemas/config-1.0.11.schema.json +990 -0
- package/dist-tsc/schemas/config-1.0.12.schema.json +997 -0
- package/dist-tsc/schemas/config-1.0.13.schema.json +1013 -0
- package/dist-tsc/schemas/config-1.0.14.schema.json +1048 -0
- package/dist-tsc/schemas/config-1.0.15.schema.json +1048 -0
- package/dist-tsc/schemas/config-1.0.16.schema.json +1089 -0
- package/dist-tsc/schemas/config-1.0.2.schema.json +910 -0
- package/dist-tsc/schemas/config-1.0.3.schema.json +910 -0
- package/dist-tsc/schemas/config-1.0.4.schema.json +949 -0
- package/dist-tsc/schemas/config-1.0.5.schema.json +949 -0
- package/dist-tsc/schemas/config-1.0.6.schema.json +949 -0
- package/dist-tsc/schemas/config-1.0.7.schema.json +949 -0
- package/dist-tsc/schemas/config-1.0.8.schema.json +965 -0
- package/dist-tsc/schemas/config-1.0.9.schema.json +965 -0
- package/dist-tsc/schemas/obsSets.schema.d.ts +179 -0
- package/dist-tsc/schemas/obsSets.schema.d.ts.map +1 -0
- package/dist-tsc/schemas/obsSets.schema.js +195 -0
- package/dist-tsc/schemas/obsSetsTabular.schema.d.ts +57 -0
- package/dist-tsc/schemas/obsSetsTabular.schema.d.ts.map +1 -0
- package/dist-tsc/schemas/obsSetsTabular.schema.js +38 -0
- package/dist-tsc/schemas/raster.schema.d.ts +239 -0
- package/dist-tsc/schemas/raster.schema.d.ts.map +1 -0
- package/dist-tsc/schemas/raster.schema.js +120 -0
- package/dist-tsc/shared-mui/components.d.ts +2 -0
- package/dist-tsc/shared-mui/components.d.ts.map +1 -0
- package/dist-tsc/shared-mui/components.js +29 -0
- package/dist-tsc/shared-mui/container.d.ts +2 -0
- package/dist-tsc/shared-mui/container.d.ts.map +1 -0
- package/dist-tsc/shared-mui/container.js +211 -0
- package/dist-tsc/shared-mui/styles.d.ts +5 -0
- package/dist-tsc/shared-mui/styles.d.ts.map +1 -0
- package/dist-tsc/shared-mui/styles.js +109 -0
- package/dist-tsc/shared-plot-options/CellColorEncodingOption.d.ts +2 -0
- package/dist-tsc/shared-plot-options/CellColorEncodingOption.d.ts.map +1 -0
- package/dist-tsc/shared-plot-options/CellColorEncodingOption.js +17 -0
- package/dist-tsc/shared-plot-options/OptionSelect.d.ts +2 -0
- package/dist-tsc/shared-plot-options/OptionSelect.d.ts.map +1 -0
- package/dist-tsc/shared-plot-options/OptionSelect.js +12 -0
- package/dist-tsc/shared-plot-options/OptionsContainer.d.ts +2 -0
- package/dist-tsc/shared-plot-options/OptionsContainer.d.ts.map +1 -0
- package/dist-tsc/shared-plot-options/OptionsContainer.js +9 -0
- package/dist-tsc/shared-plot-options/index.d.ts +5 -0
- package/dist-tsc/shared-plot-options/index.d.ts.map +1 -0
- package/dist-tsc/shared-plot-options/index.js +4 -0
- package/dist-tsc/shared-plot-options/styles.d.ts +2 -0
- package/dist-tsc/shared-plot-options/styles.d.ts.map +1 -0
- package/dist-tsc/shared-plot-options/styles.js +48 -0
- package/dist-tsc/state/hooks.d.ts +216 -0
- package/dist-tsc/state/hooks.d.ts.map +1 -0
- package/dist-tsc/state/hooks.js +575 -0
- package/dist-tsc/title-styles.d.ts +2 -0
- package/dist-tsc/title-styles.d.ts.map +1 -0
- package/dist-tsc/title-styles.js +72 -0
- package/dist-tsc/view-config-utils.d.ts +30 -0
- package/dist-tsc/view-config-utils.d.ts.map +1 -0
- package/dist-tsc/view-config-utils.js +234 -0
- package/dist-tsc/view-config-utils.test.d.ts +2 -0
- package/dist-tsc/view-config-utils.test.d.ts.map +1 -0
- package/dist-tsc/view-config-utils.test.fixtures.d.ts +1049 -0
- package/dist-tsc/view-config-utils.test.fixtures.d.ts.map +1 -0
- package/dist-tsc/view-config-utils.test.fixtures.js +883 -0
- package/dist-tsc/view-config-utils.test.js +209 -0
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.d.ts +8 -0
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.d.ts.map +1 -0
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.js +114 -0
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.test.d.ts +2 -0
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.test.d.ts.map +1 -0
- package/dist-tsc/vitessce-grid-layout/VitessceGridLayout.test.js +48 -0
- package/dist-tsc/vitessce-grid-layout/index.d.ts +2 -0
- package/dist-tsc/vitessce-grid-layout/index.d.ts.map +1 -0
- package/dist-tsc/vitessce-grid-layout/index.js +1 -0
- package/dist-tsc/vitessce-grid-layout/layout-utils.d.ts +15 -0
- package/dist-tsc/vitessce-grid-layout/layout-utils.d.ts.map +1 -0
- package/dist-tsc/vitessce-grid-layout/layout-utils.js +61 -0
- package/dist-tsc/vitessce-grid-layout/layout-utils.test.d.ts +2 -0
- package/dist-tsc/vitessce-grid-layout/layout-utils.test.d.ts.map +1 -0
- package/dist-tsc/vitessce-grid-layout/layout-utils.test.js +148 -0
- package/dist-tsc/vitessce-grid-utils.d.ts +13 -0
- package/dist-tsc/vitessce-grid-utils.d.ts.map +1 -0
- package/dist-tsc/vitessce-grid-utils.js +141 -0
- package/package.json +23 -10
- package/src/CallbackPublisher.js +7 -11
- package/src/LoadingIndicator.js +1 -2
- package/src/TitleInfo.js +12 -85
- package/src/VitS.js +72 -50
- package/src/VitessceGrid.js +21 -13
- package/src/VitessceGrid.test.jsx +16 -7
- package/src/Warning.js +2 -2
- package/src/data/AbstractLoader.js +2 -25
- package/src/data/AbstractTwoStepLoader.js +1 -1
- package/src/data/index.js +3 -3
- package/src/data/loader-registry.js +22 -13
- package/src/data-hook-utils.js +4 -6
- package/src/data-hooks.js +4 -4
- package/src/errors/DataSourceFetchError.js +1 -1
- package/src/errors/DatasetNotFoundError.js +1 -1
- package/src/errors/LoaderNotFoundError.js +1 -1
- package/src/errors/LoaderValidationError.js +1 -1
- package/src/errors/index.js +5 -6
- package/src/hooks.js +70 -5
- package/src/index.js +21 -46
- package/src/schemas/config-1.0.16.schema.json +21 -1
- package/src/shared-mui/components.js +10 -8
- package/src/shared-mui/container.js +1 -1
- package/src/shared-mui/styles.js +5 -2
- package/src/shared-plot-options/CellColorEncodingOption.js +3 -4
- package/src/shared-plot-options/OptionSelect.js +2 -2
- package/src/shared-plot-options/OptionsContainer.js +2 -5
- package/src/shared-plot-options/index.js +4 -4
- package/src/shared-plot-options/styles.js +1 -1
- package/src/state/hooks.js +10 -3
- package/src/title-styles.js +73 -0
- package/src/view-config-utils.js +46 -98
- package/src/view-config-utils.test.jsx +222 -0
- package/src/vitessce-grid-layout/VitessceGridLayout.js +51 -30
- package/src/vitessce-grid-layout/VitessceGridLayout.test.jsx +17 -9
- package/src/vitessce-grid-layout/index.js +1 -1
- package/src/vitessce-grid-layout/layout-utils.js +1 -1
- package/src/vitessce-grid-layout/layout-utils.test.js +1 -1
- package/src/vitessce-grid-utils.js +27 -15
- package/dist/index.mjs +0 -84801
- package/src/component-registry.js +0 -21
- package/src/errors/OptionsValidationError.js +0 -25
- package/src/file-options-schemas-legacy.js +0 -139
- package/src/file-options-schemas-legacy.test.js +0 -138
- package/src/file-options-schemas.js +0 -327
- package/src/file-options-schemas.test.js +0 -26
- package/src/joint-file-types-legacy.js +0 -298
- package/src/joint-file-types-legacy.test.js +0 -412
- package/src/joint-file-types.js +0 -171
- package/src/joint-file-types.test.js +0 -144
- package/src/json-schemas.js +0 -9
- package/src/plugins.js +0 -186
- package/src/plugins.test.js +0 -42
- package/src/schemas/config-1.0.16.schema.test.js +0 -32
- package/src/schemas/schema.test-old.js +0 -49
- package/src/view-config-upgraders.js +0 -628
- package/src/view-config-utils.test.js +0 -95
- package/src/view-config-versions.js +0 -68
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
export default schema;
|
|
2
|
+
declare namespace schema {
|
|
3
|
+
export const $schema: string;
|
|
4
|
+
export const $id: string;
|
|
5
|
+
export const title: string;
|
|
6
|
+
export const type: string;
|
|
7
|
+
export namespace definitions {
|
|
8
|
+
namespace transform {
|
|
9
|
+
const type_1: string;
|
|
10
|
+
export { type_1 as type };
|
|
11
|
+
export const additionalProperties: boolean;
|
|
12
|
+
export const oneOf: {
|
|
13
|
+
required: string[];
|
|
14
|
+
}[];
|
|
15
|
+
export namespace properties {
|
|
16
|
+
namespace scale {
|
|
17
|
+
const type_2: string;
|
|
18
|
+
export { type_2 as type };
|
|
19
|
+
}
|
|
20
|
+
namespace translate {
|
|
21
|
+
const type_3: string;
|
|
22
|
+
export { type_3 as type };
|
|
23
|
+
const additionalProperties_1: boolean;
|
|
24
|
+
export { additionalProperties_1 as additionalProperties };
|
|
25
|
+
export const required: string[];
|
|
26
|
+
export namespace properties_1 {
|
|
27
|
+
namespace y {
|
|
28
|
+
const type_4: string;
|
|
29
|
+
export { type_4 as type };
|
|
30
|
+
}
|
|
31
|
+
namespace x {
|
|
32
|
+
const type_5: string;
|
|
33
|
+
export { type_5 as type };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export { properties_1 as properties };
|
|
37
|
+
}
|
|
38
|
+
namespace matrix {
|
|
39
|
+
const type_6: string;
|
|
40
|
+
export { type_6 as type };
|
|
41
|
+
export namespace items {
|
|
42
|
+
const type_7: string;
|
|
43
|
+
export { type_7 as type };
|
|
44
|
+
}
|
|
45
|
+
export const minItems: number;
|
|
46
|
+
export const maxItems: number;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
namespace dimensions {
|
|
51
|
+
const type_8: string;
|
|
52
|
+
export { type_8 as type };
|
|
53
|
+
export namespace items_1 {
|
|
54
|
+
const type_9: string;
|
|
55
|
+
export { type_9 as type };
|
|
56
|
+
const additionalProperties_2: boolean;
|
|
57
|
+
export { additionalProperties_2 as additionalProperties };
|
|
58
|
+
const required_1: string[];
|
|
59
|
+
export { required_1 as required };
|
|
60
|
+
export namespace properties_2 {
|
|
61
|
+
export namespace field {
|
|
62
|
+
const type_10: string;
|
|
63
|
+
export { type_10 as type };
|
|
64
|
+
}
|
|
65
|
+
export namespace type_11 {
|
|
66
|
+
const type_12: string;
|
|
67
|
+
export { type_12 as type };
|
|
68
|
+
const _enum: string[];
|
|
69
|
+
export { _enum as enum };
|
|
70
|
+
}
|
|
71
|
+
export { type_11 as type };
|
|
72
|
+
export namespace values {
|
|
73
|
+
const type_13: string[];
|
|
74
|
+
export { type_13 as type };
|
|
75
|
+
export namespace items_2 {
|
|
76
|
+
const type_14: string;
|
|
77
|
+
export { type_14 as type };
|
|
78
|
+
}
|
|
79
|
+
export { items_2 as items };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export { properties_2 as properties };
|
|
83
|
+
}
|
|
84
|
+
export { items_1 as items };
|
|
85
|
+
}
|
|
86
|
+
namespace metadata {
|
|
87
|
+
const type_15: string;
|
|
88
|
+
export { type_15 as type };
|
|
89
|
+
const additionalProperties_3: boolean;
|
|
90
|
+
export { additionalProperties_3 as additionalProperties };
|
|
91
|
+
export const anyOf: {
|
|
92
|
+
required: string[];
|
|
93
|
+
}[];
|
|
94
|
+
export namespace properties_3 {
|
|
95
|
+
export namespace dimensions_1 {
|
|
96
|
+
const $ref: string;
|
|
97
|
+
}
|
|
98
|
+
export { dimensions_1 as dimensions };
|
|
99
|
+
export namespace isPyramid {
|
|
100
|
+
const type_16: string;
|
|
101
|
+
export { type_16 as type };
|
|
102
|
+
}
|
|
103
|
+
export namespace transform_1 {
|
|
104
|
+
const $ref_1: string;
|
|
105
|
+
export { $ref_1 as $ref };
|
|
106
|
+
}
|
|
107
|
+
export { transform_1 as transform };
|
|
108
|
+
export namespace isBitmask {
|
|
109
|
+
const type_17: string;
|
|
110
|
+
export { type_17 as type };
|
|
111
|
+
}
|
|
112
|
+
export namespace omeTiffOffsetsUrl {
|
|
113
|
+
const type_18: string;
|
|
114
|
+
export { type_18 as type };
|
|
115
|
+
export const format: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export { properties_3 as properties };
|
|
119
|
+
}
|
|
120
|
+
namespace requestInit {
|
|
121
|
+
const type_19: string;
|
|
122
|
+
export { type_19 as type };
|
|
123
|
+
const additionalProperties_4: boolean;
|
|
124
|
+
export { additionalProperties_4 as additionalProperties };
|
|
125
|
+
const required_2: never[];
|
|
126
|
+
export { required_2 as required };
|
|
127
|
+
export namespace properties_4 {
|
|
128
|
+
namespace method {
|
|
129
|
+
const type_20: string;
|
|
130
|
+
export { type_20 as type };
|
|
131
|
+
}
|
|
132
|
+
namespace headers {
|
|
133
|
+
const type_21: string;
|
|
134
|
+
export { type_21 as type };
|
|
135
|
+
}
|
|
136
|
+
namespace body {
|
|
137
|
+
const type_22: string;
|
|
138
|
+
export { type_22 as type };
|
|
139
|
+
}
|
|
140
|
+
namespace mode {
|
|
141
|
+
const type_23: string;
|
|
142
|
+
export { type_23 as type };
|
|
143
|
+
}
|
|
144
|
+
namespace credentials {
|
|
145
|
+
const type_24: string;
|
|
146
|
+
export { type_24 as type };
|
|
147
|
+
}
|
|
148
|
+
namespace cache {
|
|
149
|
+
const type_25: string;
|
|
150
|
+
export { type_25 as type };
|
|
151
|
+
}
|
|
152
|
+
namespace redirect {
|
|
153
|
+
const type_26: string;
|
|
154
|
+
export { type_26 as type };
|
|
155
|
+
}
|
|
156
|
+
namespace referrer {
|
|
157
|
+
const type_27: string;
|
|
158
|
+
export { type_27 as type };
|
|
159
|
+
}
|
|
160
|
+
namespace integrity {
|
|
161
|
+
const type_28: string;
|
|
162
|
+
export { type_28 as type };
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
export { properties_4 as properties };
|
|
166
|
+
}
|
|
167
|
+
namespace image {
|
|
168
|
+
const type_29: string;
|
|
169
|
+
export { type_29 as type };
|
|
170
|
+
const additionalProperties_5: boolean;
|
|
171
|
+
export { additionalProperties_5 as additionalProperties };
|
|
172
|
+
const required_3: string[];
|
|
173
|
+
export { required_3 as required };
|
|
174
|
+
export namespace properties_5 {
|
|
175
|
+
export namespace name {
|
|
176
|
+
const type_30: string;
|
|
177
|
+
export { type_30 as type };
|
|
178
|
+
}
|
|
179
|
+
export namespace url {
|
|
180
|
+
const type_31: string;
|
|
181
|
+
export { type_31 as type };
|
|
182
|
+
const format_1: string;
|
|
183
|
+
export { format_1 as format };
|
|
184
|
+
}
|
|
185
|
+
export namespace type_32 {
|
|
186
|
+
const type_33: string;
|
|
187
|
+
export { type_33 as type };
|
|
188
|
+
}
|
|
189
|
+
export { type_32 as type };
|
|
190
|
+
export namespace metadata_1 {
|
|
191
|
+
const $ref_2: string;
|
|
192
|
+
export { $ref_2 as $ref };
|
|
193
|
+
}
|
|
194
|
+
export { metadata_1 as metadata };
|
|
195
|
+
export namespace requestInit_1 {
|
|
196
|
+
const $ref_3: string;
|
|
197
|
+
export { $ref_3 as $ref };
|
|
198
|
+
}
|
|
199
|
+
export { requestInit_1 as requestInit };
|
|
200
|
+
}
|
|
201
|
+
export { properties_5 as properties };
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
const additionalProperties_6: boolean;
|
|
205
|
+
export { additionalProperties_6 as additionalProperties };
|
|
206
|
+
const required_4: string[];
|
|
207
|
+
export { required_4 as required };
|
|
208
|
+
export namespace properties_6 {
|
|
209
|
+
namespace schemaVersion {
|
|
210
|
+
const type_34: string;
|
|
211
|
+
export { type_34 as type };
|
|
212
|
+
}
|
|
213
|
+
namespace usePhysicalSizeScaling {
|
|
214
|
+
const type_35: string;
|
|
215
|
+
export { type_35 as type };
|
|
216
|
+
export const description: string;
|
|
217
|
+
}
|
|
218
|
+
namespace renderLayers {
|
|
219
|
+
const type_36: string;
|
|
220
|
+
export { type_36 as type };
|
|
221
|
+
export namespace items_3 {
|
|
222
|
+
const type_37: string;
|
|
223
|
+
export { type_37 as type };
|
|
224
|
+
}
|
|
225
|
+
export { items_3 as items };
|
|
226
|
+
}
|
|
227
|
+
namespace images {
|
|
228
|
+
const type_38: string;
|
|
229
|
+
export { type_38 as type };
|
|
230
|
+
export namespace items_4 {
|
|
231
|
+
const $ref_4: string;
|
|
232
|
+
export { $ref_4 as $ref };
|
|
233
|
+
}
|
|
234
|
+
export { items_4 as items };
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
export { properties_6 as properties };
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=raster.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raster.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/raster.schema.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
const schema = {
|
|
2
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
3
|
+
$id: 'https://github.com/vitessce/vitessce/#raster',
|
|
4
|
+
title: 'Vitessce image data',
|
|
5
|
+
type: 'object',
|
|
6
|
+
definitions: {
|
|
7
|
+
transform: {
|
|
8
|
+
type: 'object',
|
|
9
|
+
additionalProperties: false,
|
|
10
|
+
oneOf: [{ required: ['scale', 'translate'] }, { required: ['matrix'] }],
|
|
11
|
+
properties: {
|
|
12
|
+
scale: { type: 'number' },
|
|
13
|
+
translate: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
additionalProperties: false,
|
|
16
|
+
required: ['y', 'x'],
|
|
17
|
+
properties: {
|
|
18
|
+
y: { type: 'number' },
|
|
19
|
+
x: { type: 'number' },
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
matrix: {
|
|
23
|
+
type: 'array',
|
|
24
|
+
items: { type: 'number' },
|
|
25
|
+
minItems: 16,
|
|
26
|
+
maxItems: 16,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
dimensions: {
|
|
31
|
+
type: 'array',
|
|
32
|
+
items: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
additionalProperties: false,
|
|
35
|
+
required: ['field', 'type', 'values'],
|
|
36
|
+
properties: {
|
|
37
|
+
field: { type: 'string' },
|
|
38
|
+
type: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
enum: ['quantitative', 'nominal', 'ordinal', 'temporal'],
|
|
41
|
+
},
|
|
42
|
+
values: {
|
|
43
|
+
type: ['array', 'null'],
|
|
44
|
+
items: { type: 'string' },
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
metadata: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
anyOf: [{ required: ['dimensions', 'isPyramid'] }, { required: ['transform'] }, { required: ['omeTiffOffsetsUrl'] }, { required: ['isBitmask'] }],
|
|
53
|
+
properties: {
|
|
54
|
+
dimensions: { $ref: '#/definitions/dimensions' },
|
|
55
|
+
isPyramid: { type: 'boolean' },
|
|
56
|
+
transform: { $ref: '#/definitions/transform' },
|
|
57
|
+
isBitmask: { type: 'boolean' },
|
|
58
|
+
omeTiffOffsetsUrl: { type: 'string', format: 'uri' },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
requestInit: {
|
|
62
|
+
type: 'object',
|
|
63
|
+
additionalProperties: false,
|
|
64
|
+
required: [],
|
|
65
|
+
properties: {
|
|
66
|
+
method: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
},
|
|
69
|
+
headers: {
|
|
70
|
+
type: 'object',
|
|
71
|
+
},
|
|
72
|
+
body: {
|
|
73
|
+
type: 'string',
|
|
74
|
+
},
|
|
75
|
+
mode: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
},
|
|
78
|
+
credentials: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
},
|
|
81
|
+
cache: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
},
|
|
84
|
+
redirect: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
},
|
|
87
|
+
referrer: {
|
|
88
|
+
type: 'string',
|
|
89
|
+
},
|
|
90
|
+
integrity: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
image: {
|
|
96
|
+
type: 'object',
|
|
97
|
+
additionalProperties: false,
|
|
98
|
+
required: ['name', 'url', 'type'],
|
|
99
|
+
properties: {
|
|
100
|
+
name: { type: 'string' },
|
|
101
|
+
url: { type: 'string', format: 'uri' },
|
|
102
|
+
type: { type: 'string' },
|
|
103
|
+
metadata: { $ref: '#/definitions/metadata' },
|
|
104
|
+
requestInit: { $ref: '#/definitions/requestInit' },
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
additionalProperties: false,
|
|
109
|
+
required: ['schemaVersion', 'images'],
|
|
110
|
+
properties: {
|
|
111
|
+
schemaVersion: { type: 'string' },
|
|
112
|
+
usePhysicalSizeScaling: { type: 'boolean', description: 'Default is false: passing true in will infer scaling from the reported physcial size' },
|
|
113
|
+
renderLayers: { type: 'array', items: { type: 'string' } },
|
|
114
|
+
images: {
|
|
115
|
+
type: 'array',
|
|
116
|
+
items: { $ref: '#/definitions/image' },
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
export default schema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/shared-mui/components.js"],"names":[],"mappings":"AAwBA,oDAwDC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useRef } from 'react';
|
|
3
|
+
import { makeStyles, Paper, Popper, IconButton, MenuList, ClickAwayListener, Fade, } from '@material-ui/core';
|
|
4
|
+
import { useVitessceContainer } from '../hooks.js';
|
|
5
|
+
const useStyles = makeStyles(() => ({
|
|
6
|
+
paper: {
|
|
7
|
+
maxHeight: 200,
|
|
8
|
+
overflow: 'auto',
|
|
9
|
+
},
|
|
10
|
+
container: {
|
|
11
|
+
position: 'relative',
|
|
12
|
+
left: 0,
|
|
13
|
+
top: 0,
|
|
14
|
+
},
|
|
15
|
+
}));
|
|
16
|
+
export function PopperMenu(props) {
|
|
17
|
+
const { buttonIcon, open, setOpen, children, buttonClassName, placement = 'bottom-end', } = props;
|
|
18
|
+
const classes = useStyles();
|
|
19
|
+
const anchorRef = useRef();
|
|
20
|
+
const handleClick = () => {
|
|
21
|
+
setOpen(prev => !prev);
|
|
22
|
+
};
|
|
23
|
+
const handleClose = () => {
|
|
24
|
+
setOpen(false);
|
|
25
|
+
};
|
|
26
|
+
const id = open ? 'v-popover-menu' : undefined;
|
|
27
|
+
const getTooltipContainer = useVitessceContainer(anchorRef);
|
|
28
|
+
return (_jsxs("div", { ref: anchorRef, className: classes.container, children: [_jsx(IconButton, { "aria-describedby": id, onClick: handleClick, size: "small", className: buttonClassName, children: buttonIcon }), _jsx(Popper, { id: id, open: open, anchorEl: anchorRef && anchorRef.current, container: getTooltipContainer, onClose: handleClose, placement: placement, transition: true, children: ({ TransitionProps }) => (_jsx(ClickAwayListener, { onClickAway: handleClose, children: _jsx(Fade, { ...TransitionProps, timeout: 100, children: _jsx(Paper, { elevation: 4, className: classes.paper, children: _jsx(MenuList, { children: children }) }) }) })) })] }));
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/shared-mui/container.js"],"names":[],"mappings":"AAEA,0IAiNI"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { makeStyles } from '@material-ui/core';
|
|
2
|
+
export const useVitessceContainerStyles = makeStyles(theme => ({
|
|
3
|
+
vitessceContainer: {
|
|
4
|
+
position: 'relative',
|
|
5
|
+
margin: '0',
|
|
6
|
+
textAlign: 'left',
|
|
7
|
+
backgroundColor: theme.palette.gridLayoutBackground,
|
|
8
|
+
'& div': {
|
|
9
|
+
fontFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"',
|
|
10
|
+
fontSize: '16px',
|
|
11
|
+
fontWeight: '400',
|
|
12
|
+
lineHeight: '1.5',
|
|
13
|
+
textAlign: 'left',
|
|
14
|
+
},
|
|
15
|
+
'& p': {
|
|
16
|
+
marginTop: '0',
|
|
17
|
+
marginBottom: '16px',
|
|
18
|
+
},
|
|
19
|
+
'& *, ::after, ::before': {
|
|
20
|
+
boxSizing: 'border-box',
|
|
21
|
+
},
|
|
22
|
+
// Manually converted styles from 'react-grid-layout/css/styles.css',
|
|
23
|
+
// using https://cssinjs.org/jss-plugin-global/?v=v10.9.2
|
|
24
|
+
// so that no CSS or SCSS import is required.
|
|
25
|
+
'@global .react-grid-layout': {
|
|
26
|
+
transition: 'height 200ms ease',
|
|
27
|
+
// Custom
|
|
28
|
+
height: 'auto',
|
|
29
|
+
position: 'absolute',
|
|
30
|
+
width: '100%',
|
|
31
|
+
},
|
|
32
|
+
'@global .react-grid-item': {
|
|
33
|
+
transition: 'all 200ms ease',
|
|
34
|
+
transitionProperty: 'left, top',
|
|
35
|
+
// Custom
|
|
36
|
+
flexDirection: 'column!important',
|
|
37
|
+
display: 'flex!important',
|
|
38
|
+
/* So the resize handle position looks correct: */
|
|
39
|
+
paddingRight: '10px',
|
|
40
|
+
},
|
|
41
|
+
'@global .react-grid-item img': {
|
|
42
|
+
pointerEvents: 'none',
|
|
43
|
+
userSelect: 'none',
|
|
44
|
+
},
|
|
45
|
+
'@global .react-grid-item.cssTransforms': {
|
|
46
|
+
transitionProperty: 'transform',
|
|
47
|
+
},
|
|
48
|
+
'@global .react-grid-item.resizing': {
|
|
49
|
+
zIndex: '1',
|
|
50
|
+
willChange: 'width, height',
|
|
51
|
+
},
|
|
52
|
+
'@global .react-grid-item.react-draggable-dragging': {
|
|
53
|
+
transition: 'none',
|
|
54
|
+
zIndex: '3',
|
|
55
|
+
willChange: 'transform',
|
|
56
|
+
},
|
|
57
|
+
'@global .react-grid-item.dropping': {
|
|
58
|
+
visibility: 'hidden',
|
|
59
|
+
},
|
|
60
|
+
'@global .react-grid-item.react-grid-placeholder': {
|
|
61
|
+
background: 'red',
|
|
62
|
+
opacity: '0.2',
|
|
63
|
+
transitionDuration: '100ms',
|
|
64
|
+
zIndex: '2',
|
|
65
|
+
userSelect: 'none',
|
|
66
|
+
},
|
|
67
|
+
'@global .react-grid-item > .react-resizable-handle': {
|
|
68
|
+
position: 'absolute',
|
|
69
|
+
width: '20px',
|
|
70
|
+
height: '20px',
|
|
71
|
+
},
|
|
72
|
+
'@global .react-grid-item > .react-resizable-handle::after': {
|
|
73
|
+
content: '""',
|
|
74
|
+
position: 'absolute',
|
|
75
|
+
right: '3px',
|
|
76
|
+
bottom: '3px',
|
|
77
|
+
width: '5px',
|
|
78
|
+
height: '5px',
|
|
79
|
+
borderRight: '2px solid rgba(0, 0, 0, 0.4)',
|
|
80
|
+
borderBottom: '2px solid rgba(0, 0, 0, 0.4)',
|
|
81
|
+
},
|
|
82
|
+
'@global .react-resizable-hide > .react-resizable-handle': {
|
|
83
|
+
display: 'none',
|
|
84
|
+
},
|
|
85
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-sw': {
|
|
86
|
+
bottom: '0',
|
|
87
|
+
left: '0',
|
|
88
|
+
cursor: 'sw-resize',
|
|
89
|
+
transform: 'rotate(90deg)',
|
|
90
|
+
},
|
|
91
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-se': {
|
|
92
|
+
bottom: '0',
|
|
93
|
+
right: '0',
|
|
94
|
+
cursor: 'se-resize',
|
|
95
|
+
},
|
|
96
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-nw': {
|
|
97
|
+
top: '0',
|
|
98
|
+
left: '0',
|
|
99
|
+
cursor: 'nw-resize',
|
|
100
|
+
transform: 'rotate(180deg)',
|
|
101
|
+
},
|
|
102
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-ne': {
|
|
103
|
+
top: '0',
|
|
104
|
+
right: '0',
|
|
105
|
+
cursor: 'ne-resize',
|
|
106
|
+
transform: 'rotate(270deg)',
|
|
107
|
+
},
|
|
108
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-w': {
|
|
109
|
+
top: '50%',
|
|
110
|
+
marginTop: '-10px',
|
|
111
|
+
cursor: 'ew-resize',
|
|
112
|
+
left: '0',
|
|
113
|
+
transform: 'rotate(135deg)',
|
|
114
|
+
},
|
|
115
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-e': {
|
|
116
|
+
top: '50%',
|
|
117
|
+
marginTop: '-10px',
|
|
118
|
+
cursor: 'ew-resize',
|
|
119
|
+
right: '0',
|
|
120
|
+
transform: 'rotate(315deg)',
|
|
121
|
+
},
|
|
122
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-n': {
|
|
123
|
+
left: '50%',
|
|
124
|
+
marginLeft: '-10px',
|
|
125
|
+
cursor: 'ns-resize',
|
|
126
|
+
top: '0',
|
|
127
|
+
transform: 'rotate(225deg)',
|
|
128
|
+
},
|
|
129
|
+
'@global .react-grid-item > .react-resizable-handle.react-resizable-handle-s': {
|
|
130
|
+
left: '50%',
|
|
131
|
+
marginLeft: '-10px',
|
|
132
|
+
cursor: 'ns-resize',
|
|
133
|
+
bottom: '0',
|
|
134
|
+
transform: 'rotate(45deg)',
|
|
135
|
+
},
|
|
136
|
+
// Manually converted styles from 'react-resizable/css/styles.css',
|
|
137
|
+
'@global .react-resizable': {
|
|
138
|
+
position: 'relative',
|
|
139
|
+
},
|
|
140
|
+
'@global .react-resizable-handle': {
|
|
141
|
+
position: 'absolute',
|
|
142
|
+
width: '20px',
|
|
143
|
+
height: '20px',
|
|
144
|
+
backgroundRepeat: 'no-repeat',
|
|
145
|
+
backgroundOrigin: 'content-box',
|
|
146
|
+
boxSizing: 'border-box',
|
|
147
|
+
backgroundImage: "url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+')",
|
|
148
|
+
backgroundPosition: 'bottom right',
|
|
149
|
+
padding: '0 3px 3px 0',
|
|
150
|
+
},
|
|
151
|
+
'@global .react-resizable-handle-sw': {
|
|
152
|
+
bottom: '0',
|
|
153
|
+
left: '0',
|
|
154
|
+
cursor: 'sw-resize',
|
|
155
|
+
transform: 'rotate(90deg)',
|
|
156
|
+
},
|
|
157
|
+
'@global .react-resizable-handle-se': {
|
|
158
|
+
bottom: '0',
|
|
159
|
+
right: '0',
|
|
160
|
+
cursor: 'se-resize',
|
|
161
|
+
},
|
|
162
|
+
'@global .react-resizable-handle-nw': {
|
|
163
|
+
top: '0',
|
|
164
|
+
left: '0',
|
|
165
|
+
cursor: 'nw-resize',
|
|
166
|
+
transform: 'rotate(180deg)',
|
|
167
|
+
},
|
|
168
|
+
'@global .react-resizable-handle-ne': {
|
|
169
|
+
top: '0',
|
|
170
|
+
right: '0',
|
|
171
|
+
cursor: 'ne-resize',
|
|
172
|
+
transform: 'rotate(270deg)',
|
|
173
|
+
},
|
|
174
|
+
'@global .react-resizable-handle-w': {
|
|
175
|
+
top: '50%',
|
|
176
|
+
marginTop: '-10px',
|
|
177
|
+
cursor: 'ew-resize',
|
|
178
|
+
left: '0',
|
|
179
|
+
transform: 'rotate(135deg)',
|
|
180
|
+
},
|
|
181
|
+
'@global .react-resizable-handle-e': {
|
|
182
|
+
top: '50%',
|
|
183
|
+
marginTop: '-10px',
|
|
184
|
+
cursor: 'ew-resize',
|
|
185
|
+
right: '0',
|
|
186
|
+
transform: 'rotate(315deg)',
|
|
187
|
+
},
|
|
188
|
+
'@global .react-resizable-handle-n': {
|
|
189
|
+
left: '50%',
|
|
190
|
+
marginLeft: '-10px',
|
|
191
|
+
cursor: 'ns-resize',
|
|
192
|
+
top: '0',
|
|
193
|
+
transform: 'rotate(225deg)',
|
|
194
|
+
},
|
|
195
|
+
'@global .react-resizable-handle-s': {
|
|
196
|
+
left: '50%',
|
|
197
|
+
marginLeft: '-10px',
|
|
198
|
+
cursor: 'ns-resize',
|
|
199
|
+
bottom: '0',
|
|
200
|
+
transform: 'rotate(45deg)',
|
|
201
|
+
},
|
|
202
|
+
// Custom
|
|
203
|
+
'@global .react-draggable-transparent-selection .react-grid-item': {
|
|
204
|
+
/* These styles prevent text selection during resize drag interactions.
|
|
205
|
+
The react-draggable-transparent-selection class is added to the body
|
|
206
|
+
element during resizing and removed after resizing has finished.
|
|
207
|
+
Not part of mixin because acts outside of .vitessce-container. */
|
|
208
|
+
userSelect: 'none !important',
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/shared-mui/styles.js"],"names":[],"mappings":""}
|