@univerjs-pro/chart-ui 1.0.0-alpha.8 → 1.0.0-beta.0
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/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +232 -7
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/components/ChartEditPanel.d.ts +49 -0
- package/lib/types/components/ChartInlineTableEditor.d.ts +1 -1
- package/lib/types/components/ChartSemanticDataFields.d.ts +3 -3
- package/lib/types/components/ChartTypeOptions.d.ts +148 -2
- package/lib/types/components/FontFormatBar.d.ts +19 -1
- package/lib/types/components/chart-inline-starter-data.d.ts +16 -6
- package/lib/types/components/use-chart-panel-input-focus.d.ts +4 -0
- package/lib/types/controllers/components.controller.d.ts +4 -2
- package/lib/types/editor/ChartEditorProvider.d.ts +11 -0
- package/lib/types/editor/atoms/common/ChartFontAtom.d.ts +28 -0
- package/lib/types/editor/atoms/common/ChartNumberFormatAtom.d.ts +9 -0
- package/lib/types/editor/atoms/common/chart-number-format.d.ts +28 -0
- package/lib/types/editor/components/ChartCheckboxField.d.ts +11 -0
- package/lib/types/editor/components/ChartColorField.d.ts +13 -0
- package/lib/types/editor/components/ChartField.d.ts +15 -0
- package/lib/types/editor/components/ChartFieldGroup.d.ts +9 -0
- package/lib/types/editor/components/ChartFieldGroupTitle.d.ts +6 -0
- package/lib/types/editor/components/ChartFieldRow.d.ts +5 -0
- package/lib/types/editor/components/ChartFontField.d.ts +28 -0
- package/lib/types/editor/components/ChartImageSelectField.d.ts +13 -0
- package/lib/types/editor/components/ChartListField.d.ts +18 -0
- package/lib/types/editor/components/ChartMultiSelectField.d.ts +25 -0
- package/lib/types/editor/components/ChartNumberField.d.ts +16 -0
- package/lib/types/editor/components/ChartSelectField.d.ts +25 -0
- package/lib/types/editor/components/ChartTextField.d.ts +14 -0
- package/lib/types/editor/hooks/use-chart-config-state.d.ts +3 -0
- package/lib/types/editor/hooks/use-chart-data-mapping-fields.d.ts +5 -0
- package/lib/types/editor/hooks/use-chart-editor-model.d.ts +3 -0
- package/lib/types/editor/hooks/use-chart-runtime-context.d.ts +13 -0
- package/lib/types/editor/routing/chart-edit-panel-route.d.ts +21 -0
- package/lib/types/editor/sections/ChartAxisSections.d.ts +63 -0
- package/lib/types/editor/sections/ChartIndicatorLineSection.d.ts +20 -0
- package/lib/types/editor/sections/ChartLegendSection.d.ts +27 -0
- package/lib/types/editor/sections/ChartLineAndAreaSection.d.ts +11 -0
- package/lib/types/editor/sections/ChartParetoSeriesSection.d.ts +26 -0
- package/lib/types/editor/sections/ChartSeriesSection.d.ts +60 -0
- package/lib/types/editor/sections/ChartSetupSections.d.ts +21 -0
- package/lib/types/editor/sections/ChartStyleSection.d.ts +15 -0
- package/lib/types/editor/sections/ChartTitleSections.d.ts +50 -0
- package/lib/types/editor/sections/ChartTrendlineSection.d.ts +18 -0
- package/lib/types/editor/sections/chart-capabilities.d.ts +10 -0
- package/lib/types/editor/sections/chart-style-options.d.ts +86 -0
- package/lib/types/editor/sections/specific-section/ChartCandlestickStyleSection.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/ChartFunnelStyleSection.d.ts +10 -0
- package/lib/types/editor/sections/specific-section/ChartHeatmapStyleSection.d.ts +10 -0
- package/lib/types/editor/sections/specific-section/ChartHistogramStyleSection.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/ChartPieStyleSection.d.ts +21 -0
- package/lib/types/editor/sections/specific-section/ChartRadarStyleSection.d.ts +9 -0
- package/lib/types/editor/sections/specific-section/ChartRelationStyleSection.d.ts +17 -0
- package/lib/types/editor/sections/specific-section/ChartTreemapStyleSection.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/ChartTypeSpecificSections.d.ts +9 -0
- package/lib/types/editor/sections/specific-section/ChartWaterfallStyleSection.d.ts +26 -0
- package/lib/types/editor/sections/specific-section/ChartWordCloudStyleSection.d.ts +21 -0
- package/lib/types/editor/sections/specific-section/ChordDataMappingAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/ChordLabelAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/ChordLayoutAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/ChordRibbonAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/GaugeDataMappingAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/GaugeModeAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/GaugePointerAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/GaugeProgressAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/GaugeRangesAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/GaugeScaleAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/SunburstCenterLabelAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/SunburstDataMappingAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/SunburstLabelAtom.d.ts +1 -0
- package/lib/types/editor/sections/specific-section/chord-field-options.d.ts +2 -0
- package/lib/types/editor/sections/specific-section/chord-style.d.ts +16 -0
- package/lib/types/editor/sections/specific-section/gauge-style.d.ts +10 -0
- package/lib/types/editor/sections/specific-section/sunburst-label.d.ts +8 -0
- package/lib/types/editor/utils/chart-runtime-axis.d.ts +3 -0
- package/lib/types/float-menu/ChartElementFloatMenu.d.ts +2 -2
- package/lib/types/float-menu/chart-element-selection.d.ts +7 -0
- package/lib/types/float-menu/constants.d.ts +72 -77
- package/lib/types/float-menu/create-chart-element-float-menu-adapter.d.ts +10 -0
- package/lib/types/float-menu/pie-mark-patch.d.ts +8 -0
- package/lib/types/float-menu/types.d.ts +28 -9
- package/lib/types/index.d.ts +68 -3
- package/lib/types/locale/en-US.d.ts +481 -58
- package/lib/types/services/chart-host-adapter.d.ts +12 -0
- package/lib/types/services/chart-snapshot-queue.d.ts +58 -0
- package/lib/types/services/chart-ui.service.d.ts +19 -0
- package/lib/types/services/chart-view-state-projector.d.ts +15 -0
- package/lib/types/services/chart-view-state-registry.d.ts +11 -0
- package/lib/types/services/chart-view-state.d.ts +118 -0
- package/lib/types/services/inline-chart-creation.d.ts +42 -0
- package/lib/types/services/register-chart-config-states.d.ts +3 -0
- package/lib/types/services/register-chart-view-states/chart-specific.d.ts +4 -0
- package/lib/types/services/register-chart-view-states/semantic.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -9
- package/lib/types/components/ChartEditPanelScaffold.d.ts +0 -32
- package/lib/types/components/ChartEditorFields.d.ts +0 -68
- package/lib/types/components/ChartPresentationFields.d.ts +0 -9
- package/lib/types/components/index.d.ts +0 -19
- package/lib/types/float-menu/index.d.ts +0 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { IChartFieldControlProps } from './ChartField';
|
|
3
|
+
export interface IChartMultiSelectFieldOption<T extends string> {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
value: T;
|
|
7
|
+
}
|
|
8
|
+
export interface IChartMultiSelectFieldProps<T extends string> {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
error?: ReactNode;
|
|
11
|
+
help?: ReactNode;
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
onChange: (value: T[]) => void;
|
|
14
|
+
options: ReadonlyArray<IChartMultiSelectFieldOption<T>>;
|
|
15
|
+
value: T[];
|
|
16
|
+
}
|
|
17
|
+
export interface IChartMultiSelectControlProps<T extends string> {
|
|
18
|
+
controlProps?: IChartFieldControlProps;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onChange: (value: T[]) => void;
|
|
21
|
+
options: ReadonlyArray<IChartMultiSelectFieldOption<T>>;
|
|
22
|
+
value: T[];
|
|
23
|
+
}
|
|
24
|
+
export declare function ChartMultiSelectControl<T extends string>(props: IChartMultiSelectControlProps<T>): import("react").JSX.Element;
|
|
25
|
+
export declare function ChartMultiSelectField<T extends string>(props: IChartMultiSelectFieldProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface IChartNumberFieldProps {
|
|
3
|
+
allowClear?: boolean;
|
|
4
|
+
allowEmpty?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
error?: ReactNode;
|
|
7
|
+
help?: ReactNode;
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
max?: number;
|
|
10
|
+
min?: number;
|
|
11
|
+
onChange: (value: number | null) => void;
|
|
12
|
+
precision?: number;
|
|
13
|
+
step?: number;
|
|
14
|
+
value: number | null;
|
|
15
|
+
}
|
|
16
|
+
export declare function ChartNumberField(props: IChartNumberFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { IChartFieldControlProps } from './ChartField';
|
|
3
|
+
export interface IChartSelectFieldOption<T extends string> {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
value: T;
|
|
7
|
+
}
|
|
8
|
+
export interface IChartSelectFieldProps<T extends string> {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
error?: ReactNode;
|
|
11
|
+
help?: ReactNode;
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
onChange: (value: T) => void;
|
|
14
|
+
options: ReadonlyArray<IChartSelectFieldOption<T>>;
|
|
15
|
+
value: T;
|
|
16
|
+
}
|
|
17
|
+
export interface IChartSelectControlProps<T extends string> {
|
|
18
|
+
controlProps?: IChartFieldControlProps;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onChange: (value: T) => void;
|
|
21
|
+
options: ReadonlyArray<IChartSelectFieldOption<T>>;
|
|
22
|
+
value: T;
|
|
23
|
+
}
|
|
24
|
+
export declare function ChartSelectControl<T extends string>(props: IChartSelectControlProps<T>): import("react").JSX.Element;
|
|
25
|
+
export declare function ChartSelectField<T extends string>(props: IChartSelectFieldProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type ChartTextFieldCommitMode = 'blur' | 'change';
|
|
3
|
+
export interface IChartTextFieldProps {
|
|
4
|
+
allowClear?: boolean;
|
|
5
|
+
commitMode: ChartTextFieldCommitMode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
help?: ReactNode;
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function ChartTextField(props: IChartTextFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ChartViewStateName, IChartViewStateMap } from '../../services/chart-view-state';
|
|
2
|
+
export declare function useChartConfigState<V, K extends ChartViewStateName = ChartViewStateName>(key: K, defaultValue: V): [V, (value: V) => void];
|
|
3
|
+
export declare function useChartConfigState<K extends ChartViewStateName>(key: K): [IChartViewStateMap[K] | undefined, (value: IChartViewStateMap[K]) => void];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function useChartRuntimeContext(): {
|
|
2
|
+
direction: "ltr" | "rtl";
|
|
3
|
+
themeColors?: string[];
|
|
4
|
+
axes: import("@univerjs-pro/engine-chart").IRuntimeAxis[];
|
|
5
|
+
themeInfo: import("@univerjs-pro/engine-chart").IEchartTheme;
|
|
6
|
+
wordCloudRenderConfig?: import("@univerjs-pro/engine-chart").IWordCloudRenderConfig;
|
|
7
|
+
addWatermark?: boolean;
|
|
8
|
+
layoutInset?: number;
|
|
9
|
+
getRenderColor(color: string): string;
|
|
10
|
+
isDarkMode: boolean;
|
|
11
|
+
hasSecondaryAxis: boolean;
|
|
12
|
+
localeTexts: import("@univerjs-pro/engine-chart").IChartLocaleTexts;
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IChartElementHit } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ChartAxisId, ChartElementConfigTarget, ChartTitleKey } from '../../float-menu/types';
|
|
3
|
+
import { ChartEditPanelSection, ChartEditPanelTab } from '../../float-menu/types';
|
|
4
|
+
export interface IChartEditPanelRoute {
|
|
5
|
+
axisId?: ChartAxisId;
|
|
6
|
+
section?: ChartEditPanelSection;
|
|
7
|
+
seriesId?: string;
|
|
8
|
+
tab: ChartEditPanelTab;
|
|
9
|
+
titleKey?: ChartTitleKey;
|
|
10
|
+
}
|
|
11
|
+
export interface IChartPanelRouteState {
|
|
12
|
+
chartId: string;
|
|
13
|
+
route: IChartEditPanelRoute | null;
|
|
14
|
+
}
|
|
15
|
+
export interface IChartSelectedElementState {
|
|
16
|
+
chartId: string;
|
|
17
|
+
element: IChartElementHit;
|
|
18
|
+
route: IChartEditPanelRoute;
|
|
19
|
+
target: ChartElementConfigTarget;
|
|
20
|
+
}
|
|
21
|
+
export declare function resolveChartEditPanelRoute(target: ChartElementConfigTarget): IChartEditPanelRoute | undefined;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ChartNumberFormatFieldComponent } from '../atoms/common/ChartNumberFormatAtom';
|
|
2
|
+
import type { ChartAxisKey } from '../utils/chart-runtime-axis';
|
|
3
|
+
import { ChartAxisTickPosition } from '@univerjs-pro/engine-chart';
|
|
4
|
+
export interface IChartAxisDefaultValues {
|
|
5
|
+
color: string;
|
|
6
|
+
dateAxisRotation: number;
|
|
7
|
+
gridlineWidth: number;
|
|
8
|
+
labelFontSize: number;
|
|
9
|
+
labelRotation: number;
|
|
10
|
+
labelVisible: boolean;
|
|
11
|
+
primaryGridLineVisible: boolean;
|
|
12
|
+
reverse: boolean;
|
|
13
|
+
secondaryGridLineVisible: boolean;
|
|
14
|
+
tickLength: string;
|
|
15
|
+
tickPosition: ChartAxisTickPosition;
|
|
16
|
+
tickVisible: boolean;
|
|
17
|
+
tickWidth: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const DEFAULT_CHART_AXIS_VALUES: IChartAxisDefaultValues;
|
|
20
|
+
export declare function ChartAxisLineVisibilityField(props: {
|
|
21
|
+
axis: ChartAxisKey;
|
|
22
|
+
defaultValues: IChartAxisDefaultValues;
|
|
23
|
+
}): import("react").JSX.Element | null;
|
|
24
|
+
export declare function ChartAxisLabelVisibilityField(props: {
|
|
25
|
+
axis: ChartAxisKey;
|
|
26
|
+
defaultValues: IChartAxisDefaultValues;
|
|
27
|
+
}): import("react").JSX.Element | null;
|
|
28
|
+
export declare function ChartAxisReverseField(props: {
|
|
29
|
+
axis: ChartAxisKey;
|
|
30
|
+
defaultValues: IChartAxisDefaultValues;
|
|
31
|
+
}): import("react").JSX.Element | null;
|
|
32
|
+
export declare function ChartAxisBoundsFields(props: {
|
|
33
|
+
axis: ChartAxisKey;
|
|
34
|
+
}): import("react").JSX.Element | null;
|
|
35
|
+
export declare function ChartAxisFormatTextField(props: {
|
|
36
|
+
axis: ChartAxisKey;
|
|
37
|
+
}): import("react").JSX.Element | null;
|
|
38
|
+
export declare function ChartAxisLabelStyleFields(props: {
|
|
39
|
+
axis: ChartAxisKey;
|
|
40
|
+
defaultValues: IChartAxisDefaultValues;
|
|
41
|
+
}): import("react").JSX.Element | null;
|
|
42
|
+
export declare function ChartAxisTickVisibilityField(props: {
|
|
43
|
+
axis: ChartAxisKey;
|
|
44
|
+
defaultValues: IChartAxisDefaultValues;
|
|
45
|
+
}): import("react").JSX.Element | null;
|
|
46
|
+
export declare function ChartGridlineVisibilityField(props: {
|
|
47
|
+
axis: ChartAxisKey;
|
|
48
|
+
defaultValues: IChartAxisDefaultValues;
|
|
49
|
+
label?: string;
|
|
50
|
+
}): import("react").JSX.Element | null;
|
|
51
|
+
export declare function ChartGridlineWidthField(props: {
|
|
52
|
+
axis: ChartAxisKey;
|
|
53
|
+
defaultValues: IChartAxisDefaultValues;
|
|
54
|
+
label?: string;
|
|
55
|
+
}): import("react").JSX.Element | null;
|
|
56
|
+
export declare function ChartAxisSection(props: {
|
|
57
|
+
axis: ChartAxisKey;
|
|
58
|
+
defaultValues: IChartAxisDefaultValues;
|
|
59
|
+
NumberFormatField?: ChartNumberFormatFieldComponent;
|
|
60
|
+
}): import("react").JSX.Element | null;
|
|
61
|
+
export declare function ChartGridlinesAndTicksSection(props: {
|
|
62
|
+
defaultValues: IChartAxisDefaultValues;
|
|
63
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IChartAxisPointerSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export interface IChartIndicatorLineDefaultValues {
|
|
3
|
+
indicatorLabelBackground: string;
|
|
4
|
+
indicatorLabelTextColor: string;
|
|
5
|
+
indicatorLineColor: string;
|
|
6
|
+
indicatorLineType: NonNullable<IChartAxisPointerSpec['indicatorLineType']>;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_CHART_INDICATOR_LINE_VALUES: IChartIndicatorLineDefaultValues;
|
|
9
|
+
export declare function ChartIndicatorLineColorField(props: {
|
|
10
|
+
defaultValues: IChartIndicatorLineDefaultValues;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export declare function ChartIndicatorLineTypeField(props: {
|
|
13
|
+
defaultValues: IChartIndicatorLineDefaultValues;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
export declare function ChartIndicatorLabelColorFields(props: {
|
|
16
|
+
defaultValues: IChartIndicatorLineDefaultValues;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
export declare function ChartIndicatorLineSection(props: {
|
|
19
|
+
defaultValues: IChartIndicatorLineDefaultValues;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { IChartFontValue } from '../components/ChartFontField';
|
|
3
|
+
import { ChartVisualMapType, LegendPositionEnum, SelectModeEnum } from '@univerjs-pro/engine-chart';
|
|
4
|
+
export interface IChartLegendDefaultValues {
|
|
5
|
+
font: IChartFontValue & {
|
|
6
|
+
color: string;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
};
|
|
9
|
+
position: LegendPositionEnum;
|
|
10
|
+
selectMode: SelectModeEnum;
|
|
11
|
+
visualMapType: ChartVisualMapType;
|
|
12
|
+
wrap: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_CHART_LEGEND_VALUES: IChartLegendDefaultValues;
|
|
15
|
+
export declare function ChartLegendRoot(props: {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
defaultValues: IChartLegendDefaultValues;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function ChartLegendPositionField(): import("react").JSX.Element;
|
|
20
|
+
export declare function ChartLegendWrapField(): import("react").JSX.Element | null;
|
|
21
|
+
export declare function ChartLegendVisualMapField(): import("react").JSX.Element | null;
|
|
22
|
+
export declare function ChartLegendSelectModeField(): import("react").JSX.Element | null;
|
|
23
|
+
export declare function ChartLegendFontFields(): import("react").JSX.Element | null;
|
|
24
|
+
export declare function ChartLegendFontSizeField(): import("react").JSX.Element | null;
|
|
25
|
+
export declare function ChartLegendSection(props: {
|
|
26
|
+
defaultValues: IChartLegendDefaultValues;
|
|
27
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AreaLineStyle, InvalidValueType } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export type LineStyleControl = 'segmented' | 'select';
|
|
3
|
+
export interface IChartLineAndAreaDefaultValues {
|
|
4
|
+
invalidValueStrategy: InvalidValueType;
|
|
5
|
+
lineStyle: AreaLineStyle;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_CHART_LINE_AND_AREA_VALUES: IChartLineAndAreaDefaultValues;
|
|
8
|
+
export declare function ChartLineAndAreaSection(props: {
|
|
9
|
+
defaultValues: IChartLineAndAreaDefaultValues;
|
|
10
|
+
lineStyleControl: LineStyleControl;
|
|
11
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LinePointShape } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ChartNumberFormatFieldComponent } from '../atoms/common/ChartNumberFormatAtom';
|
|
3
|
+
import { ChartBorderDashType, LabelContentType, SeriesLabelPosition } from '@univerjs-pro/engine-chart';
|
|
4
|
+
export type ChartParetoSeriesTarget = 'barStyle' | 'cumulativeLineStyle';
|
|
5
|
+
export interface IChartParetoDefaultValues {
|
|
6
|
+
borderDashType: ChartBorderDashType;
|
|
7
|
+
borderOpacity: number;
|
|
8
|
+
borderWidth: number;
|
|
9
|
+
includeZeroValues: boolean;
|
|
10
|
+
labelContentType: LabelContentType;
|
|
11
|
+
labelPosition: SeriesLabelPosition;
|
|
12
|
+
labelVisible: boolean;
|
|
13
|
+
lineDashType: ChartBorderDashType;
|
|
14
|
+
lineOpacity: number;
|
|
15
|
+
lineWidth: number;
|
|
16
|
+
pointShape: LinePointShape;
|
|
17
|
+
pointSize: number;
|
|
18
|
+
textColor: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const DEFAULT_CHART_PARETO_VALUES: IChartParetoDefaultValues;
|
|
21
|
+
export declare function ChartParetoSeriesSection(props: {
|
|
22
|
+
defaultValues: IChartParetoDefaultValues;
|
|
23
|
+
NumberFormatField?: ChartNumberFormatFieldComponent;
|
|
24
|
+
showDataPointEditor: boolean;
|
|
25
|
+
target: ChartParetoSeriesTarget;
|
|
26
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { LinePointShape } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { IChartEditorSeriesState } from '../../services/chart-view-state';
|
|
4
|
+
import type { ChartNumberFormatFieldComponent } from '../atoms/common/ChartNumberFormatAtom';
|
|
5
|
+
import { ChartBorderDashType, ChartSeriesTypeString, LabelContentType, SeriesLabelPosition } from '@univerjs-pro/engine-chart';
|
|
6
|
+
export interface IChartSeriesDefaultValues {
|
|
7
|
+
borderDashType: ChartBorderDashType;
|
|
8
|
+
borderOpacity: number;
|
|
9
|
+
borderWidth: number;
|
|
10
|
+
color: string;
|
|
11
|
+
labelContentType: LabelContentType;
|
|
12
|
+
labelFontSize: number;
|
|
13
|
+
labelPosition: SeriesLabelPosition;
|
|
14
|
+
labelVisible: boolean;
|
|
15
|
+
lineOrAreaBorderWidth: number;
|
|
16
|
+
pointShape: LinePointShape;
|
|
17
|
+
pointSize: number;
|
|
18
|
+
radarFillOpacity: number;
|
|
19
|
+
radarBorderWidth: number;
|
|
20
|
+
rightAxis: {
|
|
21
|
+
ltr: boolean;
|
|
22
|
+
rtl: boolean;
|
|
23
|
+
};
|
|
24
|
+
scatterPointSize: number;
|
|
25
|
+
seriesFillOpacity: number;
|
|
26
|
+
}
|
|
27
|
+
export declare const DEFAULT_CHART_SERIES_VALUES: IChartSeriesDefaultValues;
|
|
28
|
+
export declare function resolveCombinationSeriesType(series: readonly IChartEditorSeriesState[], selector: number | null): ChartSeriesTypeString | '';
|
|
29
|
+
export declare function ChartSeriesDataPointFields(): import("react").JSX.Element | null;
|
|
30
|
+
export declare function ChartSeriesSelector(): import("react").JSX.Element;
|
|
31
|
+
export declare function ChartSeriesTypeField(props: {
|
|
32
|
+
individualOnly?: boolean;
|
|
33
|
+
}): import("react").JSX.Element | null;
|
|
34
|
+
export declare function ChartSeriesRightAxisField(): import("react").JSX.Element;
|
|
35
|
+
export declare function ChartSeriesFillFields(): import("react").JSX.Element;
|
|
36
|
+
export declare function ChartSeriesBorderFields(props: {
|
|
37
|
+
showColor?: boolean;
|
|
38
|
+
showOpacity?: boolean;
|
|
39
|
+
}): import("react").JSX.Element;
|
|
40
|
+
export declare function ChartSeriesPointFields(props: {
|
|
41
|
+
showColor?: boolean;
|
|
42
|
+
}): import("react").JSX.Element;
|
|
43
|
+
export declare function ChartSeriesLabelVisibilityField(): import("react").JSX.Element;
|
|
44
|
+
export declare function ChartSeriesLabelContentField(): import("react").JSX.Element;
|
|
45
|
+
export declare function ChartSeriesLabelPositionField(): import("react").JSX.Element;
|
|
46
|
+
export declare function ChartSeriesLabelFormatField(): import("react").JSX.Element;
|
|
47
|
+
export declare function ChartSeriesLabelFontFields(): import("react").JSX.Element;
|
|
48
|
+
export declare function ChartSeriesLabelFontSizeField(): import("react").JSX.Element;
|
|
49
|
+
export declare function ChartSeriesDataLabelFields(): import("react").JSX.Element;
|
|
50
|
+
export declare function ChartSeriesRoot(props: {
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
defaultValues: IChartSeriesDefaultValues;
|
|
53
|
+
NumberFormatField?: ChartNumberFormatFieldComponent;
|
|
54
|
+
selectedSeriesId?: string;
|
|
55
|
+
}): import("react").JSX.Element;
|
|
56
|
+
export declare function ChartSeriesSection(props: {
|
|
57
|
+
defaultValues: IChartSeriesDefaultValues;
|
|
58
|
+
NumberFormatField?: ChartNumberFormatFieldComponent;
|
|
59
|
+
selectedSeriesId?: string;
|
|
60
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IChartSelectOption } from '../../components/ChartTypeOptions';
|
|
2
|
+
import { ChartTypeBits, WaterfallStackTypeEnum } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IChartTypeFieldProps {
|
|
4
|
+
onChange?: (chartType: ChartTypeBits) => void;
|
|
5
|
+
options: readonly IChartSelectOption[];
|
|
6
|
+
}
|
|
7
|
+
export declare function ChartTypeField(props: IChartTypeFieldProps): import("react").JSX.Element;
|
|
8
|
+
export declare function ChartThemeField(): import("react").JSX.Element;
|
|
9
|
+
export declare function ChartGradientFillField(props: {
|
|
10
|
+
visible: boolean;
|
|
11
|
+
}): import("react").JSX.Element | null;
|
|
12
|
+
export declare function ChartStackField(): import("react").JSX.Element | null;
|
|
13
|
+
export interface IChartWaterfallSetupDefaultValues {
|
|
14
|
+
stackType: WaterfallStackTypeEnum;
|
|
15
|
+
useSubtotal: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_CHART_WATERFALL_SETUP_VALUES: IChartWaterfallSetupDefaultValues;
|
|
18
|
+
export interface IChartWaterfallSetupFieldsProps {
|
|
19
|
+
defaultValues: IChartWaterfallSetupDefaultValues;
|
|
20
|
+
}
|
|
21
|
+
export declare function ChartWaterfallSetupFields(props: IChartWaterfallSetupFieldsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface IChartStyleSectionProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
defaultValues: IChartStyleDefaultValues;
|
|
5
|
+
hostBorder?: ReactNode;
|
|
6
|
+
showBodyFont: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface IChartStyleDefaultValues {
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
bodyFontColor: string;
|
|
11
|
+
bodyFontSize: number;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_CHART_STYLE_VALUES: IChartStyleDefaultValues;
|
|
15
|
+
export declare function ChartStyleSection(props: IChartStyleSectionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { IChartAxesSpec, LabelAlignEnum } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { ChartTitleKey as ChartTitleKeyValue } from '../../float-menu/types';
|
|
4
|
+
import type { IChartFontValue } from '../components/ChartFontField';
|
|
5
|
+
import type { ChartTextFieldCommitMode } from '../components/ChartTextField';
|
|
6
|
+
import { AxisAlignEnum, TitlePositionEnum } from '@univerjs-pro/engine-chart';
|
|
7
|
+
type ChartAxisKey = keyof IChartAxesSpec;
|
|
8
|
+
export interface IChartTitleDefaultValues {
|
|
9
|
+
axisTitleAlignment: AxisAlignEnum;
|
|
10
|
+
axisTitleFont: IChartFontValue;
|
|
11
|
+
mainTitleFont: IChartFontValue<LabelAlignEnum>;
|
|
12
|
+
position: TitlePositionEnum;
|
|
13
|
+
subtitleFont: IChartFontValue<LabelAlignEnum>;
|
|
14
|
+
}
|
|
15
|
+
export declare const DEFAULT_CHART_TITLE_VALUES: IChartTitleDefaultValues;
|
|
16
|
+
export declare function ChartMainTitleFields(props: {
|
|
17
|
+
commitMode: ChartTextFieldCommitMode;
|
|
18
|
+
defaultValues: IChartTitleDefaultValues;
|
|
19
|
+
showFont: boolean;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
export declare function ChartSubtitleFields(props: {
|
|
22
|
+
commitMode: ChartTextFieldCommitMode;
|
|
23
|
+
defaultValues: IChartTitleDefaultValues;
|
|
24
|
+
showFont: boolean;
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
|
+
export declare function ChartAxisTitleFields(props: {
|
|
27
|
+
axis: ChartAxisKey;
|
|
28
|
+
commitMode: ChartTextFieldCommitMode;
|
|
29
|
+
defaultValues: IChartTitleDefaultValues;
|
|
30
|
+
showAlignment: boolean;
|
|
31
|
+
showFont: boolean;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
export declare function ChartTitleFontSizeFields(props: {
|
|
34
|
+
defaultValues: IChartTitleDefaultValues;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
36
|
+
export declare function ChartTitleTargetRoot(props: {
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
defaultValues: IChartTitleDefaultValues;
|
|
39
|
+
selectedTitleKey?: ChartTitleKeyValue;
|
|
40
|
+
}): import("react").JSX.Element;
|
|
41
|
+
export declare function ChartTitleTargetSelect(): import("react").JSX.Element;
|
|
42
|
+
export declare function ChartSelectedTitleFields(props: {
|
|
43
|
+
commitMode: ChartTextFieldCommitMode;
|
|
44
|
+
}): import("react").JSX.Element;
|
|
45
|
+
export declare function ChartTitlesSection(props: {
|
|
46
|
+
commitMode: ChartTextFieldCommitMode;
|
|
47
|
+
defaultValues: IChartTitleDefaultValues;
|
|
48
|
+
selectedTitleKey?: ChartTitleKeyValue;
|
|
49
|
+
}): import("react").JSX.Element;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IChartTrendlineSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartTrendlineType } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IChartTrendlineDefaultValues {
|
|
4
|
+
color: string;
|
|
5
|
+
dashType: NonNullable<IChartTrendlineSpec['dashType']>;
|
|
6
|
+
opacity: number;
|
|
7
|
+
order: number;
|
|
8
|
+
period: number;
|
|
9
|
+
showFormula: boolean;
|
|
10
|
+
showR2: boolean;
|
|
11
|
+
textColor: string;
|
|
12
|
+
type: ChartTrendlineType;
|
|
13
|
+
width: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const DEFAULT_CHART_TRENDLINE_VALUES: IChartTrendlineDefaultValues;
|
|
16
|
+
export declare function ChartTrendlineSection(props: {
|
|
17
|
+
defaultValues: IChartTrendlineDefaultValues;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChartTypeBits } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export declare enum ChartEditorCapability {
|
|
3
|
+
Axes = 1,
|
|
4
|
+
GeneralSeries = 2,
|
|
5
|
+
IndicatorLine = 4,
|
|
6
|
+
Legend = 8
|
|
7
|
+
}
|
|
8
|
+
export declare function chartTypeSupportsCapability(chartType: ChartTypeBits, capability: ChartEditorCapability): boolean;
|
|
9
|
+
export declare function chartTypeSupportsLineAndAreaStyle(chartType: ChartTypeBits): boolean;
|
|
10
|
+
export declare function chartTypeSupportsPlotArea(chartType: ChartTypeBits): boolean;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ChartBorderDashType, LinePointShape } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export declare const CHART_BORDER_DASH_OPTION_DEFINITIONS: readonly [{
|
|
3
|
+
readonly value: ChartBorderDashType.Solid;
|
|
4
|
+
readonly labelKey: "chart-ui.series.solid";
|
|
5
|
+
}, {
|
|
6
|
+
readonly value: ChartBorderDashType.Dashed;
|
|
7
|
+
readonly labelKey: "chart-ui.common.dashed";
|
|
8
|
+
}, {
|
|
9
|
+
readonly value: ChartBorderDashType.Dotted;
|
|
10
|
+
readonly labelKey: "chart-ui.common.dotted";
|
|
11
|
+
}];
|
|
12
|
+
export declare const CHART_POINT_SHAPE_OPTION_DEFINITIONS: readonly [{
|
|
13
|
+
readonly value: LinePointShape.Circle;
|
|
14
|
+
readonly labelKey: "chart-ui.common.circle";
|
|
15
|
+
}, {
|
|
16
|
+
readonly value: LinePointShape.Square;
|
|
17
|
+
readonly labelKey: "chart-ui.series.square";
|
|
18
|
+
}, {
|
|
19
|
+
readonly value: LinePointShape.Triangle;
|
|
20
|
+
readonly labelKey: "chart-ui.common.triangle";
|
|
21
|
+
}, {
|
|
22
|
+
readonly value: LinePointShape.Diamond;
|
|
23
|
+
readonly labelKey: "chart-ui.common.diamond";
|
|
24
|
+
}, {
|
|
25
|
+
readonly value: LinePointShape.Rect;
|
|
26
|
+
readonly labelKey: "chart-ui.series.rect";
|
|
27
|
+
}, {
|
|
28
|
+
readonly value: LinePointShape.RoundRect;
|
|
29
|
+
readonly labelKey: "chart-ui.series.roundRect";
|
|
30
|
+
}, {
|
|
31
|
+
readonly value: LinePointShape.Pin;
|
|
32
|
+
readonly labelKey: "chart-ui.series.pin";
|
|
33
|
+
}, {
|
|
34
|
+
readonly value: LinePointShape.Arrow;
|
|
35
|
+
readonly labelKey: "chart-ui.common.arrow";
|
|
36
|
+
}, {
|
|
37
|
+
readonly value: LinePointShape.None;
|
|
38
|
+
readonly labelKey: "chart-ui.common.none";
|
|
39
|
+
}, {
|
|
40
|
+
readonly value: LinePointShape.EmptyCircle;
|
|
41
|
+
readonly labelKey: "chart-ui.series.emptyCircle";
|
|
42
|
+
}, {
|
|
43
|
+
readonly value: LinePointShape.EmptySquare;
|
|
44
|
+
readonly labelKey: "chart-ui.series.emptySquare";
|
|
45
|
+
}, {
|
|
46
|
+
readonly value: LinePointShape.EmptyTriangle;
|
|
47
|
+
readonly labelKey: "chart-ui.series.emptyTriangle";
|
|
48
|
+
}, {
|
|
49
|
+
readonly value: LinePointShape.EmptyDiamond;
|
|
50
|
+
readonly labelKey: "chart-ui.series.emptyDiamond";
|
|
51
|
+
}, {
|
|
52
|
+
readonly value: LinePointShape.EmptyRect;
|
|
53
|
+
readonly labelKey: "chart-ui.series.emptyRect";
|
|
54
|
+
}, {
|
|
55
|
+
readonly value: LinePointShape.EmptyRoundRect;
|
|
56
|
+
readonly labelKey: "chart-ui.series.emptyRoundRect";
|
|
57
|
+
}, {
|
|
58
|
+
readonly value: LinePointShape.EmptyPin;
|
|
59
|
+
readonly labelKey: "chart-ui.series.emptyPin";
|
|
60
|
+
}, {
|
|
61
|
+
readonly value: LinePointShape.EmptyArrow;
|
|
62
|
+
readonly labelKey: "chart-ui.series.emptyArrow";
|
|
63
|
+
}];
|
|
64
|
+
export declare const CHART_DEFAULT_OPTION_VALUE = "__default__";
|
|
65
|
+
export declare const CHART_DEFAULT_AXIS_LABEL_ROTATION = 0;
|
|
66
|
+
export declare const CHART_DEFAULT_GRIDLINE_WIDTH = 1;
|
|
67
|
+
export declare const CHART_EDITOR_MIN_FONT_SIZE = 8;
|
|
68
|
+
export declare const CHART_NON_NEGATIVE_VALUE_MIN = 0;
|
|
69
|
+
export declare const CHART_OPACITY_RANGE: {
|
|
70
|
+
readonly max: 1;
|
|
71
|
+
readonly min: 0;
|
|
72
|
+
readonly step: 0.1;
|
|
73
|
+
};
|
|
74
|
+
export declare const CHART_PIE_HOLE_VALUES: readonly [0, 0.25, 0.5, 0.75];
|
|
75
|
+
export declare function buildChartAxisLabelRotationOptions(): {
|
|
76
|
+
label: string;
|
|
77
|
+
value: string;
|
|
78
|
+
}[];
|
|
79
|
+
export declare function buildChartTrendlineOrderOptions(): {
|
|
80
|
+
label: string;
|
|
81
|
+
value: string;
|
|
82
|
+
}[];
|
|
83
|
+
export declare function buildChartGridlineWidthOptions(): {
|
|
84
|
+
label: string;
|
|
85
|
+
value: string;
|
|
86
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChartCandlestickStyleSection(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type FunnelGapControl = 'number' | 'select';
|
|
2
|
+
export interface IChartFunnelDefaultValues {
|
|
3
|
+
gap: number;
|
|
4
|
+
useAbsoluteValue: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_CHART_FUNNEL_VALUES: IChartFunnelDefaultValues;
|
|
7
|
+
export declare function ChartFunnelStyleSection(props: {
|
|
8
|
+
defaultValues: IChartFunnelDefaultValues;
|
|
9
|
+
gapControl: FunnelGapControl;
|
|
10
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SeriesLabelPosition } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export interface IChartHeatmapDefaultValues {
|
|
3
|
+
labelPosition: SeriesLabelPosition;
|
|
4
|
+
labelVisible: boolean;
|
|
5
|
+
textColor: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_CHART_HEATMAP_VALUES: IChartHeatmapDefaultValues;
|
|
8
|
+
export declare function ChartHeatmapStyleSection(props: {
|
|
9
|
+
defaultValues: IChartHeatmapDefaultValues;
|
|
10
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChartHistogramStyleSection(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ChartNumberFormatFieldComponent } from '../../atoms/common/ChartNumberFormatAtom';
|
|
2
|
+
import { LabelContentType, PieLabelPosition } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IChartPieDefaultValues {
|
|
4
|
+
borderColor: string;
|
|
5
|
+
doughnutHole: number;
|
|
6
|
+
hasPaddingAngle: boolean;
|
|
7
|
+
isHalfPie: boolean;
|
|
8
|
+
labelContentType: LabelContentType;
|
|
9
|
+
labelPosition: PieLabelPosition;
|
|
10
|
+
labelVisible: boolean;
|
|
11
|
+
pieHole: number;
|
|
12
|
+
rosePie: boolean;
|
|
13
|
+
showLabelLine: boolean;
|
|
14
|
+
textColor: string;
|
|
15
|
+
valueScale: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_CHART_PIE_VALUES: IChartPieDefaultValues;
|
|
18
|
+
export declare function ChartPieStyleSection(props: {
|
|
19
|
+
defaultValues: IChartPieDefaultValues;
|
|
20
|
+
NumberFormatField?: ChartNumberFormatFieldComponent;
|
|
21
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RadarShape } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export interface IChartRadarDefaultValues {
|
|
3
|
+
fill: boolean;
|
|
4
|
+
shape: RadarShape;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_CHART_RADAR_VALUES: IChartRadarDefaultValues;
|
|
7
|
+
export declare function ChartRadarStyleSection(props: {
|
|
8
|
+
defaultValues: IChartRadarDefaultValues;
|
|
9
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LinePointShape } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { RelationChartLayoutEnum } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IChartRelationDefaultValues {
|
|
4
|
+
circularLabelRotation: boolean;
|
|
5
|
+
emphasisEnabled: boolean;
|
|
6
|
+
force: {
|
|
7
|
+
gravity: number;
|
|
8
|
+
repulsion: number;
|
|
9
|
+
};
|
|
10
|
+
layout: RelationChartLayoutEnum;
|
|
11
|
+
nodeShape: LinePointShape;
|
|
12
|
+
useValueAsSymbolSize: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_CHART_RELATION_VALUES: IChartRelationDefaultValues;
|
|
15
|
+
export declare function ChartRelationStyleSection(props: {
|
|
16
|
+
defaultValues: IChartRelationDefaultValues;
|
|
17
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChartTreemapStyleSection(): import("react").JSX.Element | null;
|