@vitessce/vit-s 3.6.10 → 3.6.12
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 +23 -13
- package/dist-tsc/VitessceGrid.js +1 -1
- package/dist-tsc/title-styles.d.ts.map +1 -1
- package/dist-tsc/title-styles.js +1 -0
- package/package.json +12 -12
- package/src/VitessceGrid.js +1 -1
- package/src/title-styles.js +1 -0
package/dist/index.js
CHANGED
|
@@ -32237,7 +32237,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
|
32237
32237
|
CoordinationType$1.HIERARCHY_LEVELS
|
|
32238
32238
|
]
|
|
32239
32239
|
});
|
|
32240
|
-
const version = "3.6.
|
|
32240
|
+
const version = "3.6.12";
|
|
32241
32241
|
const META_VERSION = {
|
|
32242
32242
|
version
|
|
32243
32243
|
};
|
|
@@ -33131,12 +33131,13 @@ class VitessceConfigDatasetFile {
|
|
|
33131
33131
|
* which may provide additional parameters to the loader class
|
|
33132
33132
|
* corresponding to the specified fileType.
|
|
33133
33133
|
*/
|
|
33134
|
-
constructor(url, fileType, coordinationValues, options) {
|
|
33134
|
+
constructor(url, fileType, coordinationValues, options, requestInit2) {
|
|
33135
33135
|
this.file = {
|
|
33136
33136
|
url,
|
|
33137
33137
|
fileType,
|
|
33138
33138
|
...coordinationValues ? { coordinationValues } : {},
|
|
33139
|
-
...options ? { options } : {}
|
|
33139
|
+
...options ? { options } : {},
|
|
33140
|
+
...requestInit2 ? { requestInit: requestInit2 } : {}
|
|
33140
33141
|
};
|
|
33141
33142
|
}
|
|
33142
33143
|
/**
|
|
@@ -33177,6 +33178,7 @@ class VitessceConfigDataset {
|
|
|
33177
33178
|
let fileType;
|
|
33178
33179
|
let coordinationValues;
|
|
33179
33180
|
let options;
|
|
33181
|
+
let requestInit2;
|
|
33180
33182
|
if (args.length > 0) {
|
|
33181
33183
|
url = params;
|
|
33182
33184
|
let dataType;
|
|
@@ -33190,12 +33192,13 @@ class VitessceConfigDataset {
|
|
|
33190
33192
|
url,
|
|
33191
33193
|
fileType,
|
|
33192
33194
|
options,
|
|
33193
|
-
coordinationValues
|
|
33195
|
+
coordinationValues,
|
|
33196
|
+
requestInit: requestInit2
|
|
33194
33197
|
} = params);
|
|
33195
33198
|
} else {
|
|
33196
33199
|
throw new Error("Expected addFile argument to be an object.");
|
|
33197
33200
|
}
|
|
33198
|
-
this.dataset.files.push(new VitessceConfigDatasetFile(url, fileType, coordinationValues, options));
|
|
33201
|
+
this.dataset.files.push(new VitessceConfigDatasetFile(url, fileType, coordinationValues, options, requestInit2));
|
|
33199
33202
|
return this;
|
|
33200
33203
|
}
|
|
33201
33204
|
/**
|
|
@@ -33518,13 +33521,19 @@ class VitessceConfig {
|
|
|
33518
33521
|
* Add a new view to the config.
|
|
33519
33522
|
* @param {VitessceConfigDataset} dataset The dataset instance which defines the data
|
|
33520
33523
|
* that will be displayed in the view.
|
|
33521
|
-
* @param {string} component A component name, such as "scatterplot"
|
|
33522
|
-
*
|
|
33523
|
-
* @param {
|
|
33524
|
-
* @param {number} options.
|
|
33525
|
-
*
|
|
33526
|
-
* @param {number} options.
|
|
33527
|
-
*
|
|
33524
|
+
* @param {string} component A component name, such as "scatterplot"
|
|
33525
|
+
* or "spatial".
|
|
33526
|
+
* @param {object|undefined} options Extra options for the component.
|
|
33527
|
+
* @param {number|undefined} options.x The x-coordinate for the view
|
|
33528
|
+
* in the grid layout.
|
|
33529
|
+
* @param {number|undefined} options.y The y-coordinate for the view
|
|
33530
|
+
* in the grid layout.
|
|
33531
|
+
* @param {number|undefined} options.w The width for the view in the
|
|
33532
|
+
* grid layout.
|
|
33533
|
+
* @param {number|undefined} options.h The height for the view in the
|
|
33534
|
+
* grid layout.
|
|
33535
|
+
* @param {string|undefined} options.mapping A convenience parameter
|
|
33536
|
+
* for setting the EMBEDDING_TYPE
|
|
33528
33537
|
* coordination value. Only applicable if the component is "scatterplot".
|
|
33529
33538
|
* @returns {VitessceConfigView} A new view instance.
|
|
33530
33539
|
*/
|
|
@@ -42306,6 +42315,7 @@ const useTitleStyles = makeStyles()((theme) => ({
|
|
|
42306
42315
|
flexDirection: "row",
|
|
42307
42316
|
flexShrink: "0"
|
|
42308
42317
|
},
|
|
42318
|
+
// Note: This class is specified as the draggable handle for the grid layout.
|
|
42309
42319
|
titleLeft: {
|
|
42310
42320
|
flexShrink: "1",
|
|
42311
42321
|
textOverflow: "ellipsis",
|
|
@@ -42482,7 +42492,7 @@ function VitessceGrid(props) {
|
|
|
42482
42492
|
fileTypes,
|
|
42483
42493
|
coordinationTypes,
|
|
42484
42494
|
stores,
|
|
42485
|
-
draggableHandle: titleClasses.
|
|
42495
|
+
draggableHandle: titleClasses.titleLeft,
|
|
42486
42496
|
margin,
|
|
42487
42497
|
padding,
|
|
42488
42498
|
onRemoveComponent: removeComponent,
|
package/dist-tsc/VitessceGrid.js
CHANGED
|
@@ -62,5 +62,5 @@ export default function VitessceGrid(props) {
|
|
|
62
62
|
setLoaders(newLoaders);
|
|
63
63
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
64
64
|
}, [success, configKey]);
|
|
65
|
-
return (_jsxs("div", { ref: containerRef, className: clsx(VITESSCE_CONTAINER, classes.vitessceContainer), role: "group", "aria-label": altText, children: [_jsx(GridLayoutGlobalStyles, { classes: classes }), layout ? (_jsx(VitessceGridLayout, { pageMode: pageMode, role: "group", layout: layout, height: height, rowHeight: rowHeight, theme: theme, viewTypes: viewTypes, fileTypes: fileTypes, coordinationTypes: coordinationTypes, stores: stores, draggableHandle: titleClasses.
|
|
65
|
+
return (_jsxs("div", { ref: containerRef, className: clsx(VITESSCE_CONTAINER, classes.vitessceContainer), role: "group", "aria-label": altText, children: [_jsx(GridLayoutGlobalStyles, { classes: classes }), layout ? (_jsx(VitessceGridLayout, { pageMode: pageMode, role: "group", layout: layout, height: height, rowHeight: rowHeight, theme: theme, viewTypes: viewTypes, fileTypes: fileTypes, coordinationTypes: coordinationTypes, stores: stores, draggableHandle: titleClasses.titleLeft, margin: margin, padding: padding, onRemoveComponent: removeComponent, onLayoutChange: changeLayoutPostMount, isBounded: isBounded, onResize: onResize, onResizeStop: onResize, children: children })) : null] }));
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title-styles.d.ts","sourceRoot":"","sources":["../src/title-styles.js"],"names":[],"mappings":"AAEA;;
|
|
1
|
+
{"version":3,"file":"title-styles.d.ts","sourceRoot":"","sources":["../src/title-styles.js"],"names":[],"mappings":"AAEA;;cAyB0B,CAAC;;;kBAMR,eACC;gBAEd,WAAK;eACP,WAEJ;EAuCI"}
|
package/dist-tsc/title-styles.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vit-s",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.12",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"zustand": "^5.0.4",
|
|
29
29
|
"react-aria": "^3.28.0",
|
|
30
30
|
"react-error-boundary": "^5.0.0",
|
|
31
|
-
"@vitessce/styles": "3.6.
|
|
32
|
-
"@vitessce/abstract": "3.6.
|
|
33
|
-
"@vitessce/error": "3.6.
|
|
34
|
-
"@vitessce/constants-internal": "3.6.
|
|
35
|
-
"@vitessce/plugins": "3.6.
|
|
36
|
-
"@vitessce/schemas": "3.6.
|
|
37
|
-
"@vitessce/utils": "3.6.
|
|
38
|
-
"@vitessce/sets-utils": "3.6.
|
|
39
|
-
"@vitessce/config": "3.6.
|
|
40
|
-
"@vitessce/globals": "3.6.
|
|
31
|
+
"@vitessce/styles": "3.6.12",
|
|
32
|
+
"@vitessce/abstract": "3.6.12",
|
|
33
|
+
"@vitessce/error": "3.6.12",
|
|
34
|
+
"@vitessce/constants-internal": "3.6.12",
|
|
35
|
+
"@vitessce/plugins": "3.6.12",
|
|
36
|
+
"@vitessce/schemas": "3.6.12",
|
|
37
|
+
"@vitessce/utils": "3.6.12",
|
|
38
|
+
"@vitessce/sets-utils": "3.6.12",
|
|
39
|
+
"@vitessce/config": "3.6.12",
|
|
40
|
+
"@vitessce/globals": "3.6.12"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-dom": "^18.0.0",
|
|
47
47
|
"vite": "^6.3.5",
|
|
48
48
|
"vitest": "^3.1.4",
|
|
49
|
-
"@vitessce/types": "3.6.
|
|
49
|
+
"@vitessce/types": "3.6.12"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
package/src/VitessceGrid.js
CHANGED
|
@@ -129,7 +129,7 @@ export default function VitessceGrid(props) {
|
|
|
129
129
|
fileTypes={fileTypes}
|
|
130
130
|
coordinationTypes={coordinationTypes}
|
|
131
131
|
stores={stores}
|
|
132
|
-
draggableHandle={titleClasses.
|
|
132
|
+
draggableHandle={titleClasses.titleLeft}
|
|
133
133
|
margin={margin}
|
|
134
134
|
padding={padding}
|
|
135
135
|
onRemoveComponent={removeComponent}
|
package/src/title-styles.js
CHANGED