@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.
Files changed (104) hide show
  1. package/README.md +6 -3
  2. package/dist/index.css +2 -1
  3. package/dist/index.d.ts +863 -36
  4. package/dist/index.js +3488 -3937
  5. package/package.json +12 -13
  6. package/dist/AnyPlot.d.ts +0 -17
  7. package/dist/AnyPlot.d.ts.map +0 -1
  8. package/dist/AspectConfigModal.d.ts +0 -22
  9. package/dist/AspectConfigModal.d.ts.map +0 -1
  10. package/dist/AxialSelectionConfig.d.ts +0 -22
  11. package/dist/AxialSelectionConfig.d.ts.map +0 -1
  12. package/dist/AxisConfigModal.d.ts +0 -57
  13. package/dist/AxisConfigModal.d.ts.map +0 -1
  14. package/dist/BatonConfigModal.d.ts +0 -9
  15. package/dist/BatonConfigModal.d.ts.map +0 -1
  16. package/dist/ClearSelectionsBtn.d.ts +0 -21
  17. package/dist/ClearSelectionsBtn.d.ts.map +0 -1
  18. package/dist/ConnectedPlot.d.ts +0 -23
  19. package/dist/ConnectedPlot.d.ts.map +0 -1
  20. package/dist/DomainConfig.d.ts +0 -31
  21. package/dist/DomainConfig.d.ts.map +0 -1
  22. package/dist/GlyphTypeToggle.d.ts +0 -23
  23. package/dist/GlyphTypeToggle.d.ts.map +0 -1
  24. package/dist/HeatmapPlot.d.ts +0 -35
  25. package/dist/HeatmapPlot.d.ts.map +0 -1
  26. package/dist/ImagePlot.d.ts +0 -37
  27. package/dist/ImagePlot.d.ts.map +0 -1
  28. package/dist/InteractionModeToggle.d.ts +0 -22
  29. package/dist/InteractionModeToggle.d.ts.map +0 -1
  30. package/dist/LabelledInput.d.ts +0 -35
  31. package/dist/LabelledInput.d.ts.map +0 -1
  32. package/dist/LineConfig.d.ts +0 -37
  33. package/dist/LineConfig.d.ts.map +0 -1
  34. package/dist/LineKeyDropdown.d.ts +0 -23
  35. package/dist/LineKeyDropdown.d.ts.map +0 -1
  36. package/dist/LinePlot.d.ts +0 -65
  37. package/dist/LinePlot.d.ts.map +0 -1
  38. package/dist/LinearSelectionConfig.d.ts +0 -22
  39. package/dist/LinearSelectionConfig.d.ts.map +0 -1
  40. package/dist/Modal.d.ts +0 -26
  41. package/dist/Modal.d.ts.map +0 -1
  42. package/dist/Modeless.d.ts +0 -23
  43. package/dist/Modeless.d.ts.map +0 -1
  44. package/dist/MulticlickSelectionTool.d.ts +0 -50
  45. package/dist/MulticlickSelectionTool.d.ts.map +0 -1
  46. package/dist/PlotCustomizationContext.d.ts +0 -131
  47. package/dist/PlotCustomizationContext.d.ts.map +0 -1
  48. package/dist/PlotToolbar.d.ts +0 -17
  49. package/dist/PlotToolbar.d.ts.map +0 -1
  50. package/dist/PolygonalSelectionConfig.d.ts +0 -22
  51. package/dist/PolygonalSelectionConfig.d.ts.map +0 -1
  52. package/dist/RectangularSelectionConfig.d.ts +0 -22
  53. package/dist/RectangularSelectionConfig.d.ts.map +0 -1
  54. package/dist/ScatterPlot.d.ts +0 -42
  55. package/dist/ScatterPlot.d.ts.map +0 -1
  56. package/dist/SelectionComponent.d.ts +0 -25
  57. package/dist/SelectionComponent.d.ts.map +0 -1
  58. package/dist/SelectionConfig.d.ts +0 -52
  59. package/dist/SelectionConfig.d.ts.map +0 -1
  60. package/dist/SelectionConfigComponents.d.ts +0 -69
  61. package/dist/SelectionConfigComponents.d.ts.map +0 -1
  62. package/dist/SelectionIDDropdown.d.ts +0 -23
  63. package/dist/SelectionIDDropdown.d.ts.map +0 -1
  64. package/dist/SelectionTypeDropdown.d.ts +0 -23
  65. package/dist/SelectionTypeDropdown.d.ts.map +0 -1
  66. package/dist/SurfacePlot.d.ts +0 -46
  67. package/dist/SurfacePlot.d.ts.map +0 -1
  68. package/dist/TableDisplay.d.ts +0 -37
  69. package/dist/TableDisplay.d.ts.map +0 -1
  70. package/dist/index.d.ts.map +0 -1
  71. package/dist/models.d.ts +0 -70
  72. package/dist/models.d.ts.map +0 -1
  73. package/dist/selections/AxialSelection.d.ts +0 -22
  74. package/dist/selections/AxialSelection.d.ts.map +0 -1
  75. package/dist/selections/BaseSelection.d.ts +0 -24
  76. package/dist/selections/BaseSelection.d.ts.map +0 -1
  77. package/dist/selections/CircularSectorialSelection.d.ts +0 -17
  78. package/dist/selections/CircularSectorialSelection.d.ts.map +0 -1
  79. package/dist/selections/CircularSelection.d.ts +0 -15
  80. package/dist/selections/CircularSelection.d.ts.map +0 -1
  81. package/dist/selections/EllipticalSelection.d.ts +0 -15
  82. package/dist/selections/EllipticalSelection.d.ts.map +0 -1
  83. package/dist/selections/LinearSelection.d.ts +0 -20
  84. package/dist/selections/LinearSelection.d.ts.map +0 -1
  85. package/dist/selections/OrientableSelection.d.ts +0 -14
  86. package/dist/selections/OrientableSelection.d.ts.map +0 -1
  87. package/dist/selections/PolygonalSelection.d.ts +0 -22
  88. package/dist/selections/PolygonalSelection.d.ts.map +0 -1
  89. package/dist/selections/RectangularSelection.d.ts +0 -19
  90. package/dist/selections/RectangularSelection.d.ts.map +0 -1
  91. package/dist/selections/utils.d.ts +0 -223
  92. package/dist/selections/utils.d.ts.map +0 -1
  93. package/dist/setupTests.d.ts +0 -1
  94. package/dist/setupTests.d.ts.map +0 -1
  95. package/dist/shapes/DvdAxisBox.d.ts +0 -15
  96. package/dist/shapes/DvdAxisBox.d.ts.map +0 -1
  97. package/dist/shapes/DvdDragHandle.d.ts +0 -18
  98. package/dist/shapes/DvdDragHandle.d.ts.map +0 -1
  99. package/dist/shapes/DvdPolyline.d.ts +0 -15
  100. package/dist/shapes/DvdPolyline.d.ts.map +0 -1
  101. package/dist/utils.d.ts +0 -170
  102. package/dist/utils.d.ts.map +0 -1
  103. package/dist/utils.test.d.ts +0 -2
  104. package/dist/utils.test.d.ts.map +0 -1
@@ -1,22 +0,0 @@
1
- import { default as LinearSelection } from './selections/LinearSelection';
2
- import { SelectionHandler } from './selections/utils';
3
- /**
4
- * Props for the `LinearSelectionConfig` component.
5
- */
6
- interface LinearSelectionConfigProps {
7
- /** The linear selection to configure */
8
- selection: LinearSelection;
9
- /** Handle updating selection */
10
- updateSelection?: SelectionHandler;
11
- /** If input is disabled (optional) */
12
- disabled?: boolean;
13
- }
14
- /**
15
- * Render the configuration options for a linear selection.
16
- * @param {LinearSelectionConfigProps} props - The component props.
17
- * @returns {JSX.Element} The rendered component.
18
- */
19
- declare function LinearSelectionConfig(props: LinearSelectionConfigProps): import("react").JSX.Element;
20
- export default LinearSelectionConfig;
21
- export type { LinearSelectionConfigProps };
22
- //# sourceMappingURL=LinearSelectionConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinearSelectionConfig.d.ts","sourceRoot":"","sources":["../src/LinearSelectionConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,8BAA8B,CAAC;AAKhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,UAAU,0BAA0B;IAClC,wCAAwC;IACxC,SAAS,EAAE,eAAe,CAAC;IAC3B,gCAAgC;IAChC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAyC/D;AAED,eAAe,qBAAqB,CAAC;AACrC,YAAY,EAAE,0BAA0B,EAAE,CAAC"}
package/dist/Modal.d.ts DELETED
@@ -1,26 +0,0 @@
1
- import { ComponentType, PropsWithChildren, ReactNode } from 'react';
2
- type IIconType = ComponentType<{
3
- className: string;
4
- }>;
5
- /**
6
- * Props for the `Modal` component.
7
- */
8
- interface ModalProps {
9
- /** The title of the modal */
10
- title: string;
11
- /** The icon to display (optional) */
12
- icon?: IIconType;
13
- /** The button to display (optional) */
14
- button?: ReactNode;
15
- /** If true, hide toggle */
16
- hideToggle?: boolean;
17
- }
18
- /**
19
- * Render a modal component.
20
- * @param {ModalProps} props - The component props.
21
- * @returns {JSX.Element} The rendered component.
22
- */
23
- declare function Modal(props: PropsWithChildren<ModalProps>): import("react").JSX.Element;
24
- export type { IIconType, ModalProps };
25
- export default Modal;
26
- //# sourceMappingURL=Modal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../src/Modal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzE,KAAK,SAAS,GAAG,aAAa,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEtD;;GAEG;AACH,UAAU,UAAU;IAClB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uCAAuC;IACvC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,iBAAS,KAAK,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,+BAsElD;AAED,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;AACtC,eAAe,KAAK,CAAC"}
@@ -1,23 +0,0 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
2
- /**
3
- * Props for the `Modeless` component.
4
- */
5
- interface ModelessProps {
6
- /** The title of the modeless */
7
- title: string;
8
- /** The button to display (optional) */
9
- button?: ReactNode;
10
- /** If the modeless is shown */
11
- showModeless: boolean;
12
- /** Handles showModeless toggle */
13
- setShowModeless: (s: boolean) => void;
14
- }
15
- /**
16
- * Render a modeless.
17
- * @param {ModelessProps} props - The component props.
18
- * @returns {JSX.Element} The rendered component.
19
- */
20
- declare function Modeless(props: PropsWithChildren<ModelessProps>): (import("react").JSX.Element | null)[];
21
- export type { ModelessProps };
22
- export default Modeless;
23
- //# sourceMappingURL=Modeless.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modeless.d.ts","sourceRoot":"","sources":["../src/Modeless.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D;;GAEG;AACH,UAAU,aAAa;IACrB,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,+BAA+B;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,eAAe,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC,aAAa,CAAC,0CAwCxD;AAED,YAAY,EAAE,aAAa,EAAE,CAAC;AAC9B,eAAe,QAAQ,CAAC"}
@@ -1,50 +0,0 @@
1
- import { VisCanvasContextValue, CommonInteractionProps } from '@h5web/lib';
2
- import { ReactNode, RefObject } from 'react';
3
- import { Camera, Vector3 } from 'three';
4
- type Points = Vector3[];
5
- /**
6
- * Represent a selection.
7
- */
8
- interface Selection {
9
- /** The html points */
10
- html: Points;
11
- /** The world points */
12
- world: Points;
13
- /** The data points */
14
- data: Points;
15
- }
16
- /**
17
- * Props for the `MultiClickSelectionTool` component.
18
- */
19
- interface Props extends CommonInteractionProps {
20
- /** The ID (optional) */
21
- id?: string;
22
- /** The minimum number of points. Default = 2, must be >= 1 (optional) */
23
- minPoints?: number;
24
- /** The maximum number of points. Defaults to minPoints, must be >= minPoints or -1 = unlimited (optional) */
25
- maxPoints?: number;
26
- /** The maximum movement between pointer up/down to ignore, default = 1 (optional) */
27
- maxMovement?: number;
28
- /** The transform (optional) */
29
- transform?: (rawSelection: Selection, camera: Camera, context: VisCanvasContextValue) => Selection;
30
- /** Validates selection (optional) */
31
- validate?: (selection: Selection) => boolean;
32
- /** Handles selection starting (optional) */
33
- onSelectionStart?: () => void;
34
- /** Handles selection changing (optional) */
35
- onSelectionChange?: (selection: Selection | undefined, rawSelection: Selection, isValid: boolean) => void;
36
- /** Handles end of selection (optional) */
37
- onSelectionEnd?: (selection: Selection | undefined, isValid: boolean) => void;
38
- /** handles valid selections (optional) */
39
- onValidSelection?: (selection: Selection) => void;
40
- /** Any child components */
41
- children: (selection: Selection, rawSelection: Selection, isValid: boolean, isCompleteRef: RefObject<boolean>) => ReactNode;
42
- }
43
- /**
44
- * Render a tool with which to create a multiclick selection.
45
- * @param {Props} props - The component props.
46
- */
47
- declare function MulticlickSelectionTool(props: Props): import("react").JSX.Element | null;
48
- export type { Props as MulticlickSelectionToolProps, Points, Selection };
49
- export default MulticlickSelectionTool;
50
- //# sourceMappingURL=MulticlickSelectionTool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MulticlickSelectionTool.d.ts","sourceRoot":"","sources":["../src/MulticlickSelectionTool.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qBAAqB,EAK1B,KAAK,sBAAsB,EAC5B,MAAM,YAAY,CAAC;AASpB,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE7C,KAAK,MAAM,GAAG,OAAO,EAAE,CAAC;AAExB;;GAEG;AACH,UAAU,SAAS;IACjB,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,UAAU,KAAM,SAAQ,sBAAsB;IAC5C,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6GAA6G;IAC7G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,CACV,YAAY,EAAE,SAAS,EACvB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,qBAAqB,KAC3B,SAAS,CAAC;IACf,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,OAAO,CAAC;IAC7C,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,CAClB,SAAS,EAAE,SAAS,GAAG,SAAS,EAChC,YAAY,EAAE,SAAS,EACvB,OAAO,EAAE,OAAO,KACb,IAAI,CAAC;IACV,0CAA0C;IAC1C,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9E,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IAClD,2BAA2B;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,SAAS,EACvB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,SAAS,CAAC,OAAO,CAAC,KAC9B,SAAS,CAAC;CAChB;AAED;;;GAGG;AACH,iBAAS,uBAAuB,CAAC,KAAK,EAAE,KAAK,sCAmQ5C;AAED,YAAY,EAAE,KAAK,IAAI,4BAA4B,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACzE,eAAe,uBAAuB,CAAC"}
@@ -1,131 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { Aspect, AxisScaleType, ColorMap, ColorScaleType, CustomDomain, Domain, HistogramParams } from '@h5web/lib';
3
- import { BatonProps } from './models';
4
- import { InteractionModeType } from './utils';
5
- import { SelectionBase, SelectionHandler, SelectionOptions, SelectionType } from './selections/utils';
6
- import { LineParams, LinePlotCustomizationProps } from './LinePlot';
7
- import { ImagePlotCustomizationProps } from './ImagePlot';
8
- import { HeatmapPlotCustomizationProps } from './HeatmapPlot';
9
- import { ScatterPlotCustomizationProps } from './ScatterPlot';
10
- import { SurfacePlotCustomizationProps } from './SurfacePlot';
11
- /**
12
- * Plot type available
13
- */
14
- export type PlotType = 'Line' | 'Heatmap' | 'Image' | 'Scatter' | 'Surface';
15
- /**
16
- * Value for a `PlotCustomization` context.
17
- */
18
- export interface PlotCustomizationContextValue {
19
- /** If the grid should be shown */
20
- showGrid: boolean;
21
- /** Toggles the grid */
22
- toggleShowGrid: () => void;
23
- /** The title */
24
- title: string;
25
- /** A function that sets the title */
26
- setTitle: (t: string) => void;
27
- /** The mode */
28
- mode: InteractionModeType;
29
- /** An optional function that sets the mode */
30
- setMode: (m: InteractionModeType) => void;
31
- /** A domain value for the x-axis */
32
- xDomain: Domain;
33
- /** A custom domain value for the x-axis */
34
- xCustomDomain: CustomDomain;
35
- /** A function that sets the custom domain value for the x-axis */
36
- setXCustomDomain: (d: CustomDomain) => void;
37
- /** The label for the x-axis */
38
- xLabel: string;
39
- /** A function that sets the label for the x-axis */
40
- setXLabel: (l: string) => void;
41
- /** An axis scale type for the x-axis */
42
- xScaleType: AxisScaleType;
43
- /** An optional function that sets the axis scale type for the x-axis */
44
- setXScaleType: (s: AxisScaleType) => void;
45
- /** A domain value for the y-axis */
46
- yDomain: Domain;
47
- /** A custom domain value for the y-axis */
48
- yCustomDomain: CustomDomain;
49
- /** A function that sets the custom domain value for the y-axis */
50
- setYCustomDomain: (d: CustomDomain) => void;
51
- /** The label for the y-axis */
52
- yLabel: string;
53
- /** A function that sets the label for the y-axis */
54
- setYLabel: (l: string) => void;
55
- /** The baton properties */
56
- batonProps: BatonProps;
57
- /** An axis scale type for the y-axis */
58
- yScaleType: AxisScaleType;
59
- /** A function that sets the axis scale type for the y-axis */
60
- setYScaleType: (s: AxisScaleType) => void;
61
- /** An aspect value */
62
- aspect: Aspect;
63
- /** A function that sets the aspect value */
64
- setAspect: (a: Aspect) => void;
65
- /** Selection upper limit (on current type) */
66
- selectionMax: number;
67
- /** A selection type */
68
- selectionType: SelectionType;
69
- /** A function that sets the selection type */
70
- setSelectionType: (s: SelectionType) => void;
71
- /** A domain value for the d-axis */
72
- dDomain: Domain;
73
- /** A custom domain value for the d-axis */
74
- dCustomDomain: CustomDomain;
75
- /** A function that sets the custom domain value for the d-axis */
76
- setDCustomDomain: (d: CustomDomain) => void;
77
- /** A color scale type for the d-axis */
78
- dScaleType: ColorScaleType;
79
- /** A function that sets the color scale type for the d-axis */
80
- setDScaleType: (s: ColorScaleType) => void;
81
- /** A color map */
82
- colourMap: ColorMap;
83
- /** A function that sets the color map */
84
- setColourMap: (c: ColorMap) => void;
85
- /** Whether to invert the color map */
86
- invertColourMap: boolean;
87
- /** A function that toggles the color map inversion */
88
- toggleInvertColourMap: () => void;
89
- /** Selection options */
90
- selectionOptions?: SelectionOptions;
91
- /** Selections */
92
- selections: SelectionBase[];
93
- /** A function that sets the selections */
94
- setSelections: (s: SelectionBase[]) => void;
95
- /** A function that updates the selections */
96
- updateSelection: SelectionHandler;
97
- /** Map of line parameters */
98
- allLineParams: Map<string, LineParams>;
99
- /** Set line parameters */
100
- setAllLineParams: (params: Map<string, LineParams>) => void;
101
- /** A function to update parameters in a line */
102
- updateLineParams: (key: string, params: LineParams) => void;
103
- /** current line key */
104
- currentLineKey: string | null;
105
- /** A function that sets current line key */
106
- setCurrentLineKey: (k: string) => void;
107
- /** The size of scatter data points. */
108
- scatterPointSize: number;
109
- /** A function that updates the selections */
110
- setScatterPointSize: (p: number) => void;
111
- /** Whether to show points on surface */
112
- showPoints: boolean;
113
- /** A function that toggles the points */
114
- toggleShowPoints: () => void;
115
- /** Get heatmap histogram */
116
- histogramGetter?: () => HistogramParams;
117
- /** Update heatmap histogram getter */
118
- updateHistogramGetter: (getter: () => HistogramParams) => void;
119
- /** Can select */
120
- canSelect: boolean;
121
- /** Type of plot */
122
- plotType: PlotType;
123
- }
124
- /**
125
- * @returns context for customizing a plot
126
- */
127
- export declare function usePlotCustomizationContext(): PlotCustomizationContextValue;
128
- export interface AnyPlotCustomizationProps extends LinePlotCustomizationProps, ImagePlotCustomizationProps, HeatmapPlotCustomizationProps, ScatterPlotCustomizationProps, SurfacePlotCustomizationProps {
129
- }
130
- export declare function PlotCustomizationContextProvider(props: PropsWithChildren<AnyPlotCustomizationProps>): import("react").JSX.Element;
131
- //# sourceMappingURL=PlotCustomizationContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlotCustomizationContext.d.ts","sourceRoot":"","sources":["../src/PlotCustomizationContext.tsx"],"names":[],"mappings":"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"}
@@ -1,17 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- /**
3
- * Render a plot toolbar.
4
- * @param {Props} props - inner children
5
- * @returns {JSX.Element} The rendered component.
6
- */
7
- declare function PlotToolbar(props: PropsWithChildren): React.JSX.Element;
8
- export interface AnyToolbarProps {
9
- /** Inner children to add to plot toolbar */
10
- extraChildren?: React.ReactNode;
11
- }
12
- /**
13
- * Toolbar component for any plot
14
- */
15
- export declare function AnyToolbar(props: PropsWithChildren<AnyToolbarProps>): false | import("react").JSX.Element;
16
- export default PlotToolbar;
17
- //# sourceMappingURL=PlotToolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlotToolbar.d.ts","sourceRoot":"","sources":["../src/PlotToolbar.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAyDf;;;;GAIG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8RhE;AAED,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,uCASnE;AAED,eAAe,WAAW,CAAC"}
@@ -1,22 +0,0 @@
1
- import { default as PolygonalSelection } from './selections/PolygonalSelection';
2
- import { SelectionHandler } from './selections/utils';
3
- /**
4
- * Pops for the `PolygonalSelectionConfig` component.
5
- */
6
- interface PolygonalSelectionConfigProps {
7
- /** The polygonal selection to configure */
8
- selection: PolygonalSelection;
9
- /** Handles update of selection */
10
- updateSelection?: SelectionHandler;
11
- /** If disabled */
12
- disabled?: boolean;
13
- }
14
- /**
15
- * Render configuration for polygonal selection.
16
- * @param {PolygonalSelectionConfigProps} props - The component props.
17
- * @returns {JSX.Element} The rendered component.
18
- */
19
- declare function PolygonalSelectionConfig(props: PolygonalSelectionConfigProps): import("react").JSX.Element;
20
- export type { PolygonalSelectionConfigProps };
21
- export default PolygonalSelectionConfig;
22
- //# sourceMappingURL=PolygonalSelectionConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PolygonalSelectionConfig.d.ts","sourceRoot":"","sources":["../src/PolygonalSelectionConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D;;GAEG;AACH,UAAU,6BAA6B;IACrC,2CAA2C;IAC3C,SAAS,EAAE,kBAAkB,CAAC;IAC9B,kCAAkC;IAClC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,kBAAkB;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,+BAwCrE;AAED,YAAY,EAAE,6BAA6B,EAAE,CAAC;AAC9C,eAAe,wBAAwB,CAAC"}
@@ -1,22 +0,0 @@
1
- import { default as RectangularSelection } from './selections/RectangularSelection';
2
- import { SelectionHandler } from './selections/utils';
3
- /**
4
- * Props for the `RectangularSelectionConfig` component.
5
- */
6
- interface RectangularSelectionConfigProps {
7
- /** The rectangular selection to configure */
8
- selection: RectangularSelection;
9
- /** Handles update of selection */
10
- updateSelection?: SelectionHandler;
11
- /** If disabled */
12
- disabled?: boolean;
13
- }
14
- /**
15
- * Render the configuration options for a rectangular selection.
16
- * @param {RectangularSelectionConfigProps} props - The component props.
17
- * @returns {JSX.Element} The rendered component.
18
- */
19
- declare function RectangularSelectionConfig(props: RectangularSelectionConfigProps): import("react").JSX.Element;
20
- export type { RectangularSelectionConfigProps };
21
- export default RectangularSelectionConfig;
22
- //# sourceMappingURL=RectangularSelectionConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RectangularSelectionConfig.d.ts","sourceRoot":"","sources":["../src/RectangularSelectionConfig.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,oBAAoB,MAAM,mCAAmC,CAAC;AAG1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,UAAU,+BAA+B;IACvC,6CAA6C;IAC7C,SAAS,EAAE,oBAAoB,CAAC;IAChC,kCAAkC;IAClC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,kBAAkB;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,+BA6DzE;AAED,YAAY,EAAE,+BAA+B,EAAE,CAAC;AAChD,eAAe,0BAA0B,CAAC"}
@@ -1,42 +0,0 @@
1
- import { ColorMap, Domain } from '@h5web/lib';
2
- import { PlotBaseProps, NDT } from './models';
3
- interface Props {
4
- x: NDT;
5
- y: NDT;
6
- values: NDT;
7
- }
8
- export declare function ScatterVisCanvas({ x, y, values }: Props): import("react").JSX.Element;
9
- /**
10
- * Represent scatter data.
11
- */
12
- interface ScatterData {
13
- /** The x values for the scatter plot */
14
- x: NDT;
15
- /** The y values for the scatter plot */
16
- y: NDT;
17
- /** The values at each point in the scatter plot */
18
- pointValues: NDT;
19
- /** The domain of the z axis */
20
- domain?: Domain;
21
- /** The size of the data points */
22
- pointSize?: number;
23
- /** The colour map (optional) */
24
- colourMap?: ColorMap;
25
- }
26
- /**
27
- * Props for the `ScatterPlotProps` component.
28
- */
29
- interface ScatterPlotProps extends PlotBaseProps, ScatterData {
30
- /** Function to update data point size */
31
- setPointSize?: (p: number) => void;
32
- }
33
- type ScatterPlotCustomizationProps = Omit<ScatterPlotProps, 'pointValues' | 'x' | 'y'>;
34
- /**
35
- * Render a scatter plot.
36
- * @param {ScatterPlotProps} props - The component props.
37
- * @returns {JSX.Element} The rendered component.
38
- */
39
- declare function ScatterPlot(props: ScatterPlotProps): import("react").JSX.Element;
40
- export default ScatterPlot;
41
- export type { ScatterData, ScatterPlotProps, ScatterPlotCustomizationProps };
42
- //# sourceMappingURL=ScatterPlot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScatterPlot.d.ts","sourceRoot":"","sources":["../src/ScatterPlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,MAAM,EAIP,MAAM,YAAY,CAAC;AAQpB,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAQnD,UAAU,KAAK;IACb,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,GAAG,CAAC;IACP,MAAM,EAAE,GAAG,CAAC;CACb;AAED,wBAAgB,gBAAgB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,+BAkEvD;AAED;;GAEG;AACH,UAAU,WAAW;IACnB,wCAAwC;IACxC,CAAC,EAAE,GAAG,CAAC;IACP,wCAAwC;IACxC,CAAC,EAAE,GAAG,CAAC;IACP,mDAAmD;IACnD,WAAW,EAAE,GAAG,CAAC;IACjB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,SAAS,CAAC,EAAE,QAAQ,CAAC;CACtB;AAED;;GAEG;AACH,UAAU,gBAAiB,SAAQ,aAAa,EAAE,WAAW;IAC3D,yCAAyC;IACzC,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,KAAK,6BAA6B,GAAG,IAAI,CACvC,gBAAgB,EAChB,aAAa,GAAG,GAAG,GAAG,GAAG,CAC1B,CAAC;AAEF;;;;GAIG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAc3C;AAED,eAAe,WAAW,CAAC;AAC3B,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,CAAC"}
@@ -1,25 +0,0 @@
1
- import { ModifierKey } from '@h5web/lib';
2
- import { PlotSelectionProps } from './models';
3
- import { SelectionType } from './selections/utils';
4
- /**
5
- * Props for the `SelectionComponent` component.
6
- */
7
- interface SelectionComponentProps extends PlotSelectionProps {
8
- /** Maximum number of current type */
9
- selectionMax: number;
10
- /** The selection type (optional) */
11
- selectionType?: SelectionType;
12
- /** The modifier key(s) */
13
- modifierKey: ModifierKey | ModifierKey[];
14
- /** If disabled (optional) */
15
- disabled?: boolean;
16
- }
17
- /**
18
- * Render a selection component.
19
- * @param {SelectionComponentProps} props - The component props.
20
- * @returns {JSX.Element} The rendered component.
21
- */
22
- declare function SelectionComponent(props: SelectionComponentProps): import("react").JSX.Element;
23
- export type { SelectionComponentProps };
24
- export default SelectionComponent;
25
- //# sourceMappingURL=SelectionComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionComponent.d.ts","sourceRoot":"","sources":["../src/SelectionComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAuB,MAAM,YAAY,CAAC;AAKnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,EACL,aAAa,EAOd,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,UAAU,uBAAwB,SAAQ,kBAAkB;IAC1D,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,0BAA0B;IAC1B,WAAW,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;IACzC,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAgFzD;AAED,YAAY,EAAE,uBAAuB,EAAE,CAAC;AACxC,eAAe,kBAAkB,CAAC"}
@@ -1,52 +0,0 @@
1
- import { default as React } from 'react';
2
- import { CustomDomain, Domain } from '@h5web/lib';
3
- import { IIconType } from './Modal';
4
- import { SelectionHandler, SelectionBase } from './selections/utils';
5
- export declare const SELECTION_ICONS: {
6
- line: string;
7
- rectangle: string;
8
- polyline: string;
9
- polygon: string;
10
- circle: string;
11
- ellipse: string;
12
- sector: string;
13
- horizontalAxis: string;
14
- verticalAxis: string;
15
- unknown: string;
16
- };
17
- /**
18
- * Props for the `SelectionConfig` component.
19
- */
20
- interface SelectionConfigProps {
21
- /** The current selections */
22
- selections: SelectionBase[];
23
- /** Handles updating selection */
24
- updateSelection?: SelectionHandler;
25
- /** The ID of the current selection (optional) */
26
- currentSelectionID: string | null;
27
- /** Handles updating current selection ID */
28
- updateCurrentSelectionID: (s: string | null) => void;
29
- /** If the selection config is shown */
30
- showSelectionConfig: boolean;
31
- /** Handles updating showSelectionConfig */
32
- updateShowSelectionConfig: (s: boolean) => void;
33
- /** If has control of the baton */
34
- hasBaton: boolean;
35
- /** The icon (optional) */
36
- icon?: IIconType;
37
- /** The label (optional) */
38
- label?: string;
39
- /** The data domain (optional) */
40
- domain?: Domain;
41
- /** The custom data domain (optional) */
42
- customDomain?: CustomDomain;
43
- }
44
- /**
45
- * Render the configuration options for a selection.
46
- * @param {SelectionConfigProps} props - The component props.
47
- * @returns {JSX.Element} The rendered component.
48
- */
49
- declare function SelectionConfig(props: SelectionConfigProps): (React.JSX.Element | null)[];
50
- export default SelectionConfig;
51
- export type { SelectionConfigProps };
52
- //# sourceMappingURL=SelectionConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionConfig.d.ts","sourceRoot":"","sources":["../src/SelectionConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAO,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,YAAY,CAAC;AAKjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG1E,eAAO,MAAM,eAAe;;;;;;;;;;;CAW3B,CAAC;AAEF;;GAEG;AACH,UAAU,oBAAoB;IAC5B,6BAA6B;IAC7B,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,iCAAiC;IACjC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,iDAAiD;IACjD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,4CAA4C;IAC5C,wBAAwB,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,uCAAuC;IACvC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,2CAA2C;IAC3C,yBAAyB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,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,eAAe,CAAC,KAAK,EAAE,oBAAoB,gCAmKnD;AAED,eAAe,eAAe,CAAC;AAC/B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,69 +0,0 @@
1
- import { default as OrientableSelection } from './selections/OrientableSelection';
2
- import { SelectionBase, SelectionHandler } from './selections/utils';
3
- /**
4
- * Props for the `AngleInput` component.
5
- */
6
- interface AngleInputProps {
7
- /** The selection for which the angle value is being configured */
8
- selection: OrientableSelection;
9
- /** Function to handle updating angle of selection */
10
- updateSelection?: SelectionHandler;
11
- /** If input component is disabled (optional) */
12
- disabled?: boolean;
13
- }
14
- /**
15
- * Render a labelled input for angle.
16
- * @param {AngleInputProps} props - The component props.
17
- * @returns {JSX.Element} The rendered component.
18
- */
19
- declare function AngleInput(props: AngleInputProps): import("react").JSX.Element;
20
- /**
21
- * Props for `XInput` and `YInput` components.
22
- */
23
- interface StartInputProps {
24
- /** The selection for which the start value is being configured */
25
- selection: SelectionBase;
26
- /** Function to handle updating start of selection */
27
- updateSelection?: SelectionHandler;
28
- /** If input component is disabled (optional) */
29
- disabled?: boolean;
30
- }
31
- /**
32
- * Render a labelled inout for x.
33
- * @param {StartInputProps} props - The component props.
34
- * @returns {JSX.Element} The rendered component.
35
- */
36
- declare function XInput(props: StartInputProps): import("react").JSX.Element;
37
- /**
38
- * Render a labelled input for y.
39
- * @param {StartInputProps} props - The component props.
40
- * @returns {JSX.Element} The rendered component.
41
- */
42
- declare function YInput(props: StartInputProps): import("react").JSX.Element;
43
- /**
44
- * Props for the `PointInput` component.
45
- */
46
- interface PointInputProps {
47
- /** The point number */
48
- i: number;
49
- /** The coordinates of the point */
50
- point: [number, number];
51
- /** Function to handle updating of point */
52
- updatePoint: (p: [number, number]) => void;
53
- /** If input component is disabled (optional) */
54
- disabled?: boolean;
55
- }
56
- /**
57
- * Render a labelled input for point x.
58
- * @param {PointInputProps} props - The component props.
59
- * @returns {JSX.Element} The rendered component.
60
- */
61
- declare function PointXInput(props: PointInputProps): import("react").JSX.Element;
62
- /**
63
- * Render a labelled input for point y.
64
- * @param {PointInputProps} props - The component props.
65
- * @returns {JSX.Element} The rendered component.
66
- */
67
- declare function PointYInput(props: PointInputProps): import("react").JSX.Element;
68
- export { AngleInput, XInput, YInput, PointXInput, PointYInput };
69
- //# sourceMappingURL=SelectionConfigComponents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionConfigComponents.d.ts","sourceRoot":"","sources":["../src/SelectionConfigComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,kCAAkC,CAAC;AAGxE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAErE;;GAEG;AACH,UAAU,eAAe;IACvB,kEAAkE;IAClE,SAAS,EAAE,mBAAmB,CAAC;IAC/B,qDAAqD;IACrD,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,+BAoBzC;AAED;;GAEG;AACH,UAAU,eAAe;IACvB,kEAAkE;IAClE,SAAS,EAAE,aAAa,CAAC;IACzB,qDAAqD;IACrD,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,MAAM,CAAC,KAAK,EAAE,eAAe,+BAmBrC;AAED;;;;GAIG;AACH,iBAAS,MAAM,CAAC,KAAK,EAAE,eAAe,+BAmBrC;AAED;;GAEG;AACH,UAAU,eAAe;IACvB,uBAAuB;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,mCAAmC;IACnC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,2CAA2C;IAC3C,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC3C,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,eAAe,+BAiB1C;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,eAAe,+BAiB1C;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -1,23 +0,0 @@
1
- import { SelectionBase } from './selections/utils';
2
- /**
3
- * Props for the `SelectionIDDropdown` component.
4
- */
5
- interface SelectionIDDropdownProps {
6
- /** The selections */
7
- selections: SelectionBase[];
8
- /** The ID of the highlighted selection */
9
- selectionID: string | null;
10
- /** Function that handles change in chosen selection ID */
11
- onSelectionIDChange: (s: string) => void;
12
- /** The selections from which to choose */
13
- options?: string[];
14
- }
15
- /**
16
- * Render a dropdown for choosing selection.
17
- * @param {SelectionIDDropdownProps} props - The component props.
18
- * @returns {JSX.Element} The rendered component.
19
- */
20
- declare function SelectionIDDropdown(props: SelectionIDDropdownProps): import("react").JSX.Element;
21
- export default SelectionIDDropdown;
22
- export type { SelectionIDDropdownProps };
23
- //# sourceMappingURL=SelectionIDDropdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionIDDropdown.d.ts","sourceRoot":"","sources":["../src/SelectionIDDropdown.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAcxD;;GAEG;AACH,UAAU,wBAAwB;IAChC,qBAAqB;IACrB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,0CAA0C;IAC1C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,0DAA0D;IAC1D,mBAAmB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;GAIG;AACH,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,+BAsE3D;AAED,eAAe,mBAAmB,CAAC;AACnC,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,23 +0,0 @@
1
- import { SelectionType } from './selections/utils';
2
- /**
3
- * Props for the `SelectionDropdown` component.
4
- */
5
- interface SelectionDropdownProps {
6
- /** The chosen selection type */
7
- value: SelectionType;
8
- /** Function that handles change in chosen selection type */
9
- onSelectionTypeChange: (selectionType: SelectionType) => void;
10
- /** If component is disabled */
11
- disabled: boolean;
12
- /** The set of selection type options that are available in the dropdown */
13
- options?: SelectionType[];
14
- }
15
- /**
16
- * Render a dropdown for choosing selection type.
17
- * @param {SelectionDropdownProps} props - The component props.
18
- * @returns {JSX.Element} The rendered component.
19
- */
20
- declare function SelectionTypeDropdown(props: SelectionDropdownProps): import("react").JSX.Element;
21
- export default SelectionTypeDropdown;
22
- export type { SelectionDropdownProps };
23
- //# sourceMappingURL=SelectionTypeDropdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionTypeDropdown.d.ts","sourceRoot":"","sources":["../src/SelectionTypeDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAenD;;GAEG;AACH,UAAU,sBAAsB;IAC9B,gCAAgC;IAChC,KAAK,EAAE,aAAa,CAAC;IACrB,4DAA4D;IAC5D,qBAAqB,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9D,+BAA+B;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;CAC3B;AAwED;;;;GAIG;AACH,iBAAS,qBAAqB,CAAC,KAAK,EAAE,sBAAsB,+BAwB3D;AAED,eAAe,qBAAqB,CAAC;AACrC,YAAY,EAAE,sBAAsB,EAAE,CAAC"}