@univerjs-pro/engine-chart 0.17.0 → 0.18.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/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/model/chart-data-operators/build-chart-data.d.ts +2 -2
- package/lib/types/model/chart-data-operators/operators.d.ts +3 -3
- package/lib/types/model/chart-model.d.ts +587 -585
- package/lib/types/model/chart-theme.service.d.ts +3 -2
- package/lib/types/model/constants/build-in-theme/default.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/theme-util.d.ts +2 -2
- package/lib/types/model/constants/build-in-theme/univer-gradient1.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer-gradient2.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer-gradient3.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer-gradient4.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer-gradient5.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer-gradient6.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer1.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer2.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer3.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer4.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer5.d.ts +1 -1
- package/lib/types/model/constants/build-in-theme/univer6.d.ts +1 -1
- package/lib/types/model/data-context-transformers/bar-data-context-transformer.d.ts +1 -1
- package/lib/types/model/data-context-transformers/box-plot-data-context-transformer.d.ts +1 -1
- package/lib/types/model/data-context-transformers/line-like-context-transformer.d.ts +1 -1
- package/lib/types/model/data-context-transformers/pareto-data-context-transformer.d.ts +1 -1
- package/lib/types/model/data-context-transformers/percent-data-context-transformer.d.ts +1 -1
- package/lib/types/model/data-context-transformers/pie-data-context-transformer.d.ts +1 -1
- package/lib/types/model/data-context-transformers/word-cloud-data-context-transform.d.ts +1 -1
- package/lib/types/model/echart-render-model.d.ts +3 -3
- package/lib/types/model/echart-to-chart-model-init.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/boxplot-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/bubble-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/combination-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/funnel-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/heatmap-chart-convert.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/pareto-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/pie-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/radar-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/relation-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/sankey-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/scatter-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/tools.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/waterfall-chart-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/converters/word-cloud-converter.d.ts +1 -1
- package/lib/types/model/mode-converter/mode-converter.d.ts +4 -4
- package/lib/types/model/mode-converter/render-spec-operators/axis-title.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/bubble-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/chart-axes.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/chart-box-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/empty-style-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/font-size.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/grid-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/heatmap-chart-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/hover-mark-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/invalid-value-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/legend-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/line-like-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/pie-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/radar-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/relation-chart-operator/relation-chart-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/sankey-chart-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/scatter-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/series-style-operator/pareto-series-style.handler.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/series-style-operator/series-chart-style.handler.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/series-style-operator/series-data-label.handler.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/series-style-operator/series-style-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/series-style-operator/waterfall-series-style-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/stack.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/theme.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/title-style.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/tool-tip-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/tools.d.ts +2 -2
- package/lib/types/model/mode-converter/render-spec-operators/trend-line/trend-line.operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/visual-map-operator.d.ts +1 -1
- package/lib/types/model/mode-converter/render-spec-operators/watermark.operator.d.ts +1 -1
- package/lib/types/model/word-cloud-musk-image.service.d.ts +2 -1
- package/lib/types/source/chart-source.d.ts +3 -2
- package/lib/types/source/source-util.d.ts +1 -1
- package/lib/types/source/static-chart-source.d.ts +1 -1
- package/lib/types/types.d.ts +5 -5
- package/lib/umd/index.js +1 -1
- package/package.json +10 -9
- package/lib/types/assets/icon-map.json.d.ts +0 -25
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Injector
|
|
2
|
-
import { IEchartTheme } from './constants/build-in-theme';
|
|
1
|
+
import type { Injector } from '@univerjs/core';
|
|
2
|
+
import type { IEchartTheme } from './constants/build-in-theme';
|
|
3
|
+
import { Disposable, ThemeService } from '@univerjs/core';
|
|
3
4
|
import { ICanvasColorService } from '@univerjs/engine-render';
|
|
4
5
|
export interface IChartTheme {
|
|
5
6
|
colors: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const themeDefault: IEchartTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export type axesType = 'category' | 'value' | 'time' | 'log' | 'all' | undefined;
|
|
3
|
-
export declare function getThemeAxesByType(themeInfo: IEchartTheme, axesType: axesType): import(
|
|
3
|
+
export declare function getThemeAxesByType(themeInfo: IEchartTheme, axesType: axesType): import("./types").IEchartThemeAxisConfig | undefined;
|
|
4
4
|
export declare function getThemeTitleColor(themeInfo: IEchartTheme): string | undefined;
|
|
5
5
|
export declare function getThemeProps(themeInfo: IEchartTheme | undefined, key: string): undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univerGradient1: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univerGradient2: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univerGradient3: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univerGradient4: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univerGradient5: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univerGradient6: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univer1: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univer2: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univer3: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univer4: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univer5: IEchartTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEchartTheme } from './types';
|
|
1
|
+
import type { IEchartTheme } from './types';
|
|
2
2
|
export declare const univer6: IEchartTheme;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartModel } from '../chart-model';
|
|
1
|
+
import type { ChartModel } from '../chart-model';
|
|
2
2
|
import { ChartTypeBits } from '../../enum';
|
|
3
3
|
export declare const wordCloudDataContextTransformer: (fromType: ChartTypeBits, toType: ChartTypeBits, model: ChartModel) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartStyle, EChartInstance, EChartSpec, IChartConfig, IChartHostRect, IChartInstance, IChartRenderModel, IChartRenderModelStylizeInit } from '../types';
|
|
1
|
+
import type { ChartStyle, EChartInstance, EChartSpec, IChartConfig, IChartHostRect, IChartInstance, IChartRenderModel, IChartRenderModelStylizeInit } from '../types';
|
|
2
2
|
import { Disposable } from '@univerjs/core';
|
|
3
3
|
export declare class EChartRenderModel extends Disposable implements IChartRenderModel {
|
|
4
4
|
private _specConverters;
|
|
@@ -9,8 +9,8 @@ export declare class EChartRenderModel extends Disposable implements IChartRende
|
|
|
9
9
|
private _addSpecConverters;
|
|
10
10
|
private _addSpecOperators;
|
|
11
11
|
createChartInstance(): IChartInstance<EChartSpec>;
|
|
12
|
-
toSpec(config: IChartConfig, style: ChartStyle): import(
|
|
13
|
-
stylizeSpec(spec: EChartSpec, stylizeInit: IChartRenderModelStylizeInit<EChartSpec>, rect: IChartHostRect): import(
|
|
12
|
+
toSpec(config: IChartConfig, style: ChartStyle): import("echarts").EChartsOption;
|
|
13
|
+
stylizeSpec(spec: EChartSpec, stylizeInit: IChartRenderModelStylizeInit<EChartSpec>, rect: IChartHostRect): import("echarts").EChartsOption | {
|
|
14
14
|
backgroundColor: string;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IChartModelInitParams } from './mode-converter/mode-converter';
|
|
1
|
+
import type { IChartModelInitParams } from './mode-converter/mode-converter';
|
|
2
2
|
export declare function echartToChartModelInit(echartOption: echarts.EChartsOption): IChartModelInitParams;
|
|
3
3
|
export declare function isChartModelInit(option: any): option is IChartModelInitParams;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const boxplotChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const bubbleChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const combinationChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const funnelChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const heatmapChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const paretoChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const pieChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const radarChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const relationChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const sankeyChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const scatterChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
1
|
+
import type { EChartSpec, IChartRenderSpecConverter } from '../../../types';
|
|
2
2
|
export declare const waterfallChartConverter: IChartRenderSpecConverter<EChartSpec>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Injector } from '@univerjs/core';
|
|
2
|
-
import { ChartTypeBits } from '../../enum';
|
|
3
|
-
import { ChartStyle, IChartContext, IChartHostRect, IUniverDataSet } from '../../types';
|
|
1
|
+
import type { Injector } from '@univerjs/core';
|
|
2
|
+
import type { ChartTypeBits } from '../../enum';
|
|
3
|
+
import type { ChartStyle, IChartContext, IChartHostRect, IUniverDataSet } from '../../types';
|
|
4
4
|
import { StaticChartSource } from '../../source/static-chart-source';
|
|
5
5
|
import { ChartModel } from '../chart-model';
|
|
6
6
|
/**
|
|
@@ -89,6 +89,6 @@ export declare function convertModelFromInitData(initJson: IChartModelInitParams
|
|
|
89
89
|
* @param rect The current size of the chart.
|
|
90
90
|
* @returns {EChartSpec} The chart spec.
|
|
91
91
|
*/
|
|
92
|
-
export declare function convertModelToSpec(model: ChartModel, rect: IChartHostRect): import(
|
|
92
|
+
export declare function convertModelToSpec(model: ChartModel, rect: IChartHostRect): import("echarts").EChartsOption | {
|
|
93
93
|
backgroundColor: string;
|
|
94
94
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const axisTitleStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const bubbleStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const chartAxesOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const chartBoxStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const emptyStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const fontSizeOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const gridStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const heatmapChartOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const hoverMarkStyleOperator: EChartRenderSpecOperator;
|
package/lib/types/model/mode-converter/render-spec-operators/invalid-value-style.operator.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const invalidValueStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const legendStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const lineLikeStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const pieStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const radarStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const relationChartOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const sankeyChartOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const scatterStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const paretoSeriesStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SeriesItemHandler } from './series-style-operator';
|
|
1
|
+
import type { SeriesItemHandler } from './series-style-operator';
|
|
2
2
|
export declare const seriesChartStyleHandler: SeriesItemHandler;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SeriesItemHandler } from './series-style-operator';
|
|
1
|
+
import type { SeriesItemHandler } from './series-style-operator';
|
|
2
2
|
export declare const seriesDataLabelHandler: SeriesItemHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartStyle, DeepPartial, EChartRenderSpecOperator, EChartSeriesItem, ISeriesStyle } from '../../../../types';
|
|
1
|
+
import type { ChartStyle, DeepPartial, EChartRenderSpecOperator, EChartSeriesItem, ISeriesStyle } from '../../../../types';
|
|
2
2
|
import { ChartTypeBits } from '../../../../enum';
|
|
3
3
|
export interface ISeriesStyleHandlerContext {
|
|
4
4
|
seriesItem: EChartSeriesItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const waterfallSeriesStyleOperator: EChartRenderSpecOperator;
|
|
3
3
|
export declare const waterfallSeriesDataLabelHandler: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const stackOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const chartThemeOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const chartTitleStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare function excelDateToUnixMilliseconds(excelDate: number, useDefault1900DateSystem?: boolean): number;
|
|
3
3
|
export declare const toolTipStyleOperator: EChartRenderSpecOperator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChartStyle, EChartSeriesItem, EChartSpec, IChartConfig, ILabelStyle } from '../../../types';
|
|
2
|
-
import { ISpecGrid } from './operator-types';
|
|
1
|
+
import type { ChartStyle, EChartSeriesItem, EChartSpec, IChartConfig, ILabelStyle } from '../../../types';
|
|
2
|
+
import type { ISpecGrid } from './operator-types';
|
|
3
3
|
type PartialLabelStyle = Partial<Pick<ILabelStyle, 'visible' | 'color' | 'fontSize' | 'italic' | 'bold' | 'underline' | 'strikethrough' | 'showMaxLabel' | 'showMinLabel'>>;
|
|
4
4
|
export declare function applyLabelStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
|
|
5
5
|
export declare function applyLineStyle(spec: Record<string, any>, path: string, labelStyle: PartialLabelStyle): void;
|
package/lib/types/model/mode-converter/render-spec-operators/trend-line/trend-line.operator.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../../types';
|
|
2
2
|
export declare const trendlineOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const visualMapOperator: EChartRenderSpecOperator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EChartRenderSpecOperator } from '../../../types';
|
|
1
|
+
import type { EChartRenderSpecOperator } from '../../../types';
|
|
2
2
|
export declare const chartWaterMarkerOperator: EChartRenderSpecOperator;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Injector
|
|
1
|
+
import type { Injector } from '@univerjs/core';
|
|
2
|
+
import { Disposable } from '@univerjs/core';
|
|
2
3
|
export declare class WordCloudMuskImageService extends Disposable {
|
|
3
4
|
private _wordCloudMuskImageCollection;
|
|
4
5
|
constructor();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Observable
|
|
2
|
-
import { IChartDataSource, IUniverDataSet } from '../types';
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { IChartDataSource, IUniverDataSet } from '../types';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
4
|
export declare abstract class ChartDataSource implements IChartDataSource {
|
|
4
5
|
protected _data$: BehaviorSubject<IUniverDataSet>;
|
|
5
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionDataValue } from '../types';
|
|
1
|
+
import type { OptionDataValue } from '../types';
|
|
2
2
|
import { ChartSourceDataTypeEnum } from '../enum';
|
|
3
3
|
export declare function getCategoryData(source: OptionDataValue[][], categoryIndex: number, isRowDirection: boolean, sourceType: ChartSourceDataTypeEnum[][]): {
|
|
4
4
|
categoryData: OptionDataValue[];
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CellValue, IDisposable, LocaleService, Nullable } from '@univerjs/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AreaLineStyle, AxisAlignEnum, AxisValueType, CategoryType, ChartBorderDashType, ChartSourceDataTypeEnum, ChartTrendlineType, ChartTypeBits, DataOrientation, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from './enum';
|
|
4
|
-
import { IEchartTheme } from './model/constants/build-in-theme';
|
|
5
|
-
import { BarSeriesOption } from './utils/echarts';
|
|
1
|
+
import type { CellValue, IDisposable, LocaleService, Nullable } from '@univerjs/core';
|
|
2
|
+
import type { Observable } from 'rxjs';
|
|
3
|
+
import type { AreaLineStyle, AxisAlignEnum, AxisValueType, CategoryType, ChartBorderDashType, ChartSourceDataTypeEnum, ChartTrendlineType, ChartTypeBits, DataOrientation, InvalidValueType, IRuntimeAxisPosition, IRuntimeAxisPriority, LabelAlignEnum, LegendPositionEnum, LinePointShape, PieLabelPosition, RadarShape, RelationChartLayoutEnum, SelectModeEnum, SeriesLabelPosition, TitlePositionEnum, WaterfallSeriesTypeEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from './enum';
|
|
4
|
+
import type { IEchartTheme } from './model/constants/build-in-theme';
|
|
5
|
+
import type { BarSeriesOption } from './utils/echarts';
|
|
6
6
|
export type DeepPartial<T> = T extends Record<string, any> ? T extends any[] ? T : {
|
|
7
7
|
[key in keyof T]+?: DeepPartial<T[key]>;
|
|
8
8
|
} : T;
|