@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,30 +0,0 @@
|
|
|
1
|
-
export declare const horizontalBarChartClassNames: {
|
|
2
|
-
horizontalBarChartButtonTd: string;
|
|
3
|
-
horizontalBarChartLabelTd: string;
|
|
4
|
-
horizontalBarChartLabelCell: string;
|
|
5
|
-
horizontalBarChartBarTd: string;
|
|
6
|
-
horizontalBarChartBarFlex: string;
|
|
7
|
-
horizontalBarChartBar: string;
|
|
8
|
-
horizontalBarChartBarFirst: string;
|
|
9
|
-
horizontalBarChartBarLast: string;
|
|
10
|
-
horizontalBarChartBarOnly: string;
|
|
11
|
-
horizontalBarChartTooltipFlex: string;
|
|
12
|
-
horizontalBarChartStackWrapper: string;
|
|
13
|
-
horizontalBarChartTooltipContainer: string;
|
|
14
|
-
horizontalBarChartStackSumContainer: string;
|
|
15
|
-
horizontalBarChartStackSum: string;
|
|
16
|
-
horizontalBarChartXScaleTd: string;
|
|
17
|
-
horizontalBarChartXScaleTicks: string;
|
|
18
|
-
horizontalBarChartXScaleTick: string;
|
|
19
|
-
horizontalBarChartTooltipItem: string;
|
|
20
|
-
horizontalBarChartTooltipName: string;
|
|
21
|
-
horizontalBarChartTooltipValue: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const Table: import('styled-components').StyledComponent<"table", any, {}, never>;
|
|
24
|
-
export declare const LabelCell: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
25
|
-
export declare const BarFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
26
|
-
export declare const BarsTd: import('styled-components').StyledComponent<"td", any, {}, never>;
|
|
27
|
-
export declare const TooltipFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
28
|
-
export declare const StackSumContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
29
|
-
export declare const StackSum: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
30
|
-
export declare const StackWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren, ReactNode } from '../../../node_modules/@types/react';
|
|
2
|
-
export type HorizontalBarChartData = {
|
|
3
|
-
name?: ReactNode;
|
|
4
|
-
value: number;
|
|
5
|
-
color: string;
|
|
6
|
-
};
|
|
7
|
-
export interface HorizontalBarChartProps extends PropsWithChildren {
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
className?: string;
|
|
10
|
-
data: HorizontalBarChartData[][];
|
|
11
|
-
labels?: ReactNode[];
|
|
12
|
-
fullExtent?: boolean;
|
|
13
|
-
maxValue?: number | undefined;
|
|
14
|
-
formatNativeTitle?: (bar: HorizontalBarChartMarshalingData) => string;
|
|
15
|
-
renderTooltip?: (bar: HorizontalBarChartMarshalingData[]) => ReactNode;
|
|
16
|
-
hideTooltip?: () => void;
|
|
17
|
-
withTooltip?: boolean;
|
|
18
|
-
fullooltip?: boolean;
|
|
19
|
-
stackedTooltip?: boolean;
|
|
20
|
-
fullChartTooltip?: boolean;
|
|
21
|
-
withStackSum?: boolean;
|
|
22
|
-
tooltipBind?: boolean;
|
|
23
|
-
scaleTicks?: number;
|
|
24
|
-
renderTicks?: (tick: HorizontalBarChartScaleItem) => ReactNode;
|
|
25
|
-
renderButton?: (item: HorizontalBarChartMarshalingData[], index: number) => ReactNode;
|
|
26
|
-
tooltipStyle?: CSSProperties;
|
|
27
|
-
tooltipRoot?: Element;
|
|
28
|
-
tooltipClassName?: string;
|
|
29
|
-
scaleDomain?: number[];
|
|
30
|
-
renderDataTable?: (stack: HorizontalBarChartMarshalingData[], stackSum: number, rowIndex: number) => ReactNode;
|
|
31
|
-
thead?: ReactNode;
|
|
32
|
-
withoutXScale?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export type HorizontalBarChartMarshalingData = HorizontalBarChartData & {
|
|
35
|
-
width: number;
|
|
36
|
-
groupName: ReactNode;
|
|
37
|
-
};
|
|
38
|
-
export type HorizontalBarChartScaleItem = {
|
|
39
|
-
value: number;
|
|
40
|
-
x: number;
|
|
41
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LineChartProps } from '../types';
|
|
2
|
-
import * as d3 from 'd3';
|
|
3
|
-
export type DrawGridProps = {
|
|
4
|
-
svg: d3.Selection<SVGSVGElement, unknown, null, undefined>;
|
|
5
|
-
yScale: d3.ScaleLinear<number, number>;
|
|
6
|
-
xScale: d3.ScaleLinear<number, number>;
|
|
7
|
-
lastIndex: number;
|
|
8
|
-
yTicksCount: number;
|
|
9
|
-
} & Pick<LineChartProps, 'drawGridX' | 'drawGridY'>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LineChartProps } from '../types';
|
|
2
|
-
import * as d3 from 'd3';
|
|
3
|
-
export type DrawLabelProps = {
|
|
4
|
-
node: HTMLElement;
|
|
5
|
-
yScale: d3.ScaleLinear<number, number>;
|
|
6
|
-
xScale: d3.ScaleLinear<number, number>;
|
|
7
|
-
} & Pick<LineChartProps, 'data' | 'formatLabel' | 'eachLabel'>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DrawTooltipProps } from './types';
|
|
2
|
-
export declare const drawTooltip: ({ svg, node, data: argData, xScale, yScale, dynamicCircleRadius, formatDynamicTooltip, renderTooltip, stackedTooltipIndex, stackedTooltip, tooltipLineTop, tooltipRoot, tooltipClassName, dotSnapping, lastIndex, }: DrawTooltipProps) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LineChartProps } from '../types';
|
|
2
|
-
import * as d3 from 'd3';
|
|
3
|
-
export type DrawTooltipProps = {
|
|
4
|
-
svg: d3.Selection<SVGSVGElement, unknown, null, undefined>;
|
|
5
|
-
node: HTMLElement;
|
|
6
|
-
yScale: d3.ScaleLinear<number, number>;
|
|
7
|
-
xScale: d3.ScaleLinear<number, number>;
|
|
8
|
-
lastIndex: number;
|
|
9
|
-
} & Pick<LineChartProps, 'data' | 'dynamicCircleRadius' | 'formatDynamicTooltip' | 'renderTooltip' | 'stackedTooltipIndex' | 'stackedTooltip' | 'tooltipLineTop' | 'tooltipRoot' | 'tooltipClassName' | 'dotSnapping'>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { JSXElementConstructor } from '../../../node_modules/@types/react';
|
|
2
|
-
export declare const lineChartClassNames: {
|
|
3
|
-
lineChartYScaleGlobal: string;
|
|
4
|
-
lineChartYScaleRight: string;
|
|
5
|
-
lineChartXScaleGlobal: string;
|
|
6
|
-
lineChartLinesGlobal: string;
|
|
7
|
-
lineChartLine: string;
|
|
8
|
-
lineChartAreasGlobal: string;
|
|
9
|
-
lineChartArea: string;
|
|
10
|
-
lineChartDotsGlobalContainer: string;
|
|
11
|
-
lineChartDotsGlobal: string;
|
|
12
|
-
lineChartDot: string;
|
|
13
|
-
lineChartGridGlobal: string;
|
|
14
|
-
lineChartGridLineX: string;
|
|
15
|
-
lineChartGridLineY: string;
|
|
16
|
-
lineChartLabelContainer: string;
|
|
17
|
-
lineChartLabelFlex: string;
|
|
18
|
-
lineChartLabel: string;
|
|
19
|
-
lineChartMouseGlobal: string;
|
|
20
|
-
lineChartMouseLine: string;
|
|
21
|
-
lineChartMouseRect: string;
|
|
22
|
-
lineChartMouseCircle: string;
|
|
23
|
-
lineChartMouseLabelContainer: string;
|
|
24
|
-
lineChartMouseLabel: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const SvgWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
27
|
-
export declare const TooltipStyles: JSXElementConstructor<any>;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren, ReactNode } from '../../../node_modules/@types/react';
|
|
2
|
-
import { Margin } from '../../common/types/margin';
|
|
3
|
-
import * as d3 from 'd3';
|
|
4
|
-
export type LineChartCustomAxis = (axis: d3.Axis<d3.NumberValue>) => void;
|
|
5
|
-
type LineChartCustomAxisSelection = (selection: d3.Selection<SVGGElement, unknown, null, undefined>) => void;
|
|
6
|
-
export interface LineChartProps extends PropsWithChildren {
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
data: LineChartData[];
|
|
10
|
-
width?: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
margin?: Margin;
|
|
13
|
-
labels?: (string | number)[];
|
|
14
|
-
customYAxis?: LineChartCustomAxis;
|
|
15
|
-
customXAxis?: LineChartCustomAxis;
|
|
16
|
-
customYAxisSelection?: LineChartCustomAxisSelection;
|
|
17
|
-
customXAxisSelection?: LineChartCustomAxisSelection;
|
|
18
|
-
yAxisPadding?: number;
|
|
19
|
-
xAxisPadding?: number;
|
|
20
|
-
curve?: d3.CurveFactory;
|
|
21
|
-
areaCurve?: d3.CurveFactory;
|
|
22
|
-
drawGridY?: boolean;
|
|
23
|
-
drawGridX?: boolean;
|
|
24
|
-
min?: number;
|
|
25
|
-
max?: number;
|
|
26
|
-
stacked?: boolean;
|
|
27
|
-
formatLabel?: (value: number, index: number, label: HTMLDivElement[]) => string | number;
|
|
28
|
-
withLabels?: boolean;
|
|
29
|
-
eachLabel?: (value: number, index: number, divs: HTMLDivElement[]) => void;
|
|
30
|
-
dynamicTooltipEnable?: boolean;
|
|
31
|
-
dynamicCircleRadius?: number;
|
|
32
|
-
formatDynamicTooltip?: (invertValue: number, value: number | null) => number | string;
|
|
33
|
-
renderTooltip?: (datas: LineChartDatas[], properties: {
|
|
34
|
-
indexX: number;
|
|
35
|
-
indexY: number;
|
|
36
|
-
svg: d3.Selection<SVGSVGElement, unknown, null, undefined>;
|
|
37
|
-
event: MouseEvent | TouchEvent;
|
|
38
|
-
}) => ReactNode;
|
|
39
|
-
stackedTooltip?: boolean;
|
|
40
|
-
stackedTooltipIndex?: number | undefined;
|
|
41
|
-
tooltipLineTop?: boolean;
|
|
42
|
-
customize?: (args: {
|
|
43
|
-
svg: d3.Selection<SVGSVGElement, unknown, null, undefined>;
|
|
44
|
-
yScale: d3.ScaleLinear<number, number>;
|
|
45
|
-
xScale: d3.ScaleLinear<number, number>;
|
|
46
|
-
}) => void;
|
|
47
|
-
customYScale?: (yScale: (value: number) => number) => void;
|
|
48
|
-
customLine?: (line: d3.Line<[number, number]>) => void;
|
|
49
|
-
tooltipRoot?: Element;
|
|
50
|
-
tooltipClassName?: string;
|
|
51
|
-
xScaleItemWidth?: number;
|
|
52
|
-
dotSnapping?: boolean;
|
|
53
|
-
rightAxis?: number[];
|
|
54
|
-
}
|
|
55
|
-
export type LineChartDot = {
|
|
56
|
-
radius?: number;
|
|
57
|
-
style?: string;
|
|
58
|
-
filter?: (value: LineChartData, index: number, circles: (d3.BaseType | SVGCircleElement)[] | ArrayLike<d3.BaseType | SVGCircleElement>) => boolean;
|
|
59
|
-
};
|
|
60
|
-
export type LineChartData = {
|
|
61
|
-
name?: string;
|
|
62
|
-
values: (number | null)[];
|
|
63
|
-
minAreaValues?: (number | null)[];
|
|
64
|
-
stroke?: string;
|
|
65
|
-
fill?: string;
|
|
66
|
-
tooltipOff?: boolean;
|
|
67
|
-
style?: string;
|
|
68
|
-
dot?: LineChartDot;
|
|
69
|
-
dynamicDotStyle?: string;
|
|
70
|
-
dynamicDotOff?: boolean;
|
|
71
|
-
areaStyle?: string;
|
|
72
|
-
tooltipOrder?: number;
|
|
73
|
-
};
|
|
74
|
-
export type LineChartDatas = Omit<LineChartData, 'values'> & {
|
|
75
|
-
value: number | null;
|
|
76
|
-
invertValue: number;
|
|
77
|
-
};
|
|
78
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DrawRadialLabels } from './types';
|
|
2
|
-
export declare const drawRadialLabels: ({ arc, enableRadialLabels, global, node, radius, dataReady, radialLabelsLinkHorizontalLength, formatRadialLabel, radialLabelsTextXOffset, translateX, translateY, radialLabelYOffset, radialAngleXOffset, }: DrawRadialLabels) => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PieChartProps, PieChartDatum } from '../types';
|
|
2
|
-
import * as d3 from 'd3';
|
|
3
|
-
export type DrawRadialLabels = {
|
|
4
|
-
global: any;
|
|
5
|
-
arc: d3.Arc<any, d3.DefaultArcObject>;
|
|
6
|
-
node: HTMLElement;
|
|
7
|
-
radius: number;
|
|
8
|
-
dataReady: PieChartDatum[];
|
|
9
|
-
translateX: number;
|
|
10
|
-
translateY: number;
|
|
11
|
-
} & Pick<PieChartProps, 'enableRadialLabels' | 'radialLabelsLinkHorizontalLength' | 'radialLabelsTextXOffset' | 'formatRadialLabel' | 'radialLabelYOffset' | 'radialAngleXOffset'>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PieChartProps, PieChartDatum } from '../types';
|
|
2
|
-
import * as d3 from 'd3';
|
|
3
|
-
export type DrawTooltipProps = Pick<PieChartProps, 'fullChartTooltip' | 'tooltipRoot' | 'data' | 'tooltipClassName' | 'tooltipBind' | 'renderTooltip' | 'tooltipStyle' | 'width' | 'height'> & {
|
|
4
|
-
global: d3.Selection<SVGGElement, unknown, null, undefined>;
|
|
5
|
-
allSlices: d3.Selection<SVGPathElement, PieChartDatum, SVGGElement, unknown>;
|
|
6
|
-
arc: d3.Arc<any, d3.DefaultArcObject>;
|
|
7
|
-
radius: number;
|
|
8
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const pieChartclassNames: {
|
|
2
|
-
pieGlobal: string;
|
|
3
|
-
pieSlice: string;
|
|
4
|
-
pieSliceLabel: string;
|
|
5
|
-
pieSliceLabelValue: string;
|
|
6
|
-
pieSliceLabelName: string;
|
|
7
|
-
pieRadialLabel: string;
|
|
8
|
-
pieRadialLink: string;
|
|
9
|
-
pieTooltipContainer: string;
|
|
10
|
-
pieTooltipFlex: string;
|
|
11
|
-
pieTooltip: string;
|
|
12
|
-
pieTooltipItem: string;
|
|
13
|
-
pieTooltipName: string;
|
|
14
|
-
pieTooltipValue: string;
|
|
15
|
-
pieTooltipColorBox: string;
|
|
16
|
-
pieFullChartTooltipCircle: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const SvgWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, CSSProperties, PropsWithChildren } from '../../../node_modules/@types/react';
|
|
2
|
-
import { Margin } from '../../common/types/margin';
|
|
3
|
-
import * as d3 from "d3";
|
|
4
|
-
export interface PieChartProps extends PropsWithChildren {
|
|
5
|
-
data: PieChartData[];
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
outerRadius?: number;
|
|
11
|
-
startAngle?: number;
|
|
12
|
-
endAngle?: number;
|
|
13
|
-
padAngle?: number;
|
|
14
|
-
cornerRadius?: number;
|
|
15
|
-
borderWidth?: number;
|
|
16
|
-
borderColor?: string;
|
|
17
|
-
margin?: Margin;
|
|
18
|
-
onClick?: (data: PieChartData) => void;
|
|
19
|
-
enableSlicesLabels?: boolean;
|
|
20
|
-
formatSliceLabel?: PieChartFormatLabel;
|
|
21
|
-
formatSliceTitle?: PieChartFormatLabel;
|
|
22
|
-
formatSliceLabelName?: PieChartFormatLabel;
|
|
23
|
-
slicesLabelsSkipAngle?: number;
|
|
24
|
-
enableSlicesLabelsName?: boolean;
|
|
25
|
-
backgroundColor?: string;
|
|
26
|
-
enableRadialLabels?: boolean;
|
|
27
|
-
radialLabelsLinkHorizontalLength?: number;
|
|
28
|
-
radialLabelsTextXOffset?: number;
|
|
29
|
-
formatRadialLabel?: PieChartFormatRadialLabel;
|
|
30
|
-
radialLabelYOffset?: number;
|
|
31
|
-
svgElements?: ReactElement;
|
|
32
|
-
radialAngleXOffset?: number;
|
|
33
|
-
withTooltip?: boolean;
|
|
34
|
-
fullChartTooltip?: boolean;
|
|
35
|
-
tooltipRoot?: Element;
|
|
36
|
-
tooltipBind?: boolean;
|
|
37
|
-
tooltipClassName?: string;
|
|
38
|
-
renderTooltip?: (data: PieChartDatum[] | PieChartData[]) => ReactNode;
|
|
39
|
-
tooltipStyle?: CSSProperties;
|
|
40
|
-
}
|
|
41
|
-
export type PieChartData = {
|
|
42
|
-
id?: number | string;
|
|
43
|
-
cornerRadius?: number;
|
|
44
|
-
name?: ReactNode;
|
|
45
|
-
color?: string;
|
|
46
|
-
value: number;
|
|
47
|
-
};
|
|
48
|
-
export type PieChartDatum = {
|
|
49
|
-
data: PieChartData;
|
|
50
|
-
index: number;
|
|
51
|
-
value: number;
|
|
52
|
-
} & d3.DefaultArcObject;
|
|
53
|
-
export type PieChartFormatLabel = (datum: PieChartDatum) => string;
|
|
54
|
-
export type PieChartFormatRadialLabel = (datum: PieChartDatum) => ReactNode;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
|
-
import { RadarChartRenderLabelAnchor } from '../types';
|
|
3
|
-
import * as d3 from 'd3';
|
|
4
|
-
type RenderLabel = (anchor: RadarChartRenderLabelAnchor, index: number) => ReactNode;
|
|
5
|
-
export type DrawRadialLabels = {
|
|
6
|
-
node: HTMLElement;
|
|
7
|
-
dataLength: number;
|
|
8
|
-
radiusScale: any;
|
|
9
|
-
maxValue: number;
|
|
10
|
-
angleSlice: number;
|
|
11
|
-
radius: number;
|
|
12
|
-
renderLabel: RenderLabel | ReactNode;
|
|
13
|
-
xOffset?: number;
|
|
14
|
-
yOffset?: number;
|
|
15
|
-
translateX?: number;
|
|
16
|
-
translateY?: number;
|
|
17
|
-
selectLabel: (label: d3.Selection<HTMLDivElement, unknown, null, undefined>, anchor: RadarChartRenderLabelAnchor, index: number) => void;
|
|
18
|
-
};
|
|
19
|
-
export type LabelContainerProps = {
|
|
20
|
-
anchor: RadarChartRenderLabelAnchor;
|
|
21
|
-
translateX: number;
|
|
22
|
-
translateY: number;
|
|
23
|
-
index: number;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const radarChartclassNames: {
|
|
2
|
-
radar: string;
|
|
3
|
-
radarAxis: string;
|
|
4
|
-
radarAxisTextGlobal: string;
|
|
5
|
-
radarAxisText: string;
|
|
6
|
-
radarPolygon: string;
|
|
7
|
-
radarLabel: string;
|
|
8
|
-
radarLabelName: string;
|
|
9
|
-
radarLabelBadge: string;
|
|
10
|
-
radarLabelBadgePrefix: string;
|
|
11
|
-
radarCircle: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const SvgWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ReactElement, CSSProperties, ReactNode } from '../../../node_modules/@types/react';
|
|
2
|
-
import { CurveFactory, CurveFactoryLineOnly, Selection } from 'd3';
|
|
3
|
-
export type RadarChartFormatValue = (value: number, index: number) => string;
|
|
4
|
-
export type RadarChartRenderLabelAnchor = 'start' | 'middle' | 'end';
|
|
5
|
-
export type RadarChartRenderLabelProps = {
|
|
6
|
-
item: RadarChartData;
|
|
7
|
-
items: RadarChartData[];
|
|
8
|
-
anchor: RadarChartRenderLabelAnchor;
|
|
9
|
-
index: number;
|
|
10
|
-
};
|
|
11
|
-
export type RadarChartRenderLabel = (props: RadarChartRenderLabelProps) => ReactNode;
|
|
12
|
-
export type RadarChartSelectLabel = (label: Selection<HTMLDivElement, unknown, null, undefined>, props: RadarChartRenderLabelProps) => void;
|
|
13
|
-
export interface RadarChartProps {
|
|
14
|
-
data: RadarChartData[][];
|
|
15
|
-
className?: string;
|
|
16
|
-
style?: CSSProperties;
|
|
17
|
-
height?: number;
|
|
18
|
-
width?: number;
|
|
19
|
-
levels?: number;
|
|
20
|
-
bleedLength?: number;
|
|
21
|
-
curve?: CurveFactory | CurveFactoryLineOnly;
|
|
22
|
-
polar?: boolean;
|
|
23
|
-
paddingX?: number;
|
|
24
|
-
paddingY?: number;
|
|
25
|
-
formatValue?: RadarChartFormatValue;
|
|
26
|
-
formatAxisValue?: RadarChartFormatValue;
|
|
27
|
-
badgePrefix?: string;
|
|
28
|
-
labelOffset?: number;
|
|
29
|
-
circleRadius?: number;
|
|
30
|
-
minValue?: number;
|
|
31
|
-
maxValue?: number;
|
|
32
|
-
svgElements?: ReactElement;
|
|
33
|
-
renderLabel?: RadarChartRenderLabel;
|
|
34
|
-
selectLabel?: RadarChartSelectLabel;
|
|
35
|
-
customize?: (svg: Selection<SVGSVGElement, unknown, null, undefined>) => void;
|
|
36
|
-
radarStyles?: string[];
|
|
37
|
-
labelIndex?: number;
|
|
38
|
-
}
|
|
39
|
-
export interface RadarChartData {
|
|
40
|
-
name?: string;
|
|
41
|
-
value: number;
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SwipeScrollContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from '../../../../node_modules/@types/react';
|
|
2
|
-
import * as d3 from "d3";
|
|
3
|
-
export interface SwipeScrollProps extends PropsWithChildren {
|
|
4
|
-
width: number;
|
|
5
|
-
duration?: number;
|
|
6
|
-
animationFunc?: (timing: number) => number;
|
|
7
|
-
onSwipe?: (x: number, selection: d3.Selection<HTMLElement | null, unknown, null, undefined>) => void;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LabelContainerProps } from './types';
|
|
2
|
-
export declare const getTranslate: ({ anchor, index, translateX, translateY, }: LabelContainerProps) => string;
|
|
3
|
-
export declare const Label: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const Name: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const DefaultBadge: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const MiddleBadge: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const BadgePrefix: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const TooltipFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const LabelFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const LabelFlexCenter: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const TooltipContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const TooltipGroupName: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const TooltipItem: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const ColFlex: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const ColorBox: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const ColorLine: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
10
|
-
export declare const Name: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const Value: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const Label: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const LabelTop: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const LabelBottom: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Interpolator = (value: number) => string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { GetLegendProps } from './types';
|
|
2
|
-
import * as d3 from 'd3';
|
|
3
|
-
export declare const legendClassNames: {
|
|
4
|
-
legendContainer: string;
|
|
5
|
-
legendTitle: string;
|
|
6
|
-
legendTick: string;
|
|
7
|
-
legendTickLine: string;
|
|
8
|
-
legendTickText: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const legendDefaultParams: {
|
|
11
|
-
tickSize: number;
|
|
12
|
-
height: number;
|
|
13
|
-
width: number;
|
|
14
|
-
marginTop: number;
|
|
15
|
-
marginBottom: number;
|
|
16
|
-
ticksDivier: number;
|
|
17
|
-
titleMarginBottom: number;
|
|
18
|
-
};
|
|
19
|
-
export declare const getLegend: ({ color, title, tickSize, width, height, marginTop, marginRight, marginBottom, marginLeft, ticks, tickFormat, tickValues, titleMarginBottom, }: GetLegendProps) => d3.Selection<SVGSVGElement, undefined, null, undefined>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type GetLegendProps = {
|
|
2
|
-
color?: any;
|
|
3
|
-
title?: string;
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
tickSize?: number;
|
|
7
|
-
marginTop?: number;
|
|
8
|
-
marginLeft?: number;
|
|
9
|
-
marginBottom?: number;
|
|
10
|
-
marginRight?: number;
|
|
11
|
-
ticks?: number;
|
|
12
|
-
tickFormat?: ((value: number, index: number, texts: SVGTextElement) => void) | string;
|
|
13
|
-
titleMarginBottom?: number;
|
|
14
|
-
tickValues?: (number | undefined)[];
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getTextWidth(text: string | number, font?: string): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './appendSvg';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function throttle(fn: Function, wait: number): (...args: any) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useResize: (width?: number, callback?: (...args: any) => any, delay?: number) => void;
|