@vitessce/vega 3.5.9 → 3.5.11
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 +12 -6
- package/dist-tsc/VegaPlot.d.ts.map +1 -1
- package/dist-tsc/VegaPlot.js +2 -2
- package/package.json +3 -3
- package/src/VegaPlot.js +5 -2
package/dist/index.js
CHANGED
|
@@ -50003,7 +50003,9 @@ const ViewType$1 = {
|
|
|
50003
50003
|
LINK_CONTROLLER: "linkController",
|
|
50004
50004
|
NEUROGLANCER: "neuroglancer",
|
|
50005
50005
|
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
50006
|
-
TREEMAP: "treemap"
|
|
50006
|
+
TREEMAP: "treemap",
|
|
50007
|
+
SAMPLE_SET_PAIR_MANAGER: "sampleSetPairManager",
|
|
50008
|
+
FEATURE_STATS_TABLE: "featureStatsTable"
|
|
50007
50009
|
};
|
|
50008
50010
|
const DataType$1 = {
|
|
50009
50011
|
OBS_LABELS: "obsLabels",
|
|
@@ -50221,6 +50223,7 @@ const CoordinationType$1 = {
|
|
|
50221
50223
|
FEATURE_VALUE_COLORMAP: "featureValueColormap",
|
|
50222
50224
|
FEATURE_VALUE_TRANSFORM: "featureValueTransform",
|
|
50223
50225
|
FEATURE_VALUE_COLORMAP_RANGE: "featureValueColormapRange",
|
|
50226
|
+
FEATURE_AGGREGATION_STRATEGY: "featureAggregationStrategy",
|
|
50224
50227
|
OBS_COLOR_ENCODING: "obsColorEncoding",
|
|
50225
50228
|
SPATIAL_IMAGE_LAYER: "spatialImageLayer",
|
|
50226
50229
|
SPATIAL_SEGMENTATION_LAYER: "spatialSegmentationLayer",
|
|
@@ -50574,6 +50577,7 @@ z.object({
|
|
|
50574
50577
|
termColumn: z.string().optional(),
|
|
50575
50578
|
pValueColumn: z.string(),
|
|
50576
50579
|
pValueAdjusted: z.boolean().optional(),
|
|
50580
|
+
featureSetLibrary: z.string().optional().describe("Optionally, provide a feature set library name. By default, Reactome_2022."),
|
|
50577
50581
|
analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, pertpy_hypergeometric.")
|
|
50578
50582
|
});
|
|
50579
50583
|
z.object({
|
|
@@ -50584,7 +50588,6 @@ z.object({
|
|
|
50584
50588
|
foldChangeColumn: z.string().describe("The log-fold change is then calculated between this expected sample and the expected sample with no active covariates from the intercept section."),
|
|
50585
50589
|
foldChangeTransformation: z.enum(["log2"]).optional(),
|
|
50586
50590
|
isCredibleEffectColumn: z.string().describe("Column which annotates effects as being credible or not (boolean)."),
|
|
50587
|
-
covariateColumn: z.string().describe("Column which defines the covariate used in the analysis."),
|
|
50588
50591
|
analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, sccoda_df.")
|
|
50589
50592
|
});
|
|
50590
50593
|
const annDataObsLabels = annDataObs;
|
|
@@ -79217,7 +79220,9 @@ function VegaPlot(props) {
|
|
|
79217
79220
|
spec: partialSpec,
|
|
79218
79221
|
data: data2,
|
|
79219
79222
|
getTooltipText,
|
|
79220
|
-
signalListeners
|
|
79223
|
+
signalListeners,
|
|
79224
|
+
renderer = "svg",
|
|
79225
|
+
onNewView
|
|
79221
79226
|
} = props;
|
|
79222
79227
|
const classes = useStyles();
|
|
79223
79228
|
const tooltipClasses = styles();
|
|
@@ -79264,11 +79269,12 @@ function VegaPlot(props) {
|
|
|
79264
79269
|
},
|
|
79265
79270
|
signalListeners,
|
|
79266
79271
|
tooltip: tooltipHandler,
|
|
79267
|
-
renderer
|
|
79268
|
-
scaleFactor: 3
|
|
79272
|
+
renderer,
|
|
79273
|
+
scaleFactor: 3,
|
|
79274
|
+
onNewView
|
|
79269
79275
|
},
|
|
79270
79276
|
JSON.stringify({ width: spec.width, height: spec.height })
|
|
79271
|
-
), [spec, data2, signalListeners, tooltipHandler]);
|
|
79277
|
+
), [spec, data2, signalListeners, tooltipHandler, renderer, onNewView]);
|
|
79272
79278
|
return spec && data2 && data2.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: vegaComponent }) : null;
|
|
79273
79279
|
}
|
|
79274
79280
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VegaPlot.d.ts","sourceRoot":"","sources":["../src/VegaPlot.js"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,gCALW,MAAM,
|
|
1
|
+
{"version":3,"file":"VegaPlot.d.ts","sourceRoot":"","sources":["../src/VegaPlot.js"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,gCALW,MAAM,sBAoFhB"}
|
package/dist-tsc/VegaPlot.js
CHANGED
|
@@ -40,7 +40,7 @@ function renderTooltipContents(tooltipText) {
|
|
|
40
40
|
* @param {object} signalListeners Vega signal listeners. Optional.
|
|
41
41
|
*/
|
|
42
42
|
export function VegaPlot(props) {
|
|
43
|
-
const { spec: partialSpec, data, getTooltipText, signalListeners, } = props;
|
|
43
|
+
const { spec: partialSpec, data, getTooltipText, signalListeners, renderer = 'svg', onNewView, } = props;
|
|
44
44
|
// eslint-disable-next-line no-unused-vars
|
|
45
45
|
const classes = useStyles();
|
|
46
46
|
const tooltipClasses = useTooltipStyles();
|
|
@@ -83,6 +83,6 @@ export function VegaPlot(props) {
|
|
|
83
83
|
}), [partialSpec]);
|
|
84
84
|
const vegaComponent = useMemo(() => (_jsx(ReactVega, { spec: spec, data: {
|
|
85
85
|
[DATASET_NAME]: data,
|
|
86
|
-
}, signalListeners: signalListeners, tooltip: tooltipHandler, renderer:
|
|
86
|
+
}, signalListeners: signalListeners, tooltip: tooltipHandler, renderer: renderer, scaleFactor: 3, onNewView: onNewView }, JSON.stringify({ width: spec.width, height: spec.height }))), [spec, data, signalListeners, tooltipHandler, renderer, onNewView]);
|
|
87
87
|
return (spec && data && data.length > 0 ? (_jsx(Suspense, { fallback: _jsx("div", { children: "Loading..." }), children: vegaComponent })) : null);
|
|
88
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vega",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.11",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"vega": "^5.21.0",
|
|
23
23
|
"vega-lite": "^5.1.1",
|
|
24
24
|
"vega-tooltip": "^0.27.0",
|
|
25
|
-
"@vitessce/tooltip": "3.5.
|
|
26
|
-
"@vitessce/legend": "3.5.
|
|
25
|
+
"@vitessce/tooltip": "3.5.11",
|
|
26
|
+
"@vitessce/legend": "3.5.11"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"react": "^18.0.0",
|
package/src/VegaPlot.js
CHANGED
|
@@ -54,6 +54,8 @@ export function VegaPlot(props) {
|
|
|
54
54
|
data,
|
|
55
55
|
getTooltipText,
|
|
56
56
|
signalListeners,
|
|
57
|
+
renderer = 'svg',
|
|
58
|
+
onNewView,
|
|
57
59
|
} = props;
|
|
58
60
|
|
|
59
61
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -108,14 +110,15 @@ export function VegaPlot(props) {
|
|
|
108
110
|
}}
|
|
109
111
|
signalListeners={signalListeners}
|
|
110
112
|
tooltip={tooltipHandler}
|
|
111
|
-
renderer=
|
|
113
|
+
renderer={renderer}
|
|
112
114
|
scaleFactor={3}
|
|
113
115
|
// We need to force a re-render when the spec
|
|
114
116
|
// is the same except for changed width/height
|
|
115
117
|
// (to support responsive plots).
|
|
116
118
|
key={JSON.stringify({ width: spec.width, height: spec.height })}
|
|
119
|
+
onNewView={onNewView}
|
|
117
120
|
/>
|
|
118
|
-
), [spec, data, signalListeners, tooltipHandler]);
|
|
121
|
+
), [spec, data, signalListeners, tooltipHandler, renderer, onNewView]);
|
|
119
122
|
|
|
120
123
|
return (
|
|
121
124
|
spec && data && data.length > 0 ? (
|