@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,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function ChartTypeSpecificDataSection(): import("react").JSX.Element | null;
|
|
3
|
+
export declare function ChartTypeSpecificSetupSection(): import("react").JSX.Element | null;
|
|
4
|
+
export interface IChartCommonDataMappingSectionProps {
|
|
5
|
+
categoryToggleLabel?: string;
|
|
6
|
+
orientationControl?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChartCommonDataMappingSection(props: IChartCommonDataMappingSectionProps): import("react").JSX.Element | null;
|
|
9
|
+
export declare function ChartTypeSpecificStyleSection(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ChartNumberFormatFieldComponent } from '../../atoms/common/ChartNumberFormatAtom';
|
|
2
|
+
import { ChartBorderDashType, ChartWaterfallStyleTarget, LabelContentType, SeriesLabelPosition } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export interface IChartWaterfallStyleDefaultValues {
|
|
4
|
+
borderDashType: ChartBorderDashType;
|
|
5
|
+
borderOpacity: number;
|
|
6
|
+
borderWidth: number;
|
|
7
|
+
connector: boolean;
|
|
8
|
+
fillOpacity: number;
|
|
9
|
+
labelContentType: LabelContentType;
|
|
10
|
+
labelPosition: SeriesLabelPosition;
|
|
11
|
+
labelVisible: boolean;
|
|
12
|
+
textColor: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_CHART_WATERFALL_STYLE_VALUES: IChartWaterfallStyleDefaultValues;
|
|
15
|
+
export interface IChartWaterfallBucketNameContext {
|
|
16
|
+
isAllSeries: boolean;
|
|
17
|
+
seriesName: string;
|
|
18
|
+
target: ChartWaterfallStyleTarget;
|
|
19
|
+
}
|
|
20
|
+
export declare function ChartWaterfallStyleSection(props: {
|
|
21
|
+
defaultValues: IChartWaterfallStyleDefaultValues;
|
|
22
|
+
getDefaultBucketName?: (context: IChartWaterfallBucketNameContext) => string;
|
|
23
|
+
NumberFormatField?: ChartNumberFormatFieldComponent;
|
|
24
|
+
selectedSeriesId?: string;
|
|
25
|
+
showBucketName?: (context: IChartWaterfallBucketNameContext) => boolean;
|
|
26
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { WordCloudShapeEnum } from '@univerjs-pro/engine-chart';
|
|
3
|
+
export declare function ChartWordCloudRoot(props: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element | null;
|
|
6
|
+
export interface IChartWordCloudDefaultValues {
|
|
7
|
+
repeat: boolean;
|
|
8
|
+
shape: WordCloudShapeEnum;
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_CHART_WORD_CLOUD_VALUES: IChartWordCloudDefaultValues;
|
|
11
|
+
export declare function ChartWordCloudShapeField(props: {
|
|
12
|
+
defaultValues: IChartWordCloudDefaultValues;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
export declare function ChartWordCloudMaskImageField(): import("react").JSX.Element;
|
|
15
|
+
export declare function ChartWordCloudMaskImageIdField(): import("react").JSX.Element;
|
|
16
|
+
export declare function ChartWordCloudRepeatField(props: {
|
|
17
|
+
defaultValues: IChartWordCloudDefaultValues;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function ChartWordCloudStyleSection(props: {
|
|
20
|
+
defaultValues: IChartWordCloudDefaultValues;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChordDataMappingAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChordLabelAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChordLayoutAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ChordRibbonAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GaugeDataMappingAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GaugeModeAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GaugePointerAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GaugeProgressAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GaugeRangesAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function GaugeRangeScaleAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SunburstCenterLabelAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SunburstDataMappingAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SunburstLabelAtom(): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DeepNullish, IChartChordSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
/** Shared numeric constraints for Chord ratio fields. */
|
|
3
|
+
export declare const CHORD_RATIO_FIELD_CONSTRAINTS: {
|
|
4
|
+
readonly min: 0;
|
|
5
|
+
readonly max: 1;
|
|
6
|
+
readonly precision: 2;
|
|
7
|
+
readonly step: 0.01;
|
|
8
|
+
};
|
|
9
|
+
export declare const CHORD_OPACITY_FIELD_CONSTRAINTS: {
|
|
10
|
+
readonly min: 0;
|
|
11
|
+
readonly max: 1;
|
|
12
|
+
readonly precision: 2;
|
|
13
|
+
readonly step: 0.05;
|
|
14
|
+
};
|
|
15
|
+
export declare function resolveEffectiveChordStyle(style: DeepNullish<IChartChordSpec> | undefined): IChartChordSpec;
|
|
16
|
+
export declare function hasInvalidChordRadii(style: DeepNullish<IChartChordSpec> | undefined): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DeepNullish, IChartGaugeRangeSpec, IChartGaugeSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
/** Resolves nullable editor patches against the canonical Gauge defaults. */
|
|
3
|
+
export declare function resolveEffectiveGaugeStyle(style: DeepNullish<IChartGaugeSpec> | undefined): IChartGaugeSpec;
|
|
4
|
+
export declare function mergeGaugeStylePatch(style: DeepNullish<IChartGaugeSpec> | undefined, patch: DeepNullish<IChartGaugeSpec>): DeepNullish<IChartGaugeSpec>;
|
|
5
|
+
export declare function areGaugeScaleBoundsValid(scale: DeepNullish<IChartGaugeSpec['scale']>): scale is NonNullable<IChartGaugeSpec['scale']> & {
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function areGaugeRangesValid(ranges: readonly IChartGaugeRangeSpec[], scale: DeepNullish<IChartGaugeSpec['scale']>): boolean;
|
|
10
|
+
export declare function createNextGaugeRange(style: DeepNullish<IChartGaugeSpec> | undefined): IChartGaugeRangeSpec | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DeepNullish, IChartSunburstCenterLabelSpec, IChartSunburstLabelSpec, IChartSunburstSpec } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { LabelContentType } from '@univerjs-pro/engine-chart';
|
|
3
|
+
/** Authored label content options supported by Sunburst. */
|
|
4
|
+
export declare const SUNBURST_LABEL_CONTENT_TYPES: readonly [LabelContentType.CategoryName, LabelContentType.Value];
|
|
5
|
+
export declare function resolveEffectiveSunburstLabel(style: DeepNullish<IChartSunburstSpec> | undefined): IChartSunburstLabelSpec;
|
|
6
|
+
export declare function resolveEffectiveSunburstCenterLabel(style: DeepNullish<IChartSunburstSpec> | undefined): IChartSunburstCenterLabelSpec;
|
|
7
|
+
export declare function getSunburstLabelContentValues(contentType: LabelContentType | null | undefined): string[];
|
|
8
|
+
export declare function mergeSunburstLabelContentTypes(values: string[]): LabelContentType | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ChartDirection, IChartAxesSpec, IRuntimeAxis } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export type ChartAxisKey = keyof IChartAxesSpec;
|
|
3
|
+
export declare function getChartEditorRuntimeAxis(runtimeAxes: IRuntimeAxis[], direction: ChartDirection, axis: ChartAxisKey): IRuntimeAxis | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IChartElementFloatMenuContext } from './types';
|
|
3
3
|
export declare function ChartElementFloatMenu(props: {
|
|
4
4
|
popup: {
|
|
5
|
-
extraProps?:
|
|
5
|
+
extraProps?: IChartElementFloatMenuContext;
|
|
6
6
|
};
|
|
7
7
|
}): ReactElement | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChartModel, IChartElementHit } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ChartElementConfigTarget } from './types';
|
|
3
|
+
export interface IChartElementSelection {
|
|
4
|
+
target: ChartElementConfigTarget;
|
|
5
|
+
showFloatMenu: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function resolveChartElementSelection(chartModel: ChartModel, hit: IChartElementHit): IChartElementSelection | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AxisAlignEnum, LegendPositionEnum, PieLabelPosition, SelectModeEnum, TitlePositionEnum } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import { ChartViewStateKey } from '../services/chart-view-state';
|
|
2
3
|
export declare const CHART_ELEMENT_FLOAT_MENU_COMPONENT = "chart.element.float-menu";
|
|
3
4
|
export declare const CHART_ELEMENT_FLOAT_MENU_OFFSET: [number, number];
|
|
4
5
|
export declare const CHART_ELEMENT_FLOAT_MENU_EMPTY_VALUE = "";
|
|
@@ -10,19 +11,13 @@ export declare const CHART_ELEMENT_FLOAT_MENU_VISUAL_MAP_TYPES: {
|
|
|
10
11
|
readonly PIECEWISE: "piecewise";
|
|
11
12
|
};
|
|
12
13
|
export declare const CHART_ELEMENT_FLOAT_MENU_STATE_KEYS: {
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly VISUAL_MAP_TYPE: "visualMapType";
|
|
21
|
-
readonly USE_DATE_AXIS: "useDateAxis";
|
|
22
|
-
readonly X_AXIS_OPTIONS: "xAxisOptions";
|
|
23
|
-
readonly Y_AXIS_OPTIONS: "yAxisOptions";
|
|
24
|
-
readonly RIGHT_Y_AXIS_OPTIONS: "rightYAxisOptions";
|
|
25
|
-
readonly RUNTIME_AXES: "runtimeAxes";
|
|
14
|
+
readonly TITLE: ChartViewStateKey.Title;
|
|
15
|
+
readonly SUBTITLE: ChartViewStateKey.Subtitle;
|
|
16
|
+
readonly LEGEND: ChartViewStateKey.Legend;
|
|
17
|
+
readonly PIE: ChartViewStateKey.Pie;
|
|
18
|
+
readonly SERIES: ChartViewStateKey.Series;
|
|
19
|
+
readonly PARETO: ChartViewStateKey.Pareto;
|
|
20
|
+
readonly AXES: ChartViewStateKey.Axes;
|
|
26
21
|
};
|
|
27
22
|
export declare const CHART_ELEMENT_FLOAT_MENU_CLASS_NAMES: {
|
|
28
23
|
readonly ROOT: "\n univer-inline-flex univer-h-fit univer-w-fit univer-max-w-[760px] univer-flex-col univer-items-start\n univer-gap-1.5 univer-rounded-md univer-bg-white univer-px-3 univer-py-2\n univer-text-sm univer-text-gray-900\n univer-shadow-md\n dark:!univer-bg-gray-900 dark:!univer-text-white\n ";
|
|
@@ -41,158 +36,158 @@ export declare const CHART_ELEMENT_FLOAT_MENU_CLASS_NAMES: {
|
|
|
41
36
|
export declare const CHART_ELEMENT_FLOAT_MENU_LOCALE_KEYS: {
|
|
42
37
|
readonly MENU_TITLE: {
|
|
43
38
|
readonly CHART: "chart-ui.floatMenu.menuTitle.chart";
|
|
44
|
-
readonly CHART_TITLE: "chart-ui.
|
|
45
|
-
readonly SUBTITLE: "chart-ui.
|
|
39
|
+
readonly CHART_TITLE: "chart-ui.common.chartTitle";
|
|
40
|
+
readonly SUBTITLE: "chart-ui.common.subtitle";
|
|
46
41
|
readonly AXIS_TITLE: "chart-ui.floatMenu.menuTitle.axisTitle";
|
|
47
|
-
readonly LEGEND: "chart-ui.
|
|
48
|
-
readonly HORIZONTAL_AXIS: "chart-ui.
|
|
49
|
-
readonly VERTICAL_AXIS: "chart-ui.
|
|
50
|
-
readonly RIGHT_VERTICAL_AXIS: "chart-ui.
|
|
42
|
+
readonly LEGEND: "chart-ui.common.legend";
|
|
43
|
+
readonly HORIZONTAL_AXIS: "chart-ui.common.horizontalAxis";
|
|
44
|
+
readonly VERTICAL_AXIS: "chart-ui.common.verticalAxis";
|
|
45
|
+
readonly RIGHT_VERTICAL_AXIS: "chart-ui.common.rightVerticalAxis";
|
|
51
46
|
readonly GRIDLINE: "chart-ui.floatMenu.menuTitle.gridline";
|
|
52
47
|
readonly TICK: "chart-ui.floatMenu.menuTitle.tick";
|
|
53
48
|
readonly MARK: "chart-ui.floatMenu.menuTitle.mark";
|
|
54
|
-
readonly SERIES: "chart-ui.
|
|
55
|
-
readonly DATA_POINT: "chart-ui.
|
|
49
|
+
readonly SERIES: "chart-ui.common.series";
|
|
50
|
+
readonly DATA_POINT: "chart-ui.common.dataPoint";
|
|
56
51
|
readonly DATA_LABEL: "chart-ui.floatMenu.menuTitle.dataLabel";
|
|
57
52
|
};
|
|
58
53
|
readonly FIELD: {
|
|
59
|
-
readonly TITLE: "chart-ui.
|
|
60
|
-
readonly SUBTITLE: "chart-ui.
|
|
54
|
+
readonly TITLE: "chart-ui.common.title";
|
|
55
|
+
readonly SUBTITLE: "chart-ui.common.subtitle";
|
|
61
56
|
readonly POSITION: "chart-ui.floatMenu.field.position";
|
|
62
57
|
readonly SIZE: "chart-ui.floatMenu.field.size";
|
|
63
58
|
readonly ALIGN: "chart-ui.floatMenu.field.align";
|
|
64
|
-
readonly MODE: "chart-ui.
|
|
59
|
+
readonly MODE: "chart-ui.common.mode";
|
|
65
60
|
readonly MAP: "chart-ui.floatMenu.field.map";
|
|
66
61
|
readonly ROTATE: "chart-ui.floatMenu.field.rotate";
|
|
67
|
-
readonly MIN: "chart-ui.
|
|
68
|
-
readonly MAX: "chart-ui.
|
|
69
|
-
readonly COLOR: "chart-ui.
|
|
70
|
-
readonly BORDER_COLOR: "chart-ui.
|
|
71
|
-
readonly OPACITY: "chart-ui.
|
|
72
|
-
readonly LABEL_POSITION: "chart-ui.
|
|
62
|
+
readonly MIN: "chart-ui.common.min";
|
|
63
|
+
readonly MAX: "chart-ui.common.max";
|
|
64
|
+
readonly COLOR: "chart-ui.common.color";
|
|
65
|
+
readonly BORDER_COLOR: "chart-ui.common.borderColor";
|
|
66
|
+
readonly OPACITY: "chart-ui.common.opacity";
|
|
67
|
+
readonly LABEL_POSITION: "chart-ui.common.labelPosition";
|
|
73
68
|
readonly LABEL_TEXT: "chart-ui.floatMenu.field.labelText";
|
|
74
69
|
readonly TITLE_TEXT: "chart-ui.floatMenu.field.titleText";
|
|
75
70
|
};
|
|
76
71
|
readonly ACTION: {
|
|
77
72
|
readonly MORE: "chart-ui.floatMenu.action.more";
|
|
78
|
-
readonly BOLD: "chart-ui.
|
|
79
|
-
readonly ITALIC: "chart-ui.
|
|
73
|
+
readonly BOLD: "chart-ui.common.bold";
|
|
74
|
+
readonly ITALIC: "chart-ui.common.italic";
|
|
80
75
|
};
|
|
81
76
|
readonly CONTROL: {
|
|
82
77
|
readonly LABELS: "chart-ui.floatMenu.control.labels";
|
|
83
78
|
readonly LINE: "chart-ui.floatMenu.control.line";
|
|
84
79
|
readonly REVERSE: "chart-ui.floatMenu.control.reverse";
|
|
85
|
-
readonly DATE: "chart-ui.
|
|
80
|
+
readonly DATE: "chart-ui.common.date";
|
|
86
81
|
};
|
|
87
82
|
readonly OPTION: {
|
|
88
83
|
readonly TEXT_ALIGN: {
|
|
89
|
-
readonly LEFT: "chart-ui.
|
|
90
|
-
readonly CENTER: "chart-ui.
|
|
91
|
-
readonly RIGHT: "chart-ui.
|
|
84
|
+
readonly LEFT: "chart-ui.common.textAlign.left";
|
|
85
|
+
readonly CENTER: "chart-ui.common.textAlign.center";
|
|
86
|
+
readonly RIGHT: "chart-ui.common.textAlign.right";
|
|
92
87
|
};
|
|
93
88
|
readonly POSITION: {
|
|
94
|
-
readonly TOP: "chart-ui.
|
|
95
|
-
readonly BOTTOM: "chart-ui.
|
|
96
|
-
readonly LEFT: "chart-ui.
|
|
97
|
-
readonly RIGHT: "chart-ui.
|
|
98
|
-
readonly HIDE: "chart-ui.
|
|
99
|
-
readonly INSIDE: "chart-ui.
|
|
100
|
-
readonly OUTSIDE: "chart-ui.
|
|
89
|
+
readonly TOP: "chart-ui.common.position.top";
|
|
90
|
+
readonly BOTTOM: "chart-ui.common.position.bottom";
|
|
91
|
+
readonly LEFT: "chart-ui.common.position.left";
|
|
92
|
+
readonly RIGHT: "chart-ui.common.position.right";
|
|
93
|
+
readonly HIDE: "chart-ui.common.position.hide";
|
|
94
|
+
readonly INSIDE: "chart-ui.common.position.inside";
|
|
95
|
+
readonly OUTSIDE: "chart-ui.common.position.outside";
|
|
101
96
|
};
|
|
102
97
|
readonly LABEL_TEXT: {
|
|
103
|
-
readonly CATEGORY: "chart-ui.
|
|
104
|
-
readonly VALUE: "chart-ui.
|
|
105
|
-
readonly PERCENTAGE: "chart-ui.
|
|
98
|
+
readonly CATEGORY: "chart-ui.common.category";
|
|
99
|
+
readonly VALUE: "chart-ui.common.value";
|
|
100
|
+
readonly PERCENTAGE: "chart-ui.common.percentage";
|
|
106
101
|
};
|
|
107
102
|
readonly AXIS_ALIGN: {
|
|
108
|
-
readonly START: "chart-ui.
|
|
109
|
-
readonly CENTER: "chart-ui.
|
|
110
|
-
readonly END: "chart-ui.
|
|
103
|
+
readonly START: "chart-ui.common.axisAlign.start";
|
|
104
|
+
readonly CENTER: "chart-ui.common.axisAlign.center";
|
|
105
|
+
readonly END: "chart-ui.common.axisAlign.end";
|
|
111
106
|
};
|
|
112
107
|
readonly LEGEND_SELECT_MODE: {
|
|
113
|
-
readonly SINGLE: "chart-ui.
|
|
114
|
-
readonly MULTIPLE: "chart-ui.
|
|
115
|
-
readonly CLOSE: "chart-ui.
|
|
108
|
+
readonly SINGLE: "chart-ui.common.legendSelectMode.single";
|
|
109
|
+
readonly MULTIPLE: "chart-ui.common.legendSelectMode.multiple";
|
|
110
|
+
readonly CLOSE: "chart-ui.common.legendSelectMode.disabled";
|
|
116
111
|
};
|
|
117
112
|
readonly VISUAL_MAP_TYPE: {
|
|
118
|
-
readonly CONTINUOUS: "chart-ui.
|
|
119
|
-
readonly PIECEWISE: "chart-ui.
|
|
113
|
+
readonly CONTINUOUS: "chart-ui.common.visualMapType.continuous";
|
|
114
|
+
readonly PIECEWISE: "chart-ui.common.visualMapType.piecewise";
|
|
120
115
|
};
|
|
121
116
|
};
|
|
122
117
|
};
|
|
123
118
|
export declare const CHART_ELEMENT_FLOAT_MENU_TITLE_POSITION_OPTION_DEFINITIONS: readonly [{
|
|
124
|
-
readonly labelKey: "chart-ui.
|
|
119
|
+
readonly labelKey: "chart-ui.common.position.top";
|
|
125
120
|
readonly value: TitlePositionEnum.Top;
|
|
126
121
|
}, {
|
|
127
|
-
readonly labelKey: "chart-ui.
|
|
122
|
+
readonly labelKey: "chart-ui.common.position.bottom";
|
|
128
123
|
readonly value: TitlePositionEnum.Bottom;
|
|
129
124
|
}, {
|
|
130
|
-
readonly labelKey: "chart-ui.
|
|
125
|
+
readonly labelKey: "chart-ui.common.position.left";
|
|
131
126
|
readonly value: TitlePositionEnum.Left;
|
|
132
127
|
}, {
|
|
133
|
-
readonly labelKey: "chart-ui.
|
|
128
|
+
readonly labelKey: "chart-ui.common.position.right";
|
|
134
129
|
readonly value: TitlePositionEnum.Right;
|
|
135
130
|
}, {
|
|
136
|
-
readonly labelKey: "chart-ui.
|
|
131
|
+
readonly labelKey: "chart-ui.common.position.hide";
|
|
137
132
|
readonly value: TitlePositionEnum.Hide;
|
|
138
133
|
}];
|
|
139
134
|
export declare const CHART_ELEMENT_FLOAT_MENU_PIE_LABEL_POSITION_OPTION_DEFINITIONS: readonly [{
|
|
140
|
-
readonly labelKey: "chart-ui.
|
|
135
|
+
readonly labelKey: "chart-ui.common.position.inside";
|
|
141
136
|
readonly value: PieLabelPosition.Inside;
|
|
142
137
|
}, {
|
|
143
|
-
readonly labelKey: "chart-ui.
|
|
138
|
+
readonly labelKey: "chart-ui.common.position.outside";
|
|
144
139
|
readonly value: PieLabelPosition.Outside;
|
|
145
140
|
}];
|
|
146
141
|
export declare const CHART_ELEMENT_FLOAT_MENU_PIE_LABEL_TEXT_OPTION_DEFINITIONS: readonly [{
|
|
147
|
-
readonly labelKey: "chart-ui.
|
|
142
|
+
readonly labelKey: "chart-ui.common.category";
|
|
148
143
|
readonly value: string;
|
|
149
144
|
}, {
|
|
150
|
-
readonly labelKey: "chart-ui.
|
|
145
|
+
readonly labelKey: "chart-ui.common.value";
|
|
151
146
|
readonly value: string;
|
|
152
147
|
}, {
|
|
153
|
-
readonly labelKey: "chart-ui.
|
|
148
|
+
readonly labelKey: "chart-ui.common.percentage";
|
|
154
149
|
readonly value: string;
|
|
155
150
|
}];
|
|
156
151
|
export declare const CHART_ELEMENT_FLOAT_MENU_AXIS_TITLE_ALIGN_OPTION_DEFINITIONS: readonly [{
|
|
157
|
-
readonly labelKey: "chart-ui.
|
|
152
|
+
readonly labelKey: "chart-ui.common.axisAlign.start";
|
|
158
153
|
readonly value: AxisAlignEnum.Start;
|
|
159
154
|
}, {
|
|
160
|
-
readonly labelKey: "chart-ui.
|
|
155
|
+
readonly labelKey: "chart-ui.common.axisAlign.center";
|
|
161
156
|
readonly value: AxisAlignEnum.Center;
|
|
162
157
|
}, {
|
|
163
|
-
readonly labelKey: "chart-ui.
|
|
158
|
+
readonly labelKey: "chart-ui.common.axisAlign.end";
|
|
164
159
|
readonly value: AxisAlignEnum.End;
|
|
165
160
|
}];
|
|
166
161
|
export declare const CHART_ELEMENT_FLOAT_MENU_LEGEND_POSITION_OPTION_DEFINITIONS: readonly [{
|
|
167
|
-
readonly labelKey: "chart-ui.
|
|
162
|
+
readonly labelKey: "chart-ui.common.position.top";
|
|
168
163
|
readonly value: LegendPositionEnum.Top;
|
|
169
164
|
}, {
|
|
170
|
-
readonly labelKey: "chart-ui.
|
|
165
|
+
readonly labelKey: "chart-ui.common.position.bottom";
|
|
171
166
|
readonly value: LegendPositionEnum.Bottom;
|
|
172
167
|
}, {
|
|
173
|
-
readonly labelKey: "chart-ui.
|
|
168
|
+
readonly labelKey: "chart-ui.common.position.left";
|
|
174
169
|
readonly value: LegendPositionEnum.Left;
|
|
175
170
|
}, {
|
|
176
|
-
readonly labelKey: "chart-ui.
|
|
171
|
+
readonly labelKey: "chart-ui.common.position.right";
|
|
177
172
|
readonly value: LegendPositionEnum.Right;
|
|
178
173
|
}, {
|
|
179
|
-
readonly labelKey: "chart-ui.
|
|
174
|
+
readonly labelKey: "chart-ui.common.position.hide";
|
|
180
175
|
readonly value: LegendPositionEnum.Hide;
|
|
181
176
|
}];
|
|
182
177
|
export declare const CHART_ELEMENT_FLOAT_MENU_LEGEND_SELECT_MODE_OPTION_DEFINITIONS: readonly [{
|
|
183
|
-
readonly labelKey: "chart-ui.
|
|
178
|
+
readonly labelKey: "chart-ui.common.legendSelectMode.single";
|
|
184
179
|
readonly value: SelectModeEnum.Single;
|
|
185
180
|
}, {
|
|
186
|
-
readonly labelKey: "chart-ui.
|
|
181
|
+
readonly labelKey: "chart-ui.common.legendSelectMode.multiple";
|
|
187
182
|
readonly value: SelectModeEnum.Multiple;
|
|
188
183
|
}, {
|
|
189
|
-
readonly labelKey: "chart-ui.
|
|
184
|
+
readonly labelKey: "chart-ui.common.legendSelectMode.disabled";
|
|
190
185
|
readonly value: SelectModeEnum.Close;
|
|
191
186
|
}];
|
|
192
187
|
export declare const CHART_ELEMENT_FLOAT_MENU_VISUAL_MAP_TYPE_OPTION_DEFINITIONS: readonly [{
|
|
193
|
-
readonly labelKey: "chart-ui.
|
|
188
|
+
readonly labelKey: "chart-ui.common.visualMapType.continuous";
|
|
194
189
|
readonly value: "continuous";
|
|
195
190
|
}, {
|
|
196
|
-
readonly labelKey: "chart-ui.
|
|
191
|
+
readonly labelKey: "chart-ui.common.visualMapType.piecewise";
|
|
197
192
|
readonly value: "piecewise";
|
|
198
193
|
}];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IChartHostAdapter } from '../services/chart-host-adapter';
|
|
2
|
+
import type { IChartUIService } from '../services/chart-ui.service';
|
|
3
|
+
import type { IChartElementFloatMenuAdapter, IChartElementFloatMenuContext } from './types';
|
|
4
|
+
export interface ICreateChartElementFloatMenuAdapterOptions {
|
|
5
|
+
chartUIService: IChartUIService;
|
|
6
|
+
getHostAdapter(context: IChartElementFloatMenuContext): IChartHostAdapter | undefined;
|
|
7
|
+
close?(): void;
|
|
8
|
+
openFullPanel?(context: IChartElementFloatMenuContext): void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createChartElementFloatMenuAdapter(options: ICreateChartElementFloatMenuAdapterOptions): IChartElementFloatMenuAdapter;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChartPendingConfig } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { ChartMarkDirectEditTarget } from './types';
|
|
3
|
+
export interface IPieDirectStylePatch {
|
|
4
|
+
color?: string | null;
|
|
5
|
+
fillOpacity?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildPieDirectStylePatch(pie: ChartPendingConfig['pie'] | undefined, directEdit: ChartMarkDirectEditTarget | undefined, patch: IPieDirectStylePatch): ChartPendingConfig['pie'] | undefined;
|
|
8
|
+
export declare function buildPieConnectorPatch(pie: ChartPendingConfig['pie'] | undefined, patch: NonNullable<NonNullable<NonNullable<ChartPendingConfig['pie']>['composite']>['secondaryPlot']>['connector']): ChartPendingConfig['pie'];
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { IChartElementHit, ParetoSeriesPart, WaterfallSeriesTypeEnum } from '@univerjs-pro/engine-chart';
|
|
2
2
|
import type { IDisposable } from '@univerjs/core';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ChartViewStateName } from '../services/chart-view-state';
|
|
4
4
|
export declare enum ChartMarkDirectEditKind {
|
|
5
5
|
SeriesStyle = "seriesStyle",
|
|
6
6
|
PieStyle = "pieStyle",
|
|
7
|
+
PieSliceStyle = "pieSliceStyle",
|
|
8
|
+
PieAggregateStyle = "pieAggregateStyle",
|
|
9
|
+
PieConnectorStyle = "pieConnectorStyle",
|
|
7
10
|
ParetoStyle = "paretoStyle",
|
|
8
11
|
WaterfallStyle = "waterfallStyle"
|
|
9
12
|
}
|
|
@@ -22,6 +25,13 @@ export type ChartMarkDirectEditTarget = {
|
|
|
22
25
|
seriesIndex: number;
|
|
23
26
|
} | {
|
|
24
27
|
kind: `${ChartMarkDirectEditKind.PieStyle}`;
|
|
28
|
+
} | {
|
|
29
|
+
kind: `${ChartMarkDirectEditKind.PieSliceStyle}`;
|
|
30
|
+
sourcePointIndex: number;
|
|
31
|
+
} | {
|
|
32
|
+
kind: `${ChartMarkDirectEditKind.PieAggregateStyle}`;
|
|
33
|
+
} | {
|
|
34
|
+
kind: `${ChartMarkDirectEditKind.PieConnectorStyle}`;
|
|
25
35
|
} | {
|
|
26
36
|
kind: `${ChartMarkDirectEditKind.ParetoStyle}`;
|
|
27
37
|
part: `${ParetoSeriesPart}`;
|
|
@@ -49,7 +59,20 @@ export declare enum ChartEditPanelSection {
|
|
|
49
59
|
ParetoLineSeries = "paretoLineSeries",
|
|
50
60
|
WaterfallSeries = "waterfallSeries",
|
|
51
61
|
Relation = "relation",
|
|
52
|
-
WordCloud = "wordCloud"
|
|
62
|
+
WordCloud = "wordCloud",
|
|
63
|
+
Radar = "radar",
|
|
64
|
+
Funnel = "funnel",
|
|
65
|
+
Heatmap = "heatmap",
|
|
66
|
+
LineAndArea = "lineAndArea",
|
|
67
|
+
GridlinesAndTicks = "gridlinesAndTicks",
|
|
68
|
+
IndicatorLine = "indicatorLine",
|
|
69
|
+
Trendline = "trendline",
|
|
70
|
+
Candlestick = "candlestick",
|
|
71
|
+
Histogram = "histogram",
|
|
72
|
+
Treemap = "treemap",
|
|
73
|
+
Sunburst = "sunburst",
|
|
74
|
+
Gauge = "gauge",
|
|
75
|
+
Chord = "chord"
|
|
53
76
|
}
|
|
54
77
|
export declare const ChartTitleKey: {
|
|
55
78
|
readonly Title: "title";
|
|
@@ -109,9 +132,7 @@ export type ChartElementConfigTarget = {
|
|
|
109
132
|
seriesIndex?: number;
|
|
110
133
|
dataIndex?: number;
|
|
111
134
|
};
|
|
112
|
-
export
|
|
113
|
-
export interface IChartElementFloatMenuExtraProps {
|
|
114
|
-
host: 'sheet' | 'slide' | 'board';
|
|
135
|
+
export interface IChartElementFloatMenuContext {
|
|
115
136
|
unitId: string;
|
|
116
137
|
subUnitId?: string;
|
|
117
138
|
chartId: string;
|
|
@@ -120,16 +141,14 @@ export interface IChartElementFloatMenuExtraProps {
|
|
|
120
141
|
target: ChartElementConfigTarget;
|
|
121
142
|
adapterKey: string;
|
|
122
143
|
}
|
|
123
|
-
export interface IChartElementFloatMenuContext extends IChartElementFloatMenuExtraProps {
|
|
124
|
-
}
|
|
125
144
|
export interface IChartElementFloatMenuObservable<T> {
|
|
126
145
|
subscribe(next: (value: T) => void): {
|
|
127
146
|
unsubscribe(): void;
|
|
128
147
|
};
|
|
129
148
|
}
|
|
130
149
|
export interface IChartElementFloatMenuAdapter {
|
|
131
|
-
getState<T>(context: IChartElementFloatMenuContext, key:
|
|
132
|
-
setState<T>(context: IChartElementFloatMenuContext, key:
|
|
150
|
+
getState<T>(context: IChartElementFloatMenuContext, key: ChartViewStateName): IChartElementFloatMenuObservable<T | undefined> | undefined;
|
|
151
|
+
setState<T>(context: IChartElementFloatMenuContext, key: ChartViewStateName, patch: T): void;
|
|
133
152
|
close?(): void;
|
|
134
153
|
openFullPanel?(context: IChartElementFloatMenuContext): void;
|
|
135
154
|
}
|