@advt-gpt-chart/package 0.0.10 → 0.0.20
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 +101 -0
- package/dist/{VChartBase → Chart/ChartBase}/transformed.d.ts +1 -1
- package/dist/{VChartBase → Chart/ChartBase}/types.d.ts +5 -1
- package/dist/{ChartCodeRender → Chart/ChartCodeRender}/index.d.ts +1 -0
- package/dist/{ChartCodeRender → Chart/ChartCodeRender}/type.d.ts +16 -5
- package/dist/Chart/ChartCodeRender/visChart/ChartStoreContext.d.ts +18 -0
- package/dist/Chart/ChartCodeRender/visChart/VisChart.d.ts +3 -0
- package/dist/Chart/ChartCodeRender/visChart/style.d.ts +2 -0
- package/dist/Chart/ChartCodeRender/visChart/types.d.ts +16 -0
- package/dist/Chart/ChartControllers/Filter/FilterController.d.ts +9 -0
- package/dist/Chart/ChartControllers/Filter/FilterModal.d.ts +8 -0
- package/dist/Chart/ChartControllers/Filter/FiltersController.d.ts +7 -0
- package/dist/Chart/ChartControllers/Filter/styles.d.ts +6 -0
- package/dist/Chart/ChartControllers/Filter/types.d.ts +16 -0
- package/dist/Chart/ChartControllers/Filter/utils.d.ts +33 -0
- package/dist/Chart/ChartControllers/TimeRange/AdvancedContent.d.ts +7 -0
- package/dist/Chart/ChartControllers/TimeRange/CustomContent.d.ts +7 -0
- package/dist/Chart/ChartControllers/TimeRange/TimeRangePopover.d.ts +9 -0
- package/dist/Chart/ChartControllers/TimeRange/index.d.ts +7 -0
- package/dist/Chart/ChartControllers/TimeRange/styles.d.ts +12 -0
- package/dist/Chart/ChartControllers/TimeRange/types.d.ts +55 -0
- package/dist/Chart/ChartControllers/TimeRange/utils.d.ts +77 -0
- package/dist/Chart/ChartControllers/index.d.ts +15 -0
- package/dist/Chart/ChartControllers/style.d.ts +3 -0
- package/dist/Chart/ChartControllers/utils.d.ts +12 -0
- package/dist/Chart/ChartEvents/ChartContextMenu/ChartContextMenu.d.ts +10 -0
- package/dist/Chart/ChartEvents/ChartContextMenu/styles.d.ts +1 -0
- package/dist/Chart/ChartEvents/ChartContextMenu/utils.d.ts +5 -0
- package/dist/Chart/ChartEvents/DrillBy/DrillByChart.d.ts +7 -0
- package/dist/Chart/ChartEvents/DrillBy/styles.d.ts +1 -0
- package/dist/Chart/ChartWrapper/ChartHeader.d.ts +5 -0
- package/dist/Chart/ChartWrapper/ChartWrapper.d.ts +9 -0
- package/dist/Chart/ChartWrapper/style.d.ts +9 -0
- package/dist/Chart/ChartWrapper/utils.d.ts +22 -0
- package/dist/Chart/DataSource/index.d.ts +9 -0
- package/dist/Chart/DataSource/metricInsight.d.ts +10 -0
- package/dist/Chart/DataSource/simpleJson.d.ts +0 -0
- package/dist/Chart/DataSource/types.d.ts +24 -0
- package/dist/Chart/DataSource/useChartDataQuery.d.ts +15 -0
- package/dist/Chart/Dataset/types.d.ts +7 -0
- package/dist/{Area → Charts/Area}/types.d.ts +1 -1
- package/dist/{Bar → Charts/Bar}/types.d.ts +1 -1
- package/dist/{Donut → Charts/Donut}/types.d.ts +1 -1
- package/dist/{Funnel → Charts/Funnel}/types.d.ts +1 -1
- package/dist/{Gauge → Charts/Gauge}/types.d.ts +1 -1
- package/dist/{Heatmap → Charts/Heatmap}/types.d.ts +1 -1
- package/dist/{Indicator → Charts/Indicator}/types.d.ts +2 -2
- package/dist/{Line → Charts/Line}/types.d.ts +1 -1
- package/dist/{Pie → Charts/Pie}/types.d.ts +1 -1
- package/dist/{Radar → Charts/Radar}/types.d.ts +1 -1
- package/dist/{Radar → Charts/Radar}/utils.d.ts +1 -1
- package/dist/{Rank → Charts/Rank}/types.d.ts +1 -1
- package/dist/{Scatter → Charts/Scatter}/types.d.ts +1 -1
- package/dist/{Table → Charts/Table}/types.d.ts +4 -2
- package/dist/ConfigProvider/hooks/useConfig.d.ts +14 -11
- package/dist/GPTVis/Lite.d.ts +4 -0
- package/dist/GPTVis/hooks/useContext.d.ts +1 -0
- package/dist/GPTVis/hooks/useStore.d.ts +43 -0
- package/dist/components/ErrorMessage.d.ts +7 -0
- package/dist/components/FormatOptions.d.ts +1 -0
- package/dist/components/Loading.d.ts +5 -0
- package/dist/components/VButton.d.ts +5 -0
- package/dist/components/VCalendar.d.ts +6 -0
- package/dist/components/VSelect.d.ts +5 -0
- package/dist/components/VTimePicker.d.ts +5 -0
- package/dist/export.d.ts +26 -26
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +174219 -107837
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +10208 -212
- package/dist/index.umd.js.gz +0 -0
- package/dist/locale/antdLocale.d.ts +5 -0
- package/dist/locale/dayjsLocale.d.ts +2 -0
- package/dist/locale/en-US.d.ts +95 -0
- package/dist/locale/index.d.ts +7 -0
- package/dist/locale/utils.d.ts +7 -0
- package/dist/locale/zh-CN.d.ts +95 -0
- package/dist/locale/zh-TW.d.ts +91 -0
- package/dist/services/constants.d.ts +2 -0
- package/dist/services/index.d.ts +74 -0
- package/dist/services/types.d.ts +14 -0
- package/dist/theme/antdTheme.d.ts +15 -0
- package/dist/types/chart.d.ts +49 -1
- package/dist/types/config.d.ts +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/data.d.ts +17 -0
- package/dist/utils/date.d.ts +13 -1
- package/dist/utils/downloadAsImage.d.ts +11 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/useTools.d.ts +6 -0
- package/dist/version.d.ts +1 -1
- package/package.json +17 -7
- package/dist/ChartCodeRender/Loading.d.ts +0 -2
- package/dist/ChartCodeRender/VisChart.d.ts +0 -11
- package/dist/ChartContainer/chartContextProvider.d.ts +0 -10
- package/dist/ChartContainer/index.d.ts +0 -9
- package/dist/ChartContainer/style.d.ts +0 -5
- package/dist/VChartBase/constants.d.ts +0 -54
- package/dist/index.es.js.br +0 -0
- package/dist/index.umd.js.br +0 -0
- /package/dist/{VChartBase → Chart/ChartBase}/index.d.ts +0 -0
- /package/dist/{VChartBase → Chart/ChartBase}/tooltip.d.ts +0 -0
- /package/dist/{VChartBase → Chart/ChartBase}/utils.d.ts +0 -0
- /package/dist/{Area → Charts/Area}/index.d.ts +0 -0
- /package/dist/{Bar → Charts/Bar}/index.d.ts +0 -0
- /package/dist/{Donut → Charts/Donut}/index.d.ts +0 -0
- /package/dist/{Funnel → Charts/Funnel}/index.d.ts +0 -0
- /package/dist/{Gauge → Charts/Gauge}/index.d.ts +0 -0
- /package/dist/{Heatmap → Charts/Heatmap}/index.d.ts +0 -0
- /package/dist/{Indicator → Charts/Indicator}/contants.d.ts +0 -0
- /package/dist/{Indicator → Charts/Indicator}/index.d.ts +0 -0
- /package/dist/{Indicator → Charts/Indicator}/styles.d.ts +0 -0
- /package/dist/{Line → Charts/Line}/index.d.ts +0 -0
- /package/dist/{Pie → Charts/Pie}/index.d.ts +0 -0
- /package/dist/{Radar → Charts/Radar}/index.d.ts +0 -0
- /package/dist/{Rank → Charts/Rank}/index.d.ts +0 -0
- /package/dist/{Scatter → Charts/Scatter}/index.d.ts +0 -0
- /package/dist/{Table → Charts/Table}/index.d.ts +0 -0
- /package/dist/{Table → Charts/Table}/theme.d.ts +0 -0
- /package/dist/{constants → theme}/light.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterItem } from '../ChartControllers/Filter/types';
|
|
2
|
+
import { TimeRange } from '../ChartControllers/TimeRange/types';
|
|
3
|
+
import { FieldInfoItem } from '../Dataset/types';
|
|
4
|
+
export declare const DataSourceTypes: {
|
|
5
|
+
METRIC: string;
|
|
6
|
+
SJ: string;
|
|
7
|
+
};
|
|
8
|
+
export type DataSourceType = 'metricInsight' | 'simpleJson';
|
|
9
|
+
export type DataSource = {
|
|
10
|
+
type: DataSourceType;
|
|
11
|
+
url: string;
|
|
12
|
+
params?: {
|
|
13
|
+
metricId: string[];
|
|
14
|
+
timeRange?: TimeRange;
|
|
15
|
+
timeGrain?: string;
|
|
16
|
+
filters?: FilterItem[];
|
|
17
|
+
};
|
|
18
|
+
mql?: any;
|
|
19
|
+
};
|
|
20
|
+
export type DataSourceQueryInfo = {
|
|
21
|
+
metrics?: any[];
|
|
22
|
+
dimensions?: any[];
|
|
23
|
+
fieldInfo?: FieldInfoItem[];
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QueryData } from '../ChartControllers/TimeRange/types';
|
|
2
|
+
import { DataSourceType } from './types';
|
|
3
|
+
type QueryChartData = {
|
|
4
|
+
queryData: QueryData;
|
|
5
|
+
};
|
|
6
|
+
type DrillByQueryData = QueryChartData & {
|
|
7
|
+
isHasTime: boolean;
|
|
8
|
+
setDrillLoading: (loading: boolean) => void;
|
|
9
|
+
setDrillError: (error: any) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const useChartDataQuery: (dataSourceType: DataSourceType) => {
|
|
12
|
+
queryChartData: (queryData: QueryData) => Promise<void>;
|
|
13
|
+
queryDrillByChartData: ({ queryData, setDrillLoading, setDrillError, }: DrillByQueryData) => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '
|
|
1
|
+
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
|
|
2
2
|
export type DonutDataItem = DataItem & {};
|
|
3
3
|
export type DonutConfig = BaseVChartConfig & {
|
|
4
4
|
nameField: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '
|
|
1
|
+
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
|
|
2
2
|
export type LineDataItem = DataItem & {};
|
|
3
3
|
export type FunnelConfig = BaseVChartConfig & {
|
|
4
4
|
nameField: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '
|
|
1
|
+
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
|
|
2
2
|
export type LineDataItem = DataItem & {};
|
|
3
3
|
export type GaugeConfig = BaseVChartConfig & {
|
|
4
4
|
nameField: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '
|
|
1
|
+
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
|
|
2
2
|
export type HeatmapDataItem = DataItem & {};
|
|
3
3
|
export type HeatmapConfig = BaseVChartConfig & {
|
|
4
4
|
xField: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import type { DataItem } from '
|
|
3
|
-
import { VChartGlobalConfig } from '
|
|
2
|
+
import type { DataItem } from '../../types';
|
|
3
|
+
import { VChartGlobalConfig } from '../../types/config';
|
|
4
4
|
export type TableDataItem = DataItem & {};
|
|
5
5
|
export type IndicatorConfig = VChartGlobalConfig & {
|
|
6
6
|
data: TableDataItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '
|
|
1
|
+
import type { BaseVChartConfig, BaseVChartProps, DataItem } from '../../types';
|
|
2
2
|
export type LineDataItem = DataItem & {};
|
|
3
3
|
export type RadarConfig = BaseVChartConfig & {
|
|
4
4
|
nameField: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DataItem } from "
|
|
1
|
+
import { DataItem } from "../../types";
|
|
2
2
|
export declare const findRadarMaxValues: (item: DataItem, dimensions: string[]) => number | null;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { BaseChartProps, DataItem } from '
|
|
2
|
-
import { CommonGlobalConfig } from '
|
|
1
|
+
import type { BaseChartProps, DataItem } from '../../types';
|
|
2
|
+
import { CommonGlobalConfig } from '../../types/config';
|
|
3
3
|
export type TableDataItem = DataItem & {};
|
|
4
4
|
export type TableConfig = CommonGlobalConfig & {
|
|
5
5
|
data: TableDataItem[];
|
|
6
|
+
metrics?: string[];
|
|
7
|
+
dimensions?: string[];
|
|
6
8
|
};
|
|
7
9
|
export type TableProps = BaseChartProps & Partial<TableConfig>;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { AreaConfig } from '../../Area/types';
|
|
2
|
-
import { BarConfig } from '../../Bar/types';
|
|
3
|
-
import { FunnelConfig } from '../../Funnel/types';
|
|
4
|
-
import { GaugeConfig } from '../../Gauge/types';
|
|
5
|
-
import { HeatmapConfig } from '../../Heatmap/types';
|
|
6
|
-
import { IndicatorConfig } from '../../Indicator/types';
|
|
7
|
-
import { LineConfig } from '../../Line/types';
|
|
8
|
-
import { PieConfig } from '../../Pie/types';
|
|
9
|
-
import { RadarConfig } from '../../Radar/types';
|
|
10
|
-
import { ScatterConfig } from '../../Scatter/types';
|
|
11
|
-
import { TableConfig } from '../../Table/types';
|
|
1
|
+
import { AreaConfig } from '../../Charts/Area/types';
|
|
2
|
+
import { BarConfig } from '../../Charts/Bar/types';
|
|
3
|
+
import { FunnelConfig } from '../../Charts/Funnel/types';
|
|
4
|
+
import { GaugeConfig } from '../../Charts/Gauge/types';
|
|
5
|
+
import { HeatmapConfig } from '../../Charts/Heatmap/types';
|
|
6
|
+
import { IndicatorConfig } from '../../Charts/Indicator/types';
|
|
7
|
+
import { LineConfig } from '../../Charts/Line/types';
|
|
8
|
+
import { PieConfig } from '../../Charts/Pie/types';
|
|
9
|
+
import { RadarConfig } from '../../Charts/Radar/types';
|
|
10
|
+
import { ScatterConfig } from '../../Charts/Scatter/types';
|
|
11
|
+
import { TableConfig } from '../../Charts/Table/types';
|
|
12
12
|
import { type Charts } from '../../types';
|
|
13
13
|
export declare function useComponentGlobalConfig(name: Charts): Record<string, any> | undefined;
|
|
14
14
|
export declare function useCommonGlobalConfig(name: Charts): {
|
|
15
15
|
[x: string]: any;
|
|
16
16
|
theme?: string;
|
|
17
|
+
lang?: string;
|
|
17
18
|
};
|
|
18
19
|
export type ChartConfig = AreaConfig | BarConfig | FunnelConfig | GaugeConfig | HeatmapConfig | LineConfig | PieConfig | RadarConfig | ScatterConfig | TableConfig | IndicatorConfig;
|
|
19
20
|
export declare function useVChartConfig<T1 extends ChartConfig>(name: Charts, defaultConfig: Partial<T1> | ((props: T1) => any), props: Partial<T1>): {
|
|
@@ -21,6 +22,7 @@ export declare function useVChartConfig<T1 extends ChartConfig>(name: Charts, de
|
|
|
21
22
|
[x: string]: any;
|
|
22
23
|
color?: string[];
|
|
23
24
|
theme?: string;
|
|
25
|
+
lang?: string;
|
|
24
26
|
} & Partial<T1>;
|
|
25
27
|
options: any;
|
|
26
28
|
};
|
|
@@ -28,5 +30,6 @@ export declare function useCommonConfig<T>(name: Charts, props: Partial<T>): {
|
|
|
28
30
|
transformedProps: {
|
|
29
31
|
[x: string]: any;
|
|
30
32
|
theme?: string;
|
|
33
|
+
lang?: string;
|
|
31
34
|
} & Partial<T>;
|
|
32
35
|
};
|
package/dist/GPTVis/Lite.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export interface GPTVisLiteProps extends Options {
|
|
|
13
13
|
* 用于子组件与容器组件通信
|
|
14
14
|
*/
|
|
15
15
|
eventSubs?: Record<string, (data?: any) => void>;
|
|
16
|
+
/**
|
|
17
|
+
* 渲染模式,默认为 markdown
|
|
18
|
+
*/
|
|
19
|
+
renderMode?: 'json' | 'md';
|
|
16
20
|
}
|
|
17
21
|
export { useEventPublish };
|
|
18
22
|
declare const _default: React.NamedExoticComponent<GPTVisLiteProps>;
|
|
@@ -2,6 +2,7 @@ import type EventEmitter from '@antv/event-emitter';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type GPTVisContextValue = {
|
|
4
4
|
eventBus: EventEmitter;
|
|
5
|
+
theme?: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const GPTVisContext: React.Context<GPTVisContextValue>;
|
|
7
8
|
export declare function useGPTVisContext<T = GPTVisContextValue>(): T;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ChartJson } from '../../Chart/ChartCodeRender/type';
|
|
2
|
+
import { ChartControllersState } from '../../Chart/ChartControllers';
|
|
3
|
+
import { DataSourceQueryInfo } from '../../Chart/DataSource/types';
|
|
4
|
+
import { BaseChartProps } from '../../types';
|
|
5
|
+
export interface ContextMenu {
|
|
6
|
+
visible: boolean;
|
|
7
|
+
clientX?: number;
|
|
8
|
+
clientY?: number;
|
|
9
|
+
selected?: any;
|
|
10
|
+
}
|
|
11
|
+
export interface DrillBy {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
config?: {
|
|
14
|
+
history?: any[];
|
|
15
|
+
current?: any;
|
|
16
|
+
};
|
|
17
|
+
chartState?: any;
|
|
18
|
+
}
|
|
19
|
+
export interface QueryError {
|
|
20
|
+
visible: boolean;
|
|
21
|
+
title: string;
|
|
22
|
+
message: string;
|
|
23
|
+
}
|
|
24
|
+
export interface VizChartState {
|
|
25
|
+
theme: string;
|
|
26
|
+
chartLoading?: boolean;
|
|
27
|
+
chartJson: ChartJson;
|
|
28
|
+
controllerConfig: ChartControllersState;
|
|
29
|
+
contextMenu: ContextMenu;
|
|
30
|
+
drillBy: DrillBy;
|
|
31
|
+
dataSourceQueryInfo: DataSourceQueryInfo;
|
|
32
|
+
error: QueryError;
|
|
33
|
+
setTheme: (theme: string) => void;
|
|
34
|
+
setLoading: (loading: boolean) => void;
|
|
35
|
+
setChartJson: (chartJson: ChartJson) => void;
|
|
36
|
+
setControllerConfig: (controller: ChartControllersState) => void;
|
|
37
|
+
setContextMenu: (contextMenu: ContextMenu) => void;
|
|
38
|
+
setChartDrillBy: (drillBy: DrillBy) => void;
|
|
39
|
+
setDataSourceQueryInfo: (dataSourceQueryInfo: DataSourceQueryInfo) => void;
|
|
40
|
+
setError: (error: QueryError) => void;
|
|
41
|
+
}
|
|
42
|
+
export type Props = BaseChartProps & ChartJson;
|
|
43
|
+
export declare const useChartStore: <T>(chartId: string, chartProps: Props, selector: (state: VizChartState) => T) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatOptions: (options: any[] | undefined) => any[];
|
package/dist/export.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/********** Vcharts chart **********/
|
|
3
|
-
import { default as Area } from './Area';
|
|
4
|
-
import { AreaProps } from './Area/types';
|
|
5
|
-
import { default as Bar } from './Bar';
|
|
6
|
-
import type { BarProps } from './Bar/types';
|
|
7
|
-
import { default as Donut } from './Donut';
|
|
8
|
-
import type { DonutProps } from './Donut/types';
|
|
9
|
-
import { default as Funnel } from './Funnel';
|
|
10
|
-
import type { FunnelProps } from './Funnel/types';
|
|
11
|
-
import { default as Gauge } from './Gauge';
|
|
12
|
-
import type { GaugeProps } from './Gauge/types';
|
|
13
|
-
import { default as Heatmap } from './Heatmap';
|
|
14
|
-
import type { HeatmapProps } from './Heatmap/types';
|
|
3
|
+
import { default as Area } from './Charts/Area';
|
|
4
|
+
import { AreaProps } from './Charts/Area/types';
|
|
5
|
+
import { default as Bar } from './Charts/Bar';
|
|
6
|
+
import type { BarProps } from './Charts/Bar/types';
|
|
7
|
+
import { default as Donut } from './Charts/Donut';
|
|
8
|
+
import type { DonutProps } from './Charts/Donut/types';
|
|
9
|
+
import { default as Funnel } from './Charts/Funnel';
|
|
10
|
+
import type { FunnelProps } from './Charts/Funnel/types';
|
|
11
|
+
import { default as Gauge } from './Charts/Gauge';
|
|
12
|
+
import type { GaugeProps } from './Charts/Gauge/types';
|
|
13
|
+
import { default as Heatmap } from './Charts/Heatmap';
|
|
14
|
+
import type { HeatmapProps } from './Charts/Heatmap/types';
|
|
15
15
|
/********** Indicator *********/
|
|
16
|
-
import { default as Indicator } from './Indicator';
|
|
17
|
-
import type { IndicatorProps } from './Indicator/types';
|
|
18
|
-
import { default as Line } from './Line';
|
|
19
|
-
import type { LineProps } from './Line/types';
|
|
20
|
-
import { default as Pie } from './Pie';
|
|
21
|
-
import type { PieProps } from './Pie/types';
|
|
22
|
-
import { default as Radar } from './Radar';
|
|
23
|
-
import type { RadarProps } from './Radar/types';
|
|
24
|
-
import { default as Rank } from './Rank';
|
|
25
|
-
import type { RankProps } from './Rank/types';
|
|
26
|
-
import { default as Scatter } from './Scatter';
|
|
27
|
-
import type { ScatterProps } from './Scatter/types';
|
|
16
|
+
import { default as Indicator } from './Charts/Indicator';
|
|
17
|
+
import type { IndicatorProps } from './Charts/Indicator/types';
|
|
18
|
+
import { default as Line } from './Charts/Line';
|
|
19
|
+
import type { LineProps } from './Charts/Line/types';
|
|
20
|
+
import { default as Pie } from './Charts/Pie';
|
|
21
|
+
import type { PieProps } from './Charts/Pie/types';
|
|
22
|
+
import { default as Radar } from './Charts/Radar';
|
|
23
|
+
import type { RadarProps } from './Charts/Radar/types';
|
|
24
|
+
import { default as Rank } from './Charts/Rank';
|
|
25
|
+
import type { RankProps } from './Charts/Rank/types';
|
|
26
|
+
import { default as Scatter } from './Charts/Scatter';
|
|
27
|
+
import type { ScatterProps } from './Charts/Scatter/types';
|
|
28
28
|
/********** Table **********/
|
|
29
|
-
import { default as Table } from './Table';
|
|
30
|
-
import type { TableProps } from './Table/types';
|
|
29
|
+
import { default as Table } from './Charts/Table';
|
|
30
|
+
import type { TableProps } from './Charts/Table/types';
|
|
31
31
|
/********** NTV **********/
|
|
32
32
|
export { VisText, type VisTextProps } from './Text';
|
|
33
33
|
export { Area, type AreaProps, Bar, type BarProps, Donut, type DonutProps, Funnel, type FunnelProps, Gauge, type GaugeProps, Heatmap, type HeatmapProps, Indicator, type IndicatorProps, Line, type LineProps, Pie, type PieProps, Radar, type RadarProps, Rank, type RankProps, Scatter, type ScatterProps, Table, type TableProps, };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export * from './export';
|
|
|
3
3
|
/********** export types **********/
|
|
4
4
|
export * from './types';
|
|
5
5
|
/********** export GPTVis **********/
|
|
6
|
-
export { withChartCode, withDefaultChartCode } from './ChartCodeRender';
|
|
7
|
-
export type { CodeBlockComponent, WithChartCodeOptions } from './ChartCodeRender/type';
|
|
6
|
+
export { withChartCode, withDefaultChartCode } from './Chart/ChartCodeRender';
|
|
7
|
+
export type { CodeBlockComponent, WithChartCodeOptions } from './Chart/ChartCodeRender/type';
|
|
8
8
|
export { default as ConfigProvider, type ConfigProviderProps } from './ConfigProvider';
|
|
9
9
|
export { default as GPTVis, type GPTVisProps } from './GPTVis';
|
|
10
10
|
export { default as GPTVisLite, type GPTVisLiteProps, useEventPublish } from './GPTVis/Lite';
|