@vitessce/scatterplot 3.0.0 → 3.0.1
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-24a61b7a.js → deflate-162fa772.js} +1 -1
- package/dist/{index-d78d4568.js → index-578beee3.js} +11 -11
- package/dist/index.js +1 -1
- package/dist/{jpeg-19791032.js → jpeg-00fef901.js} +1 -1
- package/dist/{lerc-867fd2ef.js → lerc-55d38607.js} +1 -1
- package/dist/{lzw-40577136.js → lzw-c3bdd9f6.js} +1 -1
- package/dist/{packbits-eab43a40.js → packbits-c1c71d64.js} +1 -1
- package/dist/{raw-66364181.js → raw-e1c8b3d7.js} +1 -1
- package/dist/{webimage-0fe27785.js → webimage-c7fc297e.js} +1 -1
- package/dist-tsc/shared-spatial-scatterplot/ToolMenu.js +4 -4
- package/dist-tsc/shared-spatial-scatterplot/ToolMenu.test.js +1 -1
- package/dist-tsc/shared-spatial-scatterplot/dynamic-opacity.test.js +1 -0
- package/dist-tsc/shared-spatial-scatterplot/force-collide-rects.test.js +1 -0
- package/package.json +11 -11
- package/src/shared-spatial-scatterplot/ToolMenu.js +4 -4
- package/src/shared-spatial-scatterplot/ToolMenu.test.jsx +1 -1
- package/src/shared-spatial-scatterplot/dynamic-opacity.test.js +1 -0
- package/src/shared-spatial-scatterplot/force-collide-rects.test.js +1 -0
|
@@ -104995,16 +104995,16 @@ function addDecoder(cases, importFn) {
|
|
|
104995
104995
|
}
|
|
104996
104996
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
104997
104997
|
}
|
|
104998
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
104999
|
-
addDecoder(5, () => import("./lzw-
|
|
104998
|
+
addDecoder([void 0, 1], () => import("./raw-e1c8b3d7.js").then((m2) => m2.default));
|
|
104999
|
+
addDecoder(5, () => import("./lzw-c3bdd9f6.js").then((m2) => m2.default));
|
|
105000
105000
|
addDecoder(6, () => {
|
|
105001
105001
|
throw new Error("old style JPEG compression is not supported.");
|
|
105002
105002
|
});
|
|
105003
|
-
addDecoder(7, () => import("./jpeg-
|
|
105004
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
105005
|
-
addDecoder(32773, () => import("./packbits-
|
|
105006
|
-
addDecoder(34887, () => import("./lerc-
|
|
105007
|
-
addDecoder(50001, () => import("./webimage-
|
|
105003
|
+
addDecoder(7, () => import("./jpeg-00fef901.js").then((m2) => m2.default));
|
|
105004
|
+
addDecoder([8, 32946], () => import("./deflate-162fa772.js").then((m2) => m2.default));
|
|
105005
|
+
addDecoder(32773, () => import("./packbits-c1c71d64.js").then((m2) => m2.default));
|
|
105006
|
+
addDecoder(34887, () => import("./lerc-55d38607.js").then((m2) => m2.default));
|
|
105007
|
+
addDecoder(50001, () => import("./webimage-c7fc297e.js").then((m2) => m2.default));
|
|
105008
105008
|
function decodeRowAcc(row, stride) {
|
|
105009
105009
|
let length2 = row.length - stride;
|
|
105010
105010
|
let offset5 = 0;
|
|
@@ -140788,7 +140788,7 @@ const CenterFocusStrong = createSvgIcon(/* @__PURE__ */ React.createElement("pat
|
|
|
140788
140788
|
d: "M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"
|
|
140789
140789
|
}), "CenterFocusStrong");
|
|
140790
140790
|
const useStyles$1 = makeStyles(() => ({
|
|
140791
|
-
|
|
140791
|
+
toolButton: {
|
|
140792
140792
|
display: "inline-flex",
|
|
140793
140793
|
"&:active": {
|
|
140794
140794
|
opacity: ".65",
|
|
@@ -140811,7 +140811,7 @@ const useStyles$1 = makeStyles(() => ({
|
|
|
140811
140811
|
transform: "scale(0.98)"
|
|
140812
140812
|
// make the button slightly smaller
|
|
140813
140813
|
},
|
|
140814
|
-
|
|
140814
|
+
toolIcon: {
|
|
140815
140815
|
// btn btn-outline-secondary mr-2 icon
|
|
140816
140816
|
padding: "0",
|
|
140817
140817
|
height: "2em",
|
|
@@ -140857,7 +140857,7 @@ function IconTool(props2) {
|
|
|
140857
140857
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
140858
140858
|
"button",
|
|
140859
140859
|
{
|
|
140860
|
-
className: clsx(classes.
|
|
140860
|
+
className: clsx(classes.toolIcon, { [classes.toolActive]: isActive }),
|
|
140861
140861
|
onClick,
|
|
140862
140862
|
type: "button",
|
|
140863
140863
|
title: alt,
|
|
@@ -140875,7 +140875,7 @@ function IconButton2(props2) {
|
|
|
140875
140875
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
140876
140876
|
"button",
|
|
140877
140877
|
{
|
|
140878
|
-
className: clsx(classes.
|
|
140878
|
+
className: clsx(classes.toolIcon, classes.toolButton),
|
|
140879
140879
|
onClick,
|
|
140880
140880
|
type: "button",
|
|
140881
140881
|
title: alt,
|
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-578beee3.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
|
@@ -6,7 +6,7 @@ import { PointerIconSVG, SelectLassoIconSVG } from '@vitessce/icons';
|
|
|
6
6
|
import { makeStyles } from '@material-ui/core';
|
|
7
7
|
import { CenterFocusStrong } from '@material-ui/icons';
|
|
8
8
|
const useStyles = makeStyles(() => ({
|
|
9
|
-
|
|
9
|
+
toolButton: {
|
|
10
10
|
display: 'inline-flex',
|
|
11
11
|
'&:active': {
|
|
12
12
|
opacity: '.65',
|
|
@@ -28,7 +28,7 @@ const useStyles = makeStyles(() => ({
|
|
|
28
28
|
boxShadow: 'none',
|
|
29
29
|
transform: 'scale(0.98)', // make the button slightly smaller
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
toolIcon: {
|
|
32
32
|
// btn btn-outline-secondary mr-2 icon
|
|
33
33
|
padding: '0',
|
|
34
34
|
height: '2em',
|
|
@@ -66,12 +66,12 @@ const useStyles = makeStyles(() => ({
|
|
|
66
66
|
export function IconTool(props) {
|
|
67
67
|
const { alt, onClick, isActive, children, } = props;
|
|
68
68
|
const classes = useStyles();
|
|
69
|
-
return (_jsx("button", { className: clsx(classes.
|
|
69
|
+
return (_jsx("button", { className: clsx(classes.toolIcon, { [classes.toolActive]: isActive }), onClick: onClick, type: "button", title: alt, children: children }));
|
|
70
70
|
}
|
|
71
71
|
export function IconButton(props) {
|
|
72
72
|
const { alt, onClick, children, } = props;
|
|
73
73
|
const classes = useStyles();
|
|
74
|
-
return (_jsx("button", { className: clsx(classes.
|
|
74
|
+
return (_jsx("button", { className: clsx(classes.toolIcon, classes.toolButton), onClick: onClick, type: "button", title: alt, children: children }));
|
|
75
75
|
}
|
|
76
76
|
export default function ToolMenu(props) {
|
|
77
77
|
const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true }, recenterOnClick = () => { }, } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect, afterEach } from 'vitest';
|
|
2
3
|
import '@testing-library/jest-dom';
|
|
3
4
|
import { cleanup, render } from '@testing-library/react';
|
|
4
|
-
import { afterEach, expect } from 'vitest';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { IconTool, IconButton } from './ToolMenu.js';
|
|
7
7
|
afterEach(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -22,26 +22,26 @@
|
|
|
22
22
|
"d3-force": "^2.1.1",
|
|
23
23
|
"d3-quadtree": "^1.0.7",
|
|
24
24
|
"lodash-es": "^4.17.21",
|
|
25
|
-
"@vitessce/constants-internal": "3.0.
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
25
|
+
"@vitessce/constants-internal": "3.0.1",
|
|
26
|
+
"@vitessce/icons": "3.0.1",
|
|
27
|
+
"@vitessce/tooltip": "3.0.1",
|
|
28
|
+
"@vitessce/utils": "3.0.1",
|
|
29
|
+
"@vitessce/vit-s": "3.0.1",
|
|
30
|
+
"@vitessce/gl": "3.0.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
34
|
+
"@testing-library/react": "^13.3.0",
|
|
33
35
|
"react": "^18.0.0",
|
|
34
36
|
"vite": "^4.3.0",
|
|
35
|
-
"vitest": "^0.
|
|
36
|
-
"@testing-library/jest-dom": "^5.16.4",
|
|
37
|
-
"@testing-library/react": "^13.3.0"
|
|
37
|
+
"vitest": "^0.32.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
|
44
|
-
"test": "pnpm exec vitest --run
|
|
44
|
+
"test": "pnpm exec vitest --run"
|
|
45
45
|
},
|
|
46
46
|
"module": "dist/index.js",
|
|
47
47
|
"exports": {
|
|
@@ -6,7 +6,7 @@ import { makeStyles } from '@material-ui/core';
|
|
|
6
6
|
import { CenterFocusStrong } from '@material-ui/icons';
|
|
7
7
|
|
|
8
8
|
const useStyles = makeStyles(() => ({
|
|
9
|
-
|
|
9
|
+
toolButton: {
|
|
10
10
|
display: 'inline-flex',
|
|
11
11
|
'&:active': {
|
|
12
12
|
opacity: '.65',
|
|
@@ -28,7 +28,7 @@ const useStyles = makeStyles(() => ({
|
|
|
28
28
|
boxShadow: 'none',
|
|
29
29
|
transform: 'scale(0.98)', // make the button slightly smaller
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
toolIcon: {
|
|
32
32
|
// btn btn-outline-secondary mr-2 icon
|
|
33
33
|
padding: '0',
|
|
34
34
|
height: '2em',
|
|
@@ -75,7 +75,7 @@ export function IconTool(props) {
|
|
|
75
75
|
const classes = useStyles();
|
|
76
76
|
return (
|
|
77
77
|
<button
|
|
78
|
-
className={clsx(classes.
|
|
78
|
+
className={clsx(classes.toolIcon, { [classes.toolActive]: isActive })}
|
|
79
79
|
onClick={onClick}
|
|
80
80
|
type="button"
|
|
81
81
|
title={alt}
|
|
@@ -92,7 +92,7 @@ export function IconButton(props) {
|
|
|
92
92
|
const classes = useStyles();
|
|
93
93
|
return (
|
|
94
94
|
<button
|
|
95
|
-
className={clsx(classes.
|
|
95
|
+
className={clsx(classes.toolIcon, classes.toolButton)}
|
|
96
96
|
onClick={onClick}
|
|
97
97
|
type="button"
|
|
98
98
|
title={alt}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { describe, it, expect, afterEach } from 'vitest';
|
|
1
2
|
import '@testing-library/jest-dom';
|
|
2
3
|
import { cleanup, render } from '@testing-library/react';
|
|
3
|
-
import { afterEach, expect } from 'vitest';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import { IconTool, IconButton } from './ToolMenu.js';
|