@foodpilot/foods 2.2.0 → 2.2.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/components/Chart/HistogramComparisonChart/index.d.ts +1 -1
- package/dist/components/Chart/ScatterPlot/ScatterPlot.d.ts +0 -1
- package/dist/components/Chart/ScatterPlot/ScatterPlotCore.d.ts +1 -2
- package/dist/components/Chart/ScatterPlot/ScatterPlotHoverOverlay.d.ts +2 -0
- package/dist/components/Chart/ScatterPlot/ScatterPlotPoints.d.ts +2 -0
- package/dist/components/Chart/ScatterPlot/ScatterPlotTooltip.d.ts +2 -1
- package/dist/components/Chart/ScatterPlot/useScatterPlotInteraction.d.ts +3 -1
- package/dist/components/Tooltip/FoodsTooltip.d.ts +1 -0
- package/dist/main.js +14625 -14543
- package/dist/main.umd.cjs +149 -149
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { DataPoint, ChartStylingOptions, ComparisonLabelOptions, ValueLabelOptions } from './types';
|
|
2
2
|
export { ComparisonLabel } from './ComparisonLabel';
|
|
3
3
|
export { ValueLabel } from './ValueLabel';
|
|
4
4
|
export { CustomizedAxisTick } from './CustomizedAxisTick';
|
|
@@ -25,7 +25,6 @@ export type ScatterPlotProps = {
|
|
|
25
25
|
values: SeriesData[];
|
|
26
26
|
xLabel: ReactNode;
|
|
27
27
|
yLabel: ReactNode;
|
|
28
|
-
onPointSelection: (selectedPoint: SelectedPoint | null) => void;
|
|
29
28
|
width?: string;
|
|
30
29
|
height?: string;
|
|
31
30
|
valueFormatterFn?: (value: number, precision?: number) => string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { SeriesData } from './ScatterPlot';
|
|
4
4
|
export type ScatterPlotCoreProps = {
|
|
5
5
|
values: SeriesData[];
|
|
6
|
-
onPointSelection: (selectedPoint: SelectedPoint | null) => void;
|
|
7
6
|
valueFormatterFn?: (value: number, precision?: number) => string;
|
|
8
7
|
precision?: number;
|
|
9
8
|
language?: string;
|
|
@@ -4,6 +4,8 @@ type OverlayProps = {
|
|
|
4
4
|
valueFormatterFn?: (value: number, precision?: number) => string;
|
|
5
5
|
precision?: number;
|
|
6
6
|
language?: string;
|
|
7
|
+
xDomain: number[];
|
|
8
|
+
yDomain: number[];
|
|
7
9
|
};
|
|
8
10
|
export declare const ScatterPlotHoverOverlay: (props: OverlayProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
11
|
export {};
|
|
@@ -3,6 +3,8 @@ type ScatterPlotPointsProps = {
|
|
|
3
3
|
groupedData: GroupedSeriesData[];
|
|
4
4
|
allPoints: ProcessedPoint[];
|
|
5
5
|
hoveredIndex: number | null;
|
|
6
|
+
pinnedIndex: number | null;
|
|
7
|
+
isTooltipActive: boolean;
|
|
6
8
|
isAnimationActive: boolean;
|
|
7
9
|
shouldShowLabels: boolean;
|
|
8
10
|
containerWidth: number;
|
|
@@ -33,6 +33,7 @@ type ScatterPlotTooltipProps = {
|
|
|
33
33
|
};
|
|
34
34
|
onTooltipEnter?: () => void;
|
|
35
35
|
onTooltipLeave?: () => void;
|
|
36
|
+
handleDismissTooltip?: () => void;
|
|
36
37
|
};
|
|
37
|
-
export declare const ScatterPlotTooltip: (
|
|
38
|
+
export declare const ScatterPlotTooltip: import('react').ForwardRefExoticComponent<ScatterPlotTooltipProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
38
39
|
export {};
|
|
@@ -10,6 +10,8 @@ export type HoverState = {
|
|
|
10
10
|
export declare const useScatterPlotInteraction: () => {
|
|
11
11
|
hoveredIndex: number | null;
|
|
12
12
|
hover: HoverState;
|
|
13
|
+
pinnedIndex: number | null;
|
|
14
|
+
pinnedHover: HoverState;
|
|
13
15
|
isPinned: boolean;
|
|
14
16
|
handlePointEnter: (point: Point, index: number | null, pixelCoordinates?: {
|
|
15
17
|
x: number;
|
|
@@ -23,5 +25,5 @@ export declare const useScatterPlotInteraction: () => {
|
|
|
23
25
|
handleTooltipEnter: () => void;
|
|
24
26
|
handleTooltipLeave: () => void;
|
|
25
27
|
handleChartMouseLeave: () => void;
|
|
26
|
-
|
|
28
|
+
handleDismissTooltip: () => void;
|
|
27
29
|
};
|