@advt-gpt-chart/package 3.2.7 → 3.2.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/Chart/ChartBase/constants.d.ts +2 -1
- package/dist/Chart/ChartWrapper/ChartHeader.d.ts +2 -1
- package/dist/Chart/ChartWrapper/ChartMenu.d.ts +2 -1
- package/dist/Chart/ChartWrapper/style.d.ts +1 -0
- package/dist/Charts/PivotTable/types.d.ts +1 -1
- package/dist/Charts/common/hooks/useDashLine.d.ts +2 -1
- package/dist/index.es.js +7786 -7736
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +271 -271
- package/dist/index.umd.js.gz +0 -0
- package/dist/utils/downloadAsImage.d.ts +3 -3
- package/dist/utils/useTools.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ export type Tools = {
|
|
|
28
28
|
getFieldType: (fieldName: string, value?: any) => GenericDataType | undefined;
|
|
29
29
|
createLabelFormatMethod: (axesConfig: any, isMetricFolded?: boolean) => (val: any, datum: any) => any;
|
|
30
30
|
getUnit: (field: string) => string;
|
|
31
|
+
getFieldNameAlias: (field: string) => string | undefined;
|
|
31
32
|
};
|
|
32
33
|
export declare const getPolarLegendSpec: (seriesField: string | boolean | undefined, categoryField: string, tools?: Tools) => {
|
|
33
34
|
visible: boolean;
|
|
@@ -37,7 +38,7 @@ export declare const getPolarLegendSpec: (seriesField: string | boolean | undefi
|
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
|
-
export declare const getCartesianLegend: (
|
|
41
|
+
export declare const getCartesianLegend: (seriesField?: string | boolean, tools?: Tools) => any;
|
|
41
42
|
export declare const getPolarTooltipSpec: ({ categoryField, valueField, seriesField, showPercent, isMetricFolded }: PolarTooltipOptions, tools?: Tools) => {
|
|
42
43
|
mark: {
|
|
43
44
|
title: {
|
|
@@ -4,6 +4,7 @@ export interface ChartHeaderProps {
|
|
|
4
4
|
isFullScreen?: boolean;
|
|
5
5
|
theme?: string;
|
|
6
6
|
setFullScreen: (fullscreen: boolean) => void;
|
|
7
|
+
containerRef?: React.RefObject<HTMLDivElement>;
|
|
7
8
|
}
|
|
8
|
-
declare function ChartHeader({ theme, isFullScreen, setFullScreen, dataSource }: ChartHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function ChartHeader({ theme, isFullScreen, setFullScreen, dataSource, containerRef }: ChartHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export { ChartHeader };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataSource } from '../../DataView/DataSource/types';
|
|
2
2
|
interface ChartMenuProps {
|
|
3
3
|
dataSource?: DataSource | null;
|
|
4
|
+
containerRef?: React.RefObject<HTMLDivElement>;
|
|
4
5
|
}
|
|
5
|
-
declare const ChartMenu: ({ dataSource }: ChartMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const ChartMenu: ({ dataSource, containerRef }: ChartMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default ChartMenu;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const StyleWrapperInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
2
|
theme: string;
|
|
3
3
|
$hideChartHeader?: boolean;
|
|
4
|
+
$minHeight?: string;
|
|
4
5
|
style?: any;
|
|
5
6
|
}>> & string;
|
|
6
7
|
export declare const StyleChartHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
@@ -13,7 +13,7 @@ export interface PivotTableConfig extends CommonGlobalConfig {
|
|
|
13
13
|
dimensions?: string[];
|
|
14
14
|
metrics?: string[];
|
|
15
15
|
rows?: string[];
|
|
16
|
-
|
|
16
|
+
cols?: string[];
|
|
17
17
|
spec?: Record<string, any>;
|
|
18
18
|
onTreeHierarchyStateChange?: (args: any, tableInstance?: any) => void;
|
|
19
19
|
onReady?: (tableInstance: any) => void;
|
|
@@ -17,8 +17,9 @@ import type { DashSegment } from '../types';
|
|
|
17
17
|
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export declare const useDashLine: ({ data, xField, yField, getFieldType, dashSegments, metrics, }: {
|
|
20
|
+
export declare const useDashLine: ({ data, actualData, xField, yField, getFieldType, dashSegments, metrics, }: {
|
|
21
21
|
data: any[];
|
|
22
|
+
actualData?: any[];
|
|
22
23
|
xField: string;
|
|
23
24
|
yField: string;
|
|
24
25
|
getFieldType?: (fieldName: string, value?: any) => GenericDataType | undefined;
|