@vitessce/scatterplot-embedding 3.1.0 → 3.1.2
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/{deflate-2c31a4dd.js → deflate-7455633d.js} +1 -1
- package/dist/{index-d8ac68c1.js → index-841c8a1c.js} +784 -739
- package/dist/index.js +1 -1
- package/dist/{jpeg-07b73b88.js → jpeg-e27c7111.js} +1 -1
- package/dist/{lerc-8b917065.js → lerc-a121511e.js} +1 -1
- package/dist/{lzw-ad66c72b.js → lzw-6da36e65.js} +1 -1
- package/dist/{packbits-8c472a15.js → packbits-f9f4e24f.js} +1 -1
- package/dist/{raw-58aad486.js → raw-589273c1.js} +1 -1
- package/dist/{webimage-adebb0c3.js → webimage-532eb642.js} +1 -1
- package/dist-tsc/EmbeddingScatterplotOptions.d.ts.map +1 -1
- package/dist-tsc/EmbeddingScatterplotOptions.js +5 -4
- package/dist-tsc/EmbeddingScatterplotSubscriber.d.ts.map +1 -1
- package/dist-tsc/EmbeddingScatterplotSubscriber.js +1 -2
- package/package.json +7 -8
- package/src/EmbeddingScatterplotOptions.js +12 -7
- package/src/EmbeddingScatterplotSubscriber.js +1 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-841c8a1c.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddingScatterplotOptions.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotOptions.js"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"EmbeddingScatterplotOptions.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotOptions.js"],"names":[],"mappings":"AAIA,oFA8CC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { useId } from 'react';
|
|
3
3
|
import { TableCell, TableRow } from '@material-ui/core';
|
|
4
4
|
import { usePlotOptionsStyles, OptionSelect } from '@vitessce/vit-s';
|
|
5
5
|
export default function EmbeddingScatterplotOptions(props) {
|
|
6
6
|
const { mappingSelectEnabled, mappings, selectedMapping, setSelectedMapping, } = props;
|
|
7
7
|
const classes = usePlotOptionsStyles();
|
|
8
|
+
const scatterplotOptionsId = useId();
|
|
8
9
|
// Handlers for custom option field changes.
|
|
9
10
|
const handleSelectedMappingChange = (event) => {
|
|
10
11
|
setSelectedMapping(event.target.value);
|
|
11
12
|
};
|
|
12
13
|
return mappingSelectEnabled
|
|
13
|
-
? (_jsxs(TableRow, { children: [_jsx(TableCell, { className: classes.labelCell, children: "Embedding Type" }), _jsx(TableCell, { className: classes.inputCell, children: _jsx(OptionSelect, { className: classes.select, value: selectedMapping, onChange: handleSelectedMappingChange, inputProps: {
|
|
14
|
-
id:
|
|
15
|
-
}, children: mappings.map(name => (_jsx("option", { value: name, children: name }, name))) }
|
|
14
|
+
? (_jsxs(TableRow, { children: [_jsx(TableCell, { className: classes.labelCell, variant: "head", scope: "row", children: _jsx("label", { htmlFor: `scatterplot-mapping-select-${scatterplotOptionsId}`, children: "Embedding Type" }) }), _jsx(TableCell, { className: classes.inputCell, variant: "body", children: _jsx(OptionSelect, { className: classes.select, value: selectedMapping, onChange: handleSelectedMappingChange, inputProps: {
|
|
15
|
+
id: `scatterplot-mapping-select-${scatterplotOptionsId}`,
|
|
16
|
+
}, children: mappings.map(name => (_jsx("option", { value: name, children: name }, name))) }) })] }))
|
|
16
17
|
: null;
|
|
17
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmbeddingScatterplotSubscriber.d.ts","sourceRoot":"","sources":["../src/EmbeddingScatterplotSubscriber.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;;;GAYG;AACH;IAVyB,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;gBA0WhB"}
|
|
@@ -2,10 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useState, useEffect, useCallback, useMemo, } from 'react';
|
|
3
3
|
import { extent } from 'd3-array';
|
|
4
4
|
import { isEqual } from 'lodash-es';
|
|
5
|
-
import plur from 'plur';
|
|
6
5
|
import { TitleInfo, useReady, useUrls, useDeckCanvasSize, useUint8FeatureSelection, useExpressionValueGetter, useGetObsInfo, useObsEmbeddingData, useObsSetsData, useFeatureSelection, useObsFeatureMatrixIndices, useFeatureLabelsData, useMultiObsLabels, useCoordination, useLoaders, useSetComponentHover, useSetComponentViewInfo, useInitialCoordination, } from '@vitessce/vit-s';
|
|
7
6
|
import { setObsSelection, mergeObsSets, getCellSetPolygons } from '@vitessce/sets-utils';
|
|
8
|
-
import { getCellColors, commaNumber } from '@vitessce/utils';
|
|
7
|
+
import { pluralize as plur, getCellColors, commaNumber } from '@vitessce/utils';
|
|
9
8
|
import { Scatterplot, ScatterplotTooltipSubscriber, ScatterplotOptions, getPointSizeDevicePixels, getPointOpacity, } from '@vitessce/scatterplot';
|
|
10
9
|
import { Legend } from '@vitessce/legend';
|
|
11
10
|
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-embedding",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,13 +19,12 @@
|
|
|
19
19
|
"@material-ui/core": "~4.12.3",
|
|
20
20
|
"d3-array": "^2.4.0",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
|
-
"
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/vit-s": "3.1.0"
|
|
22
|
+
"@vitessce/constants-internal": "3.1.2",
|
|
23
|
+
"@vitessce/legend": "3.1.2",
|
|
24
|
+
"@vitessce/scatterplot": "3.1.2",
|
|
25
|
+
"@vitessce/sets-utils": "3.1.2",
|
|
26
|
+
"@vitessce/utils": "3.1.2",
|
|
27
|
+
"@vitessce/vit-s": "3.1.2"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
30
|
"react": "^18.0.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useId } from 'react';
|
|
2
2
|
import { TableCell, TableRow } from '@material-ui/core';
|
|
3
3
|
import { usePlotOptionsStyles, OptionSelect } from '@vitessce/vit-s';
|
|
4
4
|
|
|
@@ -12,6 +12,8 @@ export default function EmbeddingScatterplotOptions(props) {
|
|
|
12
12
|
|
|
13
13
|
const classes = usePlotOptionsStyles();
|
|
14
14
|
|
|
15
|
+
const scatterplotOptionsId = useId();
|
|
16
|
+
|
|
15
17
|
// Handlers for custom option field changes.
|
|
16
18
|
const handleSelectedMappingChange = (event) => {
|
|
17
19
|
setSelectedMapping(event.target.value);
|
|
@@ -19,18 +21,21 @@ export default function EmbeddingScatterplotOptions(props) {
|
|
|
19
21
|
|
|
20
22
|
return mappingSelectEnabled
|
|
21
23
|
? (
|
|
22
|
-
<TableRow
|
|
23
|
-
<TableCell className={classes.labelCell}>
|
|
24
|
-
|
|
24
|
+
<TableRow>
|
|
25
|
+
<TableCell className={classes.labelCell} variant="head" scope="row">
|
|
26
|
+
<label
|
|
27
|
+
htmlFor={`scatterplot-mapping-select-${scatterplotOptionsId}`}
|
|
28
|
+
>
|
|
29
|
+
Embedding Type
|
|
30
|
+
</label>
|
|
25
31
|
</TableCell>
|
|
26
|
-
<TableCell className={classes.inputCell}>
|
|
32
|
+
<TableCell className={classes.inputCell} variant="body">
|
|
27
33
|
<OptionSelect
|
|
28
|
-
key="scatterplot-mapping-select"
|
|
29
34
|
className={classes.select}
|
|
30
35
|
value={selectedMapping}
|
|
31
36
|
onChange={handleSelectedMappingChange}
|
|
32
37
|
inputProps={{
|
|
33
|
-
id:
|
|
38
|
+
id: `scatterplot-mapping-select-${scatterplotOptionsId}`,
|
|
34
39
|
}}
|
|
35
40
|
>
|
|
36
41
|
{mappings.map(name => (
|
|
@@ -3,7 +3,6 @@ import React, {
|
|
|
3
3
|
} from 'react';
|
|
4
4
|
import { extent } from 'd3-array';
|
|
5
5
|
import { isEqual } from 'lodash-es';
|
|
6
|
-
import plur from 'plur';
|
|
7
6
|
import {
|
|
8
7
|
TitleInfo,
|
|
9
8
|
useReady, useUrls,
|
|
@@ -24,7 +23,7 @@ import {
|
|
|
24
23
|
useInitialCoordination,
|
|
25
24
|
} from '@vitessce/vit-s';
|
|
26
25
|
import { setObsSelection, mergeObsSets, getCellSetPolygons } from '@vitessce/sets-utils';
|
|
27
|
-
import { getCellColors, commaNumber } from '@vitessce/utils';
|
|
26
|
+
import { pluralize as plur, getCellColors, commaNumber } from '@vitessce/utils';
|
|
28
27
|
import {
|
|
29
28
|
Scatterplot, ScatterplotTooltipSubscriber, ScatterplotOptions,
|
|
30
29
|
getPointSizeDevicePixels,
|