@evergis/charts 3.1.7 → 3.1.9
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/charts/BarChart/index.d.ts +1 -1
- package/dist/charts/BarChart/styled.d.ts +1 -1
- package/dist/charts/BarChart/types.d.ts +1 -1
- package/dist/charts/BubbleChart/index.d.ts +1 -1
- package/dist/charts/BubbleChart/styled.d.ts +1 -1
- package/dist/charts/BubbleChart/types.d.ts +1 -1
- package/dist/charts/CalendarChart/index.d.ts +1 -1
- package/dist/charts/CalendarChart/types.d.ts +1 -1
- package/dist/charts/HorizontalBarChart/Bar/index.d.ts +1 -1
- package/dist/charts/HorizontalBarChart/Tooltip/index.d.ts +1 -1
- package/dist/charts/HorizontalBarChart/XScale/index.d.ts +1 -1
- package/dist/charts/HorizontalBarChart/hooks/useStackWrapper.d.ts +1 -1
- package/dist/charts/HorizontalBarChart/hooks/useTooltip/types.d.ts +1 -1
- package/dist/charts/HorizontalBarChart/index.d.ts +1 -1
- package/dist/charts/HorizontalBarChart/types.d.ts +1 -1
- package/dist/charts/LineChart/index.d.ts +1 -1
- package/dist/charts/LineChart/styled.d.ts +1 -1
- package/dist/charts/LineChart/types.d.ts +1 -1
- package/dist/charts/PieChart/index.d.ts +1 -1
- package/dist/charts/PieChart/types.d.ts +1 -1
- package/dist/charts/RadarChart/drawRadialLabels/types.d.ts +1 -1
- package/dist/charts/RadarChart/index.d.ts +1 -1
- package/dist/charts/RadarChart/types.d.ts +1 -1
- package/dist/charts.esm.js +246 -7067
- package/dist/charts.esm.js.map +1 -1
- package/dist/common/components/SwipeScroll/index.d.ts +1 -1
- package/dist/common/components/SwipeScroll/types.d.ts +1 -1
- package/dist/hooks/useNode.d.ts +1 -1
- package/dist/index.js +293 -7095
- package/dist/index.js.map +1 -1
- package/package.json +22 -16
- package/dist/src/charts/BarChart/draw.d.ts +0 -2
- package/dist/src/charts/BarChart/drawGrid/index.d.ts +0 -2
- package/dist/src/charts/BarChart/drawGrid/types.d.ts +0 -8
- package/dist/src/charts/BarChart/drawLines/index.d.ts +0 -13
- package/dist/src/charts/BarChart/drawLines/types.d.ts +0 -9
- package/dist/src/charts/BarChart/drawTooltip/getLabel.d.ts +0 -2
- package/dist/src/charts/BarChart/drawTooltip/getLabelY.d.ts +0 -2
- package/dist/src/charts/BarChart/drawTooltip/index.d.ts +0 -2
- package/dist/src/charts/BarChart/drawTooltip/types.d.ts +0 -12
- package/dist/src/charts/BarChart/getBars/index.d.ts +0 -3
- package/dist/src/charts/BarChart/getBars/types.d.ts +0 -6
- package/dist/src/charts/BarChart/getDomain.d.ts +0 -5
- package/dist/src/charts/BarChart/hooks/useSelection.d.ts +0 -2
- package/dist/src/charts/BarChart/index.d.ts +0 -3
- package/dist/src/charts/BarChart/marshaling.d.ts +0 -2
- package/dist/src/charts/BarChart/resizeBarWidth/index.d.ts +0 -2
- package/dist/src/charts/BarChart/resizeBarWidth/types.d.ts +0 -5
- package/dist/src/charts/BarChart/styled.d.ts +0 -37
- package/dist/src/charts/BarChart/types.d.ts +0 -148
- package/dist/src/charts/BubbleChart/bubbleChartDefaultProps.d.ts +0 -14
- package/dist/src/charts/BubbleChart/draw.d.ts +0 -2
- package/dist/src/charts/BubbleChart/drawGrid/index.d.ts +0 -2
- package/dist/src/charts/BubbleChart/drawGrid/types.d.ts +0 -8
- package/dist/src/charts/BubbleChart/drawTooltip/index.d.ts +0 -2
- package/dist/src/charts/BubbleChart/drawTooltip/styled.d.ts +0 -1
- package/dist/src/charts/BubbleChart/drawTooltip/types.d.ts +0 -4
- package/dist/src/charts/BubbleChart/index.d.ts +0 -3
- package/dist/src/charts/BubbleChart/styled.d.ts +0 -17
- package/dist/src/charts/BubbleChart/types.d.ts +0 -55
- package/dist/src/charts/BubbleChart/unmount.d.ts +0 -1
- package/dist/src/charts/CalendarChart/draw.d.ts +0 -2
- package/dist/src/charts/CalendarChart/index.d.ts +0 -3
- package/dist/src/charts/CalendarChart/styled.d.ts +0 -18
- package/dist/src/charts/CalendarChart/types.d.ts +0 -22
- package/dist/src/charts/HorizontalBarChart/Bar/index.d.ts +0 -3
- package/dist/src/charts/HorizontalBarChart/Bar/styled.d.ts +0 -1
- package/dist/src/charts/HorizontalBarChart/Bar/types.d.ts +0 -11
- package/dist/src/charts/HorizontalBarChart/Tooltip/index.d.ts +0 -3
- package/dist/src/charts/HorizontalBarChart/Tooltip/types.d.ts +0 -5
- package/dist/src/charts/HorizontalBarChart/XScale/hooks/useScale.d.ts +0 -2
- package/dist/src/charts/HorizontalBarChart/XScale/index.d.ts +0 -3
- package/dist/src/charts/HorizontalBarChart/XScale/styled.d.ts +0 -3
- package/dist/src/charts/HorizontalBarChart/hooks/useMarshaling.d.ts +0 -5
- package/dist/src/charts/HorizontalBarChart/hooks/useStackWrapper.d.ts +0 -12
- package/dist/src/charts/HorizontalBarChart/hooks/useTooltip/index.d.ts +0 -3
- package/dist/src/charts/HorizontalBarChart/hooks/useTooltip/types.d.ts +0 -6
- package/dist/src/charts/HorizontalBarChart/index.d.ts +0 -3
- package/dist/src/charts/HorizontalBarChart/styled.d.ts +0 -30
- package/dist/src/charts/HorizontalBarChart/types.d.ts +0 -41
- package/dist/src/charts/LineChart/draw.d.ts +0 -2
- package/dist/src/charts/LineChart/drawGrid/index.d.ts +0 -2
- package/dist/src/charts/LineChart/drawGrid/types.d.ts +0 -9
- package/dist/src/charts/LineChart/drawLabel/index.d.ts +0 -3
- package/dist/src/charts/LineChart/drawLabel/styled.d.ts +0 -2
- package/dist/src/charts/LineChart/drawLabel/types.d.ts +0 -7
- package/dist/src/charts/LineChart/drawTooltip/index.d.ts +0 -2
- package/dist/src/charts/LineChart/drawTooltip/types.d.ts +0 -9
- package/dist/src/charts/LineChart/index.d.ts +0 -3
- package/dist/src/charts/LineChart/styled.d.ts +0 -27
- package/dist/src/charts/LineChart/types.d.ts +0 -78
- package/dist/src/charts/PieChart/draw.d.ts +0 -2
- package/dist/src/charts/PieChart/drawRadialLabels/helpers.d.ts +0 -3
- package/dist/src/charts/PieChart/drawRadialLabels/index.d.ts +0 -2
- package/dist/src/charts/PieChart/drawRadialLabels/types.d.ts +0 -11
- package/dist/src/charts/PieChart/drawTooltips/index.d.ts +0 -2
- package/dist/src/charts/PieChart/drawTooltips/types.d.ts +0 -8
- package/dist/src/charts/PieChart/index.d.ts +0 -3
- package/dist/src/charts/PieChart/styled.d.ts +0 -18
- package/dist/src/charts/PieChart/types.d.ts +0 -54
- package/dist/src/charts/RadarChart/draw.d.ts +0 -2
- package/dist/src/charts/RadarChart/drawRadialLabels/index.d.ts +0 -2
- package/dist/src/charts/RadarChart/drawRadialLabels/styled.d.ts +0 -2
- package/dist/src/charts/RadarChart/drawRadialLabels/types.d.ts +0 -25
- package/dist/src/charts/RadarChart/helpers.d.ts +0 -2
- package/dist/src/charts/RadarChart/index.d.ts +0 -3
- package/dist/src/charts/RadarChart/styled.d.ts +0 -13
- package/dist/src/charts/RadarChart/types.d.ts +0 -42
- package/dist/src/common/components/SwipeScroll/animate.d.ts +0 -6
- package/dist/src/common/components/SwipeScroll/hooks/useSwipe.d.ts +0 -2
- package/dist/src/common/components/SwipeScroll/index.d.ts +0 -3
- package/dist/src/common/components/SwipeScroll/styled.d.ts +0 -1
- package/dist/src/common/components/SwipeScroll/types.d.ts +0 -8
- package/dist/src/common/components/Wrapper.d.ts +0 -1
- package/dist/src/common/components/labels/index.d.ts +0 -7
- package/dist/src/common/components/labels/types.d.ts +0 -6
- package/dist/src/common/components/tooltips/index.d.ts +0 -14
- package/dist/src/common/types/interpolator.d.ts +0 -1
- package/dist/src/common/types/margin.d.ts +0 -6
- package/dist/src/helpers/appendSvg.d.ts +0 -2
- package/dist/src/helpers/common.d.ts +0 -2
- package/dist/src/helpers/computeDimensions.d.ts +0 -2
- package/dist/src/helpers/getLegend/index.d.ts +0 -19
- package/dist/src/helpers/getLegend/types.d.ts +0 -15
- package/dist/src/helpers/getTextWidth.d.ts +0 -1
- package/dist/src/helpers/index.d.ts +0 -1
- package/dist/src/helpers/math.d.ts +0 -2
- package/dist/src/helpers/stackedData.d.ts +0 -2
- package/dist/src/helpers/textAlignCenter.d.ts +0 -2
- package/dist/src/helpers/throttle.d.ts +0 -1
- package/dist/src/hooks/index.d.ts +0 -2
- package/dist/src/hooks/useNode.d.ts +0 -2
- package/dist/src/hooks/useResize.d.ts +0 -1
- package/dist/src/index.d.ts +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren, ReactNode } from '
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { Margin } from '../../common/types/margin';
|
|
3
3
|
import * as d3 from "d3";
|
|
4
4
|
export type BarChartData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren } from '
|
|
1
|
+
import { CSSProperties, PropsWithChildren } from 'react';
|
|
2
2
|
import { Interpolator } from '../../common/types/interpolator';
|
|
3
3
|
import { GetLegendProps } from '../../helpers/getLegend/types';
|
|
4
4
|
export type OnEachDay = (data: CalendarChartData, element: HTMLDivElement, color: string) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from '
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { UseTooltip } from './useTooltip/types';
|
|
3
3
|
import { HorizontalBarChartMarshalingData, HorizontalBarChartProps } from '../types';
|
|
4
4
|
export declare const useStackWrapper: (stackedTooltip?: boolean) => (({ item, mouseMove, mouseLeave, tooltipBind, ...props }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MouseEvent } from '
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
2
|
import { HorizontalBarChartMarshalingData } from '../../types';
|
|
3
3
|
export type UseTooltip = [
|
|
4
4
|
(event: MouseEvent, bars: HorizontalBarChartMarshalingData[]) => void,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren, ReactNode } from '
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { Margin } from '../../common/types/margin';
|
|
3
3
|
import * as d3 from 'd3';
|
|
4
4
|
export type LineChartCustomAxis = (axis: d3.Axis<d3.NumberValue>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, CSSProperties, PropsWithChildren } from '
|
|
1
|
+
import { ReactElement, ReactNode, CSSProperties, PropsWithChildren } from 'react';
|
|
2
2
|
import { Margin } from '../../common/types/margin';
|
|
3
3
|
import * as d3 from "d3";
|
|
4
4
|
export interface PieChartProps extends PropsWithChildren {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from '
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { RadarChartRenderLabelAnchor } from '../types';
|
|
3
3
|
import * as d3 from 'd3';
|
|
4
4
|
type RenderLabel = (anchor: RadarChartRenderLabelAnchor, index: number) => ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, CSSProperties, ReactNode } from '
|
|
1
|
+
import { ReactElement, CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { CurveFactory, CurveFactoryLineOnly, Selection } from 'd3';
|
|
3
3
|
export type RadarChartFormatValue = (value: number, index: number) => string;
|
|
4
4
|
export type RadarChartRenderLabelAnchor = 'start' | 'middle' | 'end';
|