@diamondlightsource/davidia 1.1.0 → 1.3.1-rc.3
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/README.md +6 -3
- package/dist/index.css +2 -1
- package/dist/index.d.ts +863 -36
- package/dist/index.js +3488 -3937
- package/package.json +12 -13
- package/dist/AnyPlot.d.ts +0 -17
- package/dist/AnyPlot.d.ts.map +0 -1
- package/dist/AspectConfigModal.d.ts +0 -22
- package/dist/AspectConfigModal.d.ts.map +0 -1
- package/dist/AxialSelectionConfig.d.ts +0 -22
- package/dist/AxialSelectionConfig.d.ts.map +0 -1
- package/dist/AxisConfigModal.d.ts +0 -57
- package/dist/AxisConfigModal.d.ts.map +0 -1
- package/dist/BatonConfigModal.d.ts +0 -9
- package/dist/BatonConfigModal.d.ts.map +0 -1
- package/dist/ClearSelectionsBtn.d.ts +0 -21
- package/dist/ClearSelectionsBtn.d.ts.map +0 -1
- package/dist/ConnectedPlot.d.ts +0 -23
- package/dist/ConnectedPlot.d.ts.map +0 -1
- package/dist/DomainConfig.d.ts +0 -31
- package/dist/DomainConfig.d.ts.map +0 -1
- package/dist/GlyphTypeToggle.d.ts +0 -23
- package/dist/GlyphTypeToggle.d.ts.map +0 -1
- package/dist/HeatmapPlot.d.ts +0 -35
- package/dist/HeatmapPlot.d.ts.map +0 -1
- package/dist/ImagePlot.d.ts +0 -37
- package/dist/ImagePlot.d.ts.map +0 -1
- package/dist/InteractionModeToggle.d.ts +0 -22
- package/dist/InteractionModeToggle.d.ts.map +0 -1
- package/dist/LabelledInput.d.ts +0 -35
- package/dist/LabelledInput.d.ts.map +0 -1
- package/dist/LineConfig.d.ts +0 -37
- package/dist/LineConfig.d.ts.map +0 -1
- package/dist/LineKeyDropdown.d.ts +0 -23
- package/dist/LineKeyDropdown.d.ts.map +0 -1
- package/dist/LinePlot.d.ts +0 -65
- package/dist/LinePlot.d.ts.map +0 -1
- package/dist/LinearSelectionConfig.d.ts +0 -22
- package/dist/LinearSelectionConfig.d.ts.map +0 -1
- package/dist/Modal.d.ts +0 -26
- package/dist/Modal.d.ts.map +0 -1
- package/dist/Modeless.d.ts +0 -23
- package/dist/Modeless.d.ts.map +0 -1
- package/dist/MulticlickSelectionTool.d.ts +0 -50
- package/dist/MulticlickSelectionTool.d.ts.map +0 -1
- package/dist/PlotCustomizationContext.d.ts +0 -131
- package/dist/PlotCustomizationContext.d.ts.map +0 -1
- package/dist/PlotToolbar.d.ts +0 -17
- package/dist/PlotToolbar.d.ts.map +0 -1
- package/dist/PolygonalSelectionConfig.d.ts +0 -22
- package/dist/PolygonalSelectionConfig.d.ts.map +0 -1
- package/dist/RectangularSelectionConfig.d.ts +0 -22
- package/dist/RectangularSelectionConfig.d.ts.map +0 -1
- package/dist/ScatterPlot.d.ts +0 -42
- package/dist/ScatterPlot.d.ts.map +0 -1
- package/dist/SelectionComponent.d.ts +0 -25
- package/dist/SelectionComponent.d.ts.map +0 -1
- package/dist/SelectionConfig.d.ts +0 -52
- package/dist/SelectionConfig.d.ts.map +0 -1
- package/dist/SelectionConfigComponents.d.ts +0 -69
- package/dist/SelectionConfigComponents.d.ts.map +0 -1
- package/dist/SelectionIDDropdown.d.ts +0 -23
- package/dist/SelectionIDDropdown.d.ts.map +0 -1
- package/dist/SelectionTypeDropdown.d.ts +0 -23
- package/dist/SelectionTypeDropdown.d.ts.map +0 -1
- package/dist/SurfacePlot.d.ts +0 -46
- package/dist/SurfacePlot.d.ts.map +0 -1
- package/dist/TableDisplay.d.ts +0 -37
- package/dist/TableDisplay.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/models.d.ts +0 -70
- package/dist/models.d.ts.map +0 -1
- package/dist/selections/AxialSelection.d.ts +0 -22
- package/dist/selections/AxialSelection.d.ts.map +0 -1
- package/dist/selections/BaseSelection.d.ts +0 -24
- package/dist/selections/BaseSelection.d.ts.map +0 -1
- package/dist/selections/CircularSectorialSelection.d.ts +0 -17
- package/dist/selections/CircularSectorialSelection.d.ts.map +0 -1
- package/dist/selections/CircularSelection.d.ts +0 -15
- package/dist/selections/CircularSelection.d.ts.map +0 -1
- package/dist/selections/EllipticalSelection.d.ts +0 -15
- package/dist/selections/EllipticalSelection.d.ts.map +0 -1
- package/dist/selections/LinearSelection.d.ts +0 -20
- package/dist/selections/LinearSelection.d.ts.map +0 -1
- package/dist/selections/OrientableSelection.d.ts +0 -14
- package/dist/selections/OrientableSelection.d.ts.map +0 -1
- package/dist/selections/PolygonalSelection.d.ts +0 -22
- package/dist/selections/PolygonalSelection.d.ts.map +0 -1
- package/dist/selections/RectangularSelection.d.ts +0 -19
- package/dist/selections/RectangularSelection.d.ts.map +0 -1
- package/dist/selections/utils.d.ts +0 -223
- package/dist/selections/utils.d.ts.map +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.d.ts.map +0 -1
- package/dist/shapes/DvdAxisBox.d.ts +0 -15
- package/dist/shapes/DvdAxisBox.d.ts.map +0 -1
- package/dist/shapes/DvdDragHandle.d.ts +0 -18
- package/dist/shapes/DvdDragHandle.d.ts.map +0 -1
- package/dist/shapes/DvdPolyline.d.ts +0 -15
- package/dist/shapes/DvdPolyline.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -170
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.test.d.ts +0 -2
- package/dist/utils.test.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -6,13 +6,11 @@
|
|
|
6
6
|
"url": "git+https://github.com/DiamondLightSource/davidia.git"
|
|
7
7
|
},
|
|
8
8
|
"private": false,
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.3.1-rc.3",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
|
-
"main": "./dist/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
14
|
"exports": {
|
|
17
15
|
".": {
|
|
18
16
|
"types": "./dist/index.d.ts",
|
|
@@ -26,14 +24,15 @@
|
|
|
26
24
|
"@visx/drag": "^3.12.0",
|
|
27
25
|
"afterframe": "^1.0.2",
|
|
28
26
|
"buffer": "^6.0.3",
|
|
29
|
-
"cwise": "^1.0.10",
|
|
30
27
|
"d3-array": "^3.2.4",
|
|
31
28
|
"d3-format": "^3.1.2",
|
|
32
29
|
"d3-scale": "^4.0.2",
|
|
33
30
|
"ndarray-concat-rows": "^1.0.1",
|
|
34
31
|
"ndarray-linspace": "^2.0.3",
|
|
32
|
+
"ndarray-tile": "^1.0.3",
|
|
33
|
+
"ndarray-unsqueeze": "^1.0.3",
|
|
35
34
|
"react-colorful": "^5.8.0",
|
|
36
|
-
"react-draggable": "^4.7.
|
|
35
|
+
"react-draggable": "^4.7.1",
|
|
37
36
|
"react-icons": "^5.7.0",
|
|
38
37
|
"react-select": "^5.10.2",
|
|
39
38
|
"react-use-websocket": "^4.13.0",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"@h5web/lib": "^16.0.0",
|
|
44
43
|
"@react-three/drei": "^9.122.0",
|
|
45
44
|
"@react-three/fiber": "^8.18.0",
|
|
46
|
-
"ndarray": "
|
|
45
|
+
"ndarray": "~1.0.19",
|
|
47
46
|
"react": "^18.3.0",
|
|
48
47
|
"react-dom": "^18.3.0",
|
|
49
48
|
"react-toastify": "^11.0.5",
|
|
@@ -51,30 +50,30 @@
|
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|
|
53
52
|
"@h5web/lib": "^17.0.0",
|
|
53
|
+
"@microsoft/api-extractor": "^7.59.4",
|
|
54
54
|
"@react-three/drei": "^9.122.0",
|
|
55
55
|
"@react-three/fiber": "^8.18.0",
|
|
56
|
-
"@types/cwise": "^1.0.7",
|
|
57
56
|
"@types/d3-array": "^3.2.2",
|
|
58
57
|
"@types/d3-format": "^3.0.4",
|
|
59
58
|
"@types/d3-random": "^3.0.4",
|
|
60
59
|
"@types/d3-scale": "^4.0.9",
|
|
61
|
-
"@types/ndarray": "
|
|
60
|
+
"@types/ndarray": "~1.0.14",
|
|
62
61
|
"@types/react": "^18.3.31",
|
|
63
62
|
"@types/react-dom": "^18.3.7",
|
|
64
|
-
"@types/three": "
|
|
63
|
+
"@types/three": "~0.182.0",
|
|
65
64
|
"@types/websocket": "^1.0.10",
|
|
66
65
|
"d3-random": "^3.0.1",
|
|
67
|
-
"ndarray": "
|
|
66
|
+
"ndarray": "~1.0.19",
|
|
68
67
|
"react": "^18.3.1",
|
|
69
68
|
"react-dom": "^18.3.1",
|
|
70
69
|
"react-toastify": "^11.1.0",
|
|
71
70
|
"three": "0.182.0",
|
|
72
71
|
"typedoc": "^0.28.20",
|
|
73
|
-
"
|
|
74
|
-
"vitest": "^
|
|
72
|
+
"unplugin-dts": "^1.1.2",
|
|
73
|
+
"vitest": "^5.0.5"
|
|
75
74
|
},
|
|
76
75
|
"scripts": {
|
|
77
|
-
"build": "tsc && vite build",
|
|
76
|
+
"build": "tsc -b && vite build",
|
|
78
77
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
79
78
|
"lint-fix": "eslint . --report-unused-disable-directives --max-warnings 0 --fix",
|
|
80
79
|
"test": "vitest",
|
package/dist/AnyPlot.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { HeatmapPlotProps } from './HeatmapPlot';
|
|
2
|
-
import { ImagePlotProps } from './ImagePlot';
|
|
3
|
-
import { LinePlotProps } from './LinePlot';
|
|
4
|
-
import { ScatterPlotProps } from './ScatterPlot';
|
|
5
|
-
import { SurfacePlotProps } from './SurfacePlot';
|
|
6
|
-
import { TableDisplayProps } from './TableDisplay';
|
|
7
|
-
type AnyPlotVisProps = LinePlotProps | ImagePlotProps | HeatmapPlotProps | ScatterPlotProps | SurfacePlotProps;
|
|
8
|
-
type AnyPlotProps = AnyPlotVisProps | TableDisplayProps;
|
|
9
|
-
/**
|
|
10
|
-
* A plot that accepts any plot props
|
|
11
|
-
* @param {AnyPlotProps} props - component props
|
|
12
|
-
* @returns {JSX.Element} The rendered component.
|
|
13
|
-
*/
|
|
14
|
-
declare function AnyPlot(props: AnyPlotProps): import("react").JSX.Element;
|
|
15
|
-
export type { AnyPlotProps, AnyPlotVisProps, HeatmapPlotProps, LinePlotProps, ScatterPlotProps, SurfacePlotProps, };
|
|
16
|
-
export default AnyPlot;
|
|
17
|
-
//# sourceMappingURL=AnyPlot.d.ts.map
|
package/dist/AnyPlot.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnyPlot.d.ts","sourceRoot":"","sources":["../src/AnyPlot.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKxD,KAAK,eAAe,GAChB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,CAAC;AAErB,KAAK,YAAY,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAkCxD;;;;GAIG;AACH,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,+BAuBnC;AAED,YAAY,EACV,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,CAAC;AACF,eAAe,OAAO,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Aspect } from '@h5web/lib';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the `AspectConfigModal` component.
|
|
5
|
-
*/
|
|
6
|
-
interface AspectConfigModalProps {
|
|
7
|
-
/** The current value of the aspect */
|
|
8
|
-
aspect: Aspect;
|
|
9
|
-
/** The function to update aspect state */
|
|
10
|
-
setAspect: (value: Aspect) => void;
|
|
11
|
-
/** If true, hide toggle */
|
|
12
|
-
hideToggle?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Render the configuration options for the aspect ratio.
|
|
16
|
-
* @param {AspectConfigModalProps} props - The component props.
|
|
17
|
-
* @returns {JSX.Element} {Modal} The rendered component.
|
|
18
|
-
*/
|
|
19
|
-
declare function AspectConfigModal(props: PropsWithChildren<AspectConfigModalProps>): import("react").JSX.Element;
|
|
20
|
-
export type { AspectConfigModalProps };
|
|
21
|
-
export default AspectConfigModal;
|
|
22
|
-
//# sourceMappingURL=AspectConfigModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AspectConfigModal.d.ts","sourceRoot":"","sources":["../src/AspectConfigModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAS/C;;GAEG;AACH,UAAU,sBAAsB;IAC9B,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CAEtB;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,+BAgE1E;AAED,YAAY,EAAE,sBAAsB,EAAE,CAAC;AACvC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as AxialSelection } from './selections/AxialSelection';
|
|
2
|
-
import { SelectionHandler } from './selections/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the `AxialSelectionConfig` component.
|
|
5
|
-
*/
|
|
6
|
-
interface AxialSelectionConfigProps {
|
|
7
|
-
/** The axial selection to configure */
|
|
8
|
-
selection: AxialSelection;
|
|
9
|
-
/** The function to call to update the selections state */
|
|
10
|
-
updateSelection?: SelectionHandler;
|
|
11
|
-
/** Indicates whether the component is disabled (optional) */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Renders the configuration options for an axial selection.
|
|
16
|
-
* @param {AxialSelectionConfigProps} props - The component props.
|
|
17
|
-
* @returns {JSX.Element} The rendered component.
|
|
18
|
-
*/
|
|
19
|
-
declare function AxialSelectionConfig(props: AxialSelectionConfigProps): import("react").JSX.Element;
|
|
20
|
-
export type { AxialSelectionConfigProps };
|
|
21
|
-
export default AxialSelectionConfig;
|
|
22
|
-
//# sourceMappingURL=AxialSelectionConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AxialSelectionConfig.d.ts","sourceRoot":"","sources":["../src/AxialSelectionConfig.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAGzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AAEH,UAAU,yBAAyB;IACjC,uCAAuC;IACvC,SAAS,EAAE,cAAc,CAAC;IAC1B,0DAA0D;IAC1D,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BAgD7D;AAED,YAAY,EAAE,yBAAyB,EAAE,CAAC;AAC1C,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ColorMap, CustomDomain, Domain, HistogramParams, ScaleType } from '@h5web/lib';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { IIconType } from './Modal';
|
|
4
|
-
type EnumArray<T> = Array<T[keyof T]>;
|
|
5
|
-
/**
|
|
6
|
-
* Props for the `AxisConfigModal` component.
|
|
7
|
-
*/
|
|
8
|
-
interface AxisConfigModalProps<S extends ScaleType> {
|
|
9
|
-
/** The title of the modal */
|
|
10
|
-
title: string;
|
|
11
|
-
/** The icon to display in the modal (optional) */
|
|
12
|
-
icon?: IIconType;
|
|
13
|
-
/** The label for the axis (optional) */
|
|
14
|
-
label?: string;
|
|
15
|
-
/** The function to call when the label is updated (optional) */
|
|
16
|
-
setLabel?: (value: string) => void;
|
|
17
|
-
/** The type of scale to use for the axis (optional) */
|
|
18
|
-
scaleType?: S;
|
|
19
|
-
/** The function to call when the scale type is updated (optional) */
|
|
20
|
-
setScaleType?: (value: S) => void;
|
|
21
|
-
/** The available scale options */
|
|
22
|
-
scaleOptions: EnumArray<S>;
|
|
23
|
-
/** The color map for the axis (optional) */
|
|
24
|
-
colourMap?: ColorMap;
|
|
25
|
-
/** The function to call when the color map is updated (optional) */
|
|
26
|
-
setColourMap?: (value: ColorMap) => void;
|
|
27
|
-
/** A boolean value indicating whether to invert the color map (optional) */
|
|
28
|
-
invertColourMap?: boolean;
|
|
29
|
-
/** The function to call when the color map inversion is toggled (optional) */
|
|
30
|
-
toggleColourMapInversion?: () => void;
|
|
31
|
-
/** The domain for the axis (optional) */
|
|
32
|
-
domain?: Domain;
|
|
33
|
-
/** The custom domain for the axis (optional) */
|
|
34
|
-
customDomain?: CustomDomain;
|
|
35
|
-
/** Histogram params getter */
|
|
36
|
-
histogramGetter?: () => HistogramParams;
|
|
37
|
-
/** The function to call when the custom domain is updated (optional) */
|
|
38
|
-
setCustomDomain?: (value: CustomDomain) => void;
|
|
39
|
-
/** Point size for scatter plot (optional) */
|
|
40
|
-
scatterPointSize?: number;
|
|
41
|
-
/** The function to call when the scatter point size is updated (optional) */
|
|
42
|
-
setScatterPointSize?: (p: number) => void;
|
|
43
|
-
/** If has control of the baton */
|
|
44
|
-
hasBaton?: boolean;
|
|
45
|
-
/** If true, hide toggle */
|
|
46
|
-
hideToggle?: boolean;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Render the configuration options for an axis.
|
|
50
|
-
* @param {AxisConfigModalProps<S>} props - The component props.
|
|
51
|
-
* @returns {JSX.Element} The rendered component.
|
|
52
|
-
* @template S
|
|
53
|
-
*/
|
|
54
|
-
declare function AxisConfigModal<S extends ScaleType>(props: PropsWithChildren<AxisConfigModalProps<S>>): import("react").JSX.Element;
|
|
55
|
-
export type { AxisConfigModalProps };
|
|
56
|
-
export default AxisConfigModal;
|
|
57
|
-
//# sourceMappingURL=AxisConfigModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AxisConfigModal.d.ts","sourceRoot":"","sources":["../src/AxisConfigModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EAER,YAAY,EACZ,MAAM,EACN,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAIL,SAAS,EACV,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,KAAK,SAAS,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAEtC;;GAEG;AACH,UAAU,oBAAoB,CAAC,CAAC,SAAS,SAAS;IAChD,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,uDAAuD;IACvD,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,qEAAqE;IACrE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAClC,kCAAkC;IAClC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAC3B,4CAA4C;IAC5C,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,8EAA8E;IAC9E,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IACtC,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,eAAe,CAAC;IACxC,wEAAwE;IACxE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,CAAC,SAAS,SAAS,EAC1C,KAAK,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,+BA8ElD;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAC;AACrC,eAAe,eAAe,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BatonProps } from './models';
|
|
2
|
-
/**
|
|
3
|
-
* Render the configuration options for the baton.
|
|
4
|
-
* @export
|
|
5
|
-
* @param {BatonProps} props - The component props.
|
|
6
|
-
* @returns {JSX.Element} The rendered component.
|
|
7
|
-
*/
|
|
8
|
-
export declare function BatonConfigModal(props: BatonProps): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=BatonConfigModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatonConfigModal.d.ts","sourceRoot":"","sources":["../src/BatonConfigModal.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,+BA0CjD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SelectionHandler } from './selections/utils';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the `ClearSelectionsBtn` component.
|
|
4
|
-
*/
|
|
5
|
-
interface ClearSelectionsBtnProps {
|
|
6
|
-
/** The function to call to update the selections state */
|
|
7
|
-
updateSelection: SelectionHandler;
|
|
8
|
-
/** The function to call to update the current selection ID */
|
|
9
|
-
updateCurrentSelectionID: (s: string | null) => void;
|
|
10
|
-
/** Indicates whether the component is disabled (optional) */
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Render a button to clear selections.
|
|
15
|
-
* @param {ClearSelectionsBtnProps} props - The component props.
|
|
16
|
-
* @returns {JSX.Element} The rendered component.
|
|
17
|
-
*/
|
|
18
|
-
declare function ClearSelectionsBtn(props: ClearSelectionsBtnProps): React.JSX.Element;
|
|
19
|
-
export type { ClearSelectionsBtnProps };
|
|
20
|
-
export default ClearSelectionsBtn;
|
|
21
|
-
//# sourceMappingURL=ClearSelectionsBtn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClearSelectionsBtn.d.ts","sourceRoot":"","sources":["../src/ClearSelectionsBtn.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,UAAU,uBAAuB;IAC/B,0DAA0D;IAC1D,eAAe,EAAE,gBAAgB,CAAC;IAClC,8DAA8D;IAC9D,wBAAwB,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAmB7E;AAED,YAAY,EAAE,uBAAuB,EAAE,CAAC;AACxC,eAAe,kBAAkB,CAAC"}
|
package/dist/ConnectedPlot.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props for the `ConnectedPlot` component
|
|
3
|
-
*/
|
|
4
|
-
interface ConnectedPlotProps {
|
|
5
|
-
/** The plot ID */
|
|
6
|
-
plotId: string;
|
|
7
|
-
/** The hostname */
|
|
8
|
-
hostname?: string;
|
|
9
|
-
/** The port */
|
|
10
|
-
port?: string;
|
|
11
|
-
/** The universally unique identifier */
|
|
12
|
-
uuid: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* Renders a connected plot
|
|
17
|
-
* @param {ConnectedPlotProps} props - component props
|
|
18
|
-
* @returns {JSX.Element} The rendered component
|
|
19
|
-
*/
|
|
20
|
-
declare function ConnectedPlot({ plotId, hostname, port, uuid, }: ConnectedPlotProps): import("react").JSX.Element | undefined;
|
|
21
|
-
export default ConnectedPlot;
|
|
22
|
-
export type { ConnectedPlotProps };
|
|
23
|
-
//# sourceMappingURL=ConnectedPlot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectedPlot.d.ts","sourceRoot":"","sources":["../src/ConnectedPlot.tsx"],"names":[],"mappings":"AAwNA;;GAEG;AACH,UAAU,kBAAkB;IAC1B,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,iBAAS,aAAa,CAAC,EACrB,MAAiB,EACjB,QAAsB,EACtB,IAAW,EACX,IAAI,GACL,EAAE,kBAAkB,2CAobpB;AAED,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/DomainConfig.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ColorScaleType, CustomDomain, Domain, HistogramParams } from '@h5web/lib';
|
|
2
|
-
export declare const formatBound: (n: number | {
|
|
3
|
-
valueOf(): number;
|
|
4
|
-
}) => string;
|
|
5
|
-
/**
|
|
6
|
-
* Props for the `DomainConfig` component.
|
|
7
|
-
*/
|
|
8
|
-
interface DomainConfigProps {
|
|
9
|
-
/** The domain to configure */
|
|
10
|
-
dataDomain: Domain;
|
|
11
|
-
/** The custom domain */
|
|
12
|
-
customDomain: CustomDomain;
|
|
13
|
-
/** The type of the colour scale */
|
|
14
|
-
scaleType?: ColorScaleType;
|
|
15
|
-
/** Handles custom domain change */
|
|
16
|
-
onCustomDomainChange: (domain: CustomDomain) => void;
|
|
17
|
-
/** Histogram params */
|
|
18
|
-
histogramGetter?: () => HistogramParams;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Render the configuration options for a domain.
|
|
22
|
-
* @param {DomainConfigProps} props - The component props.
|
|
23
|
-
* @returns {JSX.Element} The rendered component.
|
|
24
|
-
*/
|
|
25
|
-
declare function DomainConfig(props: DomainConfigProps): import("react").JSX.Element;
|
|
26
|
-
declare namespace DomainConfig {
|
|
27
|
-
var displayName: string;
|
|
28
|
-
}
|
|
29
|
-
export default DomainConfig;
|
|
30
|
-
export type { DomainConfigProps };
|
|
31
|
-
//# sourceMappingURL=DomainConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DomainConfig.d.ts","sourceRoot":"","sources":["../src/DomainConfig.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,MAAM,EAEN,eAAe,EAChB,MAAM,YAAY,CAAC;AAmBpB,eAAO,MAAM,WAAW;;YAAiB,CAAC;AA4B1C;;GAEG;AACH,UAAU,iBAAiB;IACzB,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,YAAY,EAAE,YAAY,CAAC;IAC3B,mCAAmC;IACnC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,mCAAmC;IACnC,oBAAoB,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACrD,uBAAuB;IACvB,eAAe,CAAC,EAAE,MAAM,eAAe,CAAC;CACzC;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BA0J7C;kBA1JQ,YAAY;;;AA8JrB,eAAe,YAAY,CAAC;AAC5B,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentType, SVGAttributes } from 'react';
|
|
2
|
-
import { GlyphType } from '@h5web/lib';
|
|
3
|
-
type IIconType = ComponentType<SVGAttributes<SVGElement>>;
|
|
4
|
-
/**
|
|
5
|
-
* Props for the `GlyphTypeToggle` component.
|
|
6
|
-
*/
|
|
7
|
-
interface GlyphTypeToggleProps {
|
|
8
|
-
/** The interaction mode */
|
|
9
|
-
value: GlyphType;
|
|
10
|
-
/** Handles change of mode */
|
|
11
|
-
onGlyphTypeChange: (value: GlyphType) => void;
|
|
12
|
-
/** If client holds baton */
|
|
13
|
-
hasBaton: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Render a toggle button for interaction mode.
|
|
17
|
-
* @param {GlyphTypeToggleProps} props - The component props.
|
|
18
|
-
* @returns {JSX.Element} The rendered component.
|
|
19
|
-
*/
|
|
20
|
-
declare function GlyphTypeToggle(props: GlyphTypeToggleProps): import("react").JSX.Element;
|
|
21
|
-
export default GlyphTypeToggle;
|
|
22
|
-
export type { GlyphTypeToggleProps, IIconType };
|
|
23
|
-
//# sourceMappingURL=GlyphTypeToggle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GlyphTypeToggle.d.ts","sourceRoot":"","sources":["../src/GlyphTypeToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAO/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,KAAK,SAAS,GAAG,aAAa,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;AAE1D;;GAEG;AACH,UAAU,oBAAoB;IAC5B,2BAA2B;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,iBAAiB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAC9C,4BAA4B;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAmDnD;AAED,eAAe,eAAe,CAAC;AAC/B,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/HeatmapPlot.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ColorMap, ColorScaleType, Domain } from '@h5web/lib';
|
|
2
|
-
import { ImageData } from './ImagePlot';
|
|
3
|
-
import { NDT, PlotBaseProps } from './models';
|
|
4
|
-
interface Props {
|
|
5
|
-
xValues?: NDT;
|
|
6
|
-
yValues?: NDT;
|
|
7
|
-
values: NDT;
|
|
8
|
-
}
|
|
9
|
-
export declare function HeatmapVisCanvas({ xValues, yValues, values }: Props): import("react").JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* Represent heatmap data
|
|
12
|
-
*/
|
|
13
|
-
interface HeatmapData extends ImageData {
|
|
14
|
-
/** extent of scale for pixel values */
|
|
15
|
-
domain?: Domain;
|
|
16
|
-
/** heatmap scale type */
|
|
17
|
-
heatmapScale?: ColorScaleType;
|
|
18
|
-
/** colour map */
|
|
19
|
-
colourMap?: ColorMap;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Props for `HeatmapPlot` component
|
|
23
|
-
*/
|
|
24
|
-
interface HeatmapPlotProps extends PlotBaseProps, HeatmapData {
|
|
25
|
-
}
|
|
26
|
-
type HeatmapPlotCustomizationProps = Omit<HeatmapPlotProps, 'values'>;
|
|
27
|
-
/**
|
|
28
|
-
* A heatmap plot
|
|
29
|
-
* @param {HeatmapPlotProps} props - The component props
|
|
30
|
-
* @returns {JSX.Element} The rendered component
|
|
31
|
-
*/
|
|
32
|
-
declare function HeatmapPlot(props: HeatmapPlotProps): import("react").JSX.Element;
|
|
33
|
-
export default HeatmapPlot;
|
|
34
|
-
export type { HeatmapData, HeatmapPlotProps, HeatmapPlotCustomizationProps };
|
|
35
|
-
//# sourceMappingURL=HeatmapPlot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeatmapPlot.d.ts","sourceRoot":"","sources":["../src/HeatmapPlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,MAAM,EAIP,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAQnD,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;CACb;AAED,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,+BA+DnE;AAED;;GAEG;AACH,UAAU,WAAY,SAAQ,SAAS;IACrC,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,iBAAiB;IACjB,SAAS,CAAC,EAAE,QAAQ,CAAC;CACtB;AAED;;GAEG;AACH,UAAU,gBAAiB,SAAQ,aAAa,EAAE,WAAW;CAAG;AAEhE,KAAK,6BAA6B,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AAEtE;;;;GAIG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAkB3C;AAED,eAAe,WAAW,CAAC;AAC3B,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,CAAC"}
|
package/dist/ImagePlot.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Aspect } from '@h5web/lib';
|
|
2
|
-
import { PlotBaseProps, NDT } from './models';
|
|
3
|
-
interface Props {
|
|
4
|
-
xValues?: NDT;
|
|
5
|
-
yValues?: NDT;
|
|
6
|
-
values: NDT;
|
|
7
|
-
}
|
|
8
|
-
export declare function ImageVisCanvas({ xValues, yValues, values }: Props): import("react").JSX.Element;
|
|
9
|
-
/**
|
|
10
|
-
* Represent image data
|
|
11
|
-
*/
|
|
12
|
-
interface ImageData {
|
|
13
|
-
/** pixel values */
|
|
14
|
-
values: NDT;
|
|
15
|
-
/** aspect ratio */
|
|
16
|
-
aspect?: Aspect;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Props for the `ImagePlot` component
|
|
20
|
-
*/
|
|
21
|
-
interface ImagePlotProps extends PlotBaseProps, ImageData {
|
|
22
|
-
/**
|
|
23
|
-
* If enabled, forces the plot to shrink or expand to keep the image flush with the axes.
|
|
24
|
-
* Has no effect if the aspect is not equal.
|
|
25
|
-
*/
|
|
26
|
-
tightAxes?: boolean;
|
|
27
|
-
}
|
|
28
|
-
type ImagePlotCustomizationProps = Omit<ImagePlotProps, 'values'>;
|
|
29
|
-
/**
|
|
30
|
-
* Render an image plot.
|
|
31
|
-
* @param {ImagePlotProps} props - The component props.
|
|
32
|
-
* @returns {JSX.Element} The rendered component.
|
|
33
|
-
*/
|
|
34
|
-
declare function ImagePlot(props: ImagePlotProps): import("react").JSX.Element;
|
|
35
|
-
export default ImagePlot;
|
|
36
|
-
export type { ImageData, ImagePlotProps, ImagePlotCustomizationProps };
|
|
37
|
-
//# sourceMappingURL=ImagePlot.d.ts.map
|
package/dist/ImagePlot.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePlot.d.ts","sourceRoot":"","sources":["../src/ImagePlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA4B,MAAM,YAAY,CAAC;AAI9D,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAOnD,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;CACb;AAyBD,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,+BA+CjE;AAED;;GAEG;AACH,UAAU,SAAS;IACjB,mBAAmB;IACnB,MAAM,EAAE,GAAG,CAAC;IACZ,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,UAAU,cAAe,SAAQ,aAAa,EAAE,SAAS;IACvD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,KAAK,2BAA2B,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAElE;;;;GAIG;AACH,iBAAS,SAAS,CAAC,KAAK,EAAE,cAAc,+BA+FvC;AAED,eAAe,SAAS,CAAC;AACzB,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InteractionModeType } from './utils';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the `InteractionModeToggle` component.
|
|
4
|
-
*/
|
|
5
|
-
interface InteractionModeToggleProps {
|
|
6
|
-
/** The interaction mode */
|
|
7
|
-
value: InteractionModeType;
|
|
8
|
-
/** Handles change of mode */
|
|
9
|
-
onModeChange: (value: InteractionModeType) => void;
|
|
10
|
-
/** If client holds baton */
|
|
11
|
-
hasBaton: boolean;
|
|
12
|
-
canSelect: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Render a toggle button for interaction mode.
|
|
16
|
-
* @param {InteractionModeToggleProps} props - The component props.
|
|
17
|
-
* @returns {JSX.Element} The rendered component.
|
|
18
|
-
*/
|
|
19
|
-
declare function InteractionModeToggle(props: InteractionModeToggleProps): import("react").JSX.Element;
|
|
20
|
-
export default InteractionModeToggle;
|
|
21
|
-
export type { InteractionModeToggleProps };
|
|
22
|
-
//# sourceMappingURL=InteractionModeToggle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InteractionModeToggle.d.ts","sourceRoot":"","sources":["../src/InteractionModeToggle.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C;;GAEG;AACH,UAAU,0BAA0B;IAClC,2BAA2B;IAC3B,KAAK,EAAE,mBAAmB,CAAC;IAC3B,6BAA6B;IAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACnD,4BAA4B;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAqD/D;AAED,eAAe,qBAAqB,CAAC;AACrC,YAAY,EAAE,0BAA0B,EAAE,CAAC"}
|
package/dist/LabelledInput.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pops for the `LabelledInput<T>` component.
|
|
3
|
-
*/
|
|
4
|
-
interface LabelledInputProps<T> {
|
|
5
|
-
/** Updates value */
|
|
6
|
-
updateValue: (value: T) => void;
|
|
7
|
-
/** Checks if value is valid (optional) */
|
|
8
|
-
isValid?: (value: string) => [boolean, T];
|
|
9
|
-
/** The input label */
|
|
10
|
-
label: string;
|
|
11
|
-
/** The input value */
|
|
12
|
-
input: T;
|
|
13
|
-
/** The number of decimal places to display (optional) */
|
|
14
|
-
decimalPlaces?: number;
|
|
15
|
-
/** Input attributes (optional) */
|
|
16
|
-
inputAttribs?: object;
|
|
17
|
-
/** Label on submit button (optional) */
|
|
18
|
-
submitLabel?: string;
|
|
19
|
-
/** If input is disabled (optional) */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** If enter key is enabled (optional) */
|
|
22
|
-
enableEnterKey?: boolean;
|
|
23
|
-
/** If reset button is enabled (optional) */
|
|
24
|
-
resetButton?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Render a labelled input box.
|
|
28
|
-
* @template T
|
|
29
|
-
* @param {LabelledInputProps<T>} props - The component props.
|
|
30
|
-
* @returns {JSX.Element} The rendered component.
|
|
31
|
-
*/
|
|
32
|
-
declare function LabelledInput<T>(props: LabelledInputProps<T>): import("react").JSX.Element;
|
|
33
|
-
export default LabelledInput;
|
|
34
|
-
export type { LabelledInputProps };
|
|
35
|
-
//# sourceMappingURL=LabelledInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabelledInput.d.ts","sourceRoot":"","sources":["../src/LabelledInput.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAO/B;;GAEG;AACH,UAAU,kBAAkB,CAAC,CAAC;IAC5B,oBAAoB;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC1C,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,KAAK,EAAE,CAAC,CAAC;IACT,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAQD;;;;;GAKG;AACH,iBAAS,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,+BAiIrD;AAED,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/LineConfig.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CustomDomain, Domain } from '@h5web/lib';
|
|
2
|
-
import { IIconType } from './Modal';
|
|
3
|
-
import { LineParams } from './LinePlot';
|
|
4
|
-
/**
|
|
5
|
-
* Props for the `LineConfig` component.
|
|
6
|
-
*/
|
|
7
|
-
interface LineConfigProps {
|
|
8
|
-
/** The line parameters */
|
|
9
|
-
allLineParams: Map<string, LineParams>;
|
|
10
|
-
/** Handles updating parameters */
|
|
11
|
-
updateLineParams: (key: string, params: LineParams) => void;
|
|
12
|
-
/** The key of the current selection (optional) */
|
|
13
|
-
currentLineKey: string | null;
|
|
14
|
-
/** If the line config is shown */
|
|
15
|
-
showLineConfig: boolean;
|
|
16
|
-
/** Handles updating showLineConfig */
|
|
17
|
-
updateShowLineConfig: (s: boolean) => void;
|
|
18
|
-
/** If has control of the baton */
|
|
19
|
-
hasBaton: boolean;
|
|
20
|
-
/** The icon (optional) */
|
|
21
|
-
icon?: IIconType;
|
|
22
|
-
/** The label (optional) */
|
|
23
|
-
label?: string;
|
|
24
|
-
/** The data domain (optional) */
|
|
25
|
-
domain?: Domain;
|
|
26
|
-
/** The custom data domain (optional) */
|
|
27
|
-
customDomain?: CustomDomain;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Render the configuration options for a line.
|
|
31
|
-
* @param {LineConfigProps} props - The component props.
|
|
32
|
-
* @returns {JSX.Element} The rendered component.
|
|
33
|
-
*/
|
|
34
|
-
declare function LineConfig(props: LineConfigProps): import("react").JSX.Element | null;
|
|
35
|
-
export default LineConfig;
|
|
36
|
-
export type { LineConfigProps };
|
|
37
|
-
//# sourceMappingURL=LineConfig.d.ts.map
|
package/dist/LineConfig.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineConfig.d.ts","sourceRoot":"","sources":["../src/LineConfig.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,MAAM,EAGZ,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;GAEG;AACH,UAAU,eAAe;IACvB,0BAA0B;IAC1B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACvC,kCAAkC;IAClC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5D,kDAAkD;IAClD,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kCAAkC;IAClC,cAAc,EAAE,OAAO,CAAC;IACxB,sCAAsC;IACtC,oBAAoB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,kCAAkC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,sCAiJzC;AAED,eAAe,UAAU,CAAC;AAC1B,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LineParams } from './LinePlot';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the `LineKeyDropdown` component.
|
|
4
|
-
*/
|
|
5
|
-
interface LineKeyDropdownProps {
|
|
6
|
-
/** Map of line parameters */
|
|
7
|
-
allLineParams: Map<string, LineParams>;
|
|
8
|
-
/** The Key of the highlighted line */
|
|
9
|
-
lineKey: string | null;
|
|
10
|
-
/** Function that handles change in chosen line Key */
|
|
11
|
-
onLineKeyChange: (s: string) => void;
|
|
12
|
-
/** The lines from which to choose */
|
|
13
|
-
options?: string[];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Render a dropdown for choosing line.
|
|
17
|
-
* @param {LineKeyDropdownProps} props - The component props.
|
|
18
|
-
* @returns {JSX.Element} The rendered component.
|
|
19
|
-
*/
|
|
20
|
-
declare function LineKeyDropdown(props: LineKeyDropdownProps): import("react").JSX.Element;
|
|
21
|
-
export default LineKeyDropdown;
|
|
22
|
-
export type { LineKeyDropdownProps };
|
|
23
|
-
//# sourceMappingURL=LineKeyDropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LineKeyDropdown.d.ts","sourceRoot":"","sources":["../src/LineKeyDropdown.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAc7C;;GAEG;AACH,UAAU,oBAAoB;IAC5B,6BAA6B;IAC7B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACvC,sCAAsC;IACtC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,sDAAsD;IACtD,eAAe,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAsFnD;AAED,eAAe,eAAe,CAAC;AAC/B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
package/dist/LinePlot.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Domain, GlyphType } from '@h5web/lib';
|
|
2
|
-
import { PlotBaseProps, NDT } from './models';
|
|
3
|
-
/**
|
|
4
|
-
* Represent line data
|
|
5
|
-
*/
|
|
6
|
-
interface LineData {
|
|
7
|
-
/** The object key */
|
|
8
|
-
key: string;
|
|
9
|
-
/** Line parameters */
|
|
10
|
-
lineParams: LineParams;
|
|
11
|
-
/** x coordinates */
|
|
12
|
-
x: NDT;
|
|
13
|
-
/** x data domain */
|
|
14
|
-
xDomain: Domain;
|
|
15
|
-
/** y coordinates */
|
|
16
|
-
y: NDT;
|
|
17
|
-
/** y data domain */
|
|
18
|
-
yDomain: Domain;
|
|
19
|
-
/** Line uses default generated x-axis values */
|
|
20
|
-
defaultIndices?: boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represent line parameters
|
|
24
|
-
*/
|
|
25
|
-
interface LineParams {
|
|
26
|
-
/** The line name */
|
|
27
|
-
name: string;
|
|
28
|
-
/** The line colour */
|
|
29
|
-
colour?: string;
|
|
30
|
-
/** If line is visible */
|
|
31
|
-
lineOn: boolean;
|
|
32
|
-
/** The size of the data points (optional) */
|
|
33
|
-
pointSize?: number;
|
|
34
|
-
/** The type of glyph */
|
|
35
|
-
glyphType?: GlyphType;
|
|
36
|
-
/** The line width */
|
|
37
|
-
width?: number;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Props for the `LinePlot` component.
|
|
41
|
-
*/
|
|
42
|
-
interface LinePlotProps extends PlotBaseProps {
|
|
43
|
-
/** The line data */
|
|
44
|
-
lineData: LineData[];
|
|
45
|
-
/** The x data domain */
|
|
46
|
-
xDomain?: Domain;
|
|
47
|
-
/** The y data domain */
|
|
48
|
-
yDomain?: Domain;
|
|
49
|
-
/** Handles updating line params */
|
|
50
|
-
updateLineParams?: (key: string, params: LineParams) => void;
|
|
51
|
-
}
|
|
52
|
-
type LinePlotCustomizationProps = Omit<LinePlotProps, 'lineData'>;
|
|
53
|
-
interface Props {
|
|
54
|
-
lineData: LineData[];
|
|
55
|
-
}
|
|
56
|
-
export declare function LineVisCanvas(props: Props): import("react").JSX.Element;
|
|
57
|
-
/**
|
|
58
|
-
* Render a line plot.
|
|
59
|
-
* @param {LinePlotProps} props - The component props.
|
|
60
|
-
* @returns {JSX.Element} The rendered component.
|
|
61
|
-
*/
|
|
62
|
-
declare function LinePlot(props: LinePlotProps): import("react").JSX.Element;
|
|
63
|
-
export default LinePlot;
|
|
64
|
-
export type { LineData, LineParams, LinePlotProps, LinePlotCustomizationProps };
|
|
65
|
-
//# sourceMappingURL=LinePlot.d.ts.map
|
package/dist/LinePlot.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinePlot.d.ts","sourceRoot":"","sources":["../src/LinePlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,MAAM,EACX,SAAS,EAMV,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAQnD;;GAEG;AACH,UAAU,QAAQ;IAChB,qBAAqB;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,sBAAsB;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB;IACpB,CAAC,EAAE,GAAG,CAAC;IACP,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,CAAC,EAAE,GAAG,CAAC;IACP,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,UAAU;IAClB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,UAAU,aAAc,SAAQ,aAAa;IAC3C,oBAAoB;IACpB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CAC9D;AAED,KAAK,0BAA0B,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAqDlE,UAAU,KAAK;IACb,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,+BAiGzC;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,+BAcrC;AAED,eAAe,QAAQ,CAAC;AACxB,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,0BAA0B,EAAE,CAAC"}
|