@univerjs-pro/engine-chart 0.15.0-insiders.20251227-453e4ff → 0.15.0-insiders.20260106-79b11f9
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/index.d.ts +1 -0
- package/lib/types/model/echart-render-model.d.ts +2 -3
- package/lib/types/types.d.ts +1 -1
- package/lib/types/utils/echarts.d.ts +16 -0
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/types/index.d.ts
CHANGED
|
@@ -19,4 +19,5 @@ export { StaticChartSource } from './source/static-chart-source';
|
|
|
19
19
|
export type { DimensionDefinitionLoose, IChartDataSource, IDimensionDefinition, IUniverDataSet, OptionDataValue, } from './types';
|
|
20
20
|
export type { ChartDataSourceValue, ChartDataSourceValues, ChartStyle, DeepPartial, IAllSeriesStyle, IAxisOptions, IChartConfig, IChartContext, IChartData, IChartDataAggregation, IChartDataCategory, IChartDataSeries, IChartHostRect, IChartInstance, IChartRenderModel, IChartSnapshot, IChartStyle, IGridLineStyle, ILabelStyle, ILegendStyle, IPieLabelStyle, IPointStyle, IRelationForceOptions, IRuntimeAxis, ISeriesLabelStyle, ISeriesStyle, ITrendLine, RightYAxisOptions, } from './types';
|
|
21
21
|
export { chartBitsUtils, chartTypeCanUseTrendLine } from './util';
|
|
22
|
+
export { echarts } from './utils/echarts';
|
|
22
23
|
export { WordCloudResourceConfig } from './word-cloud-resource/word-cloud-resource-config';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChartStyle, EChartInstance, EChartSpec, IChartConfig, IChartHostRect, IChartInstance, IChartRenderModel, IChartRenderModelStylizeInit } from '../types';
|
|
2
2
|
import { Disposable } from '@univerjs/core';
|
|
3
|
-
import * as echarts from 'echarts';
|
|
4
3
|
export declare class EChartRenderModel extends Disposable implements IChartRenderModel {
|
|
5
4
|
private _specConverters;
|
|
6
5
|
private _specOperators;
|
|
@@ -10,8 +9,8 @@ export declare class EChartRenderModel extends Disposable implements IChartRende
|
|
|
10
9
|
private _addSpecConverters;
|
|
11
10
|
private _addSpecOperators;
|
|
12
11
|
createChartInstance(): IChartInstance<EChartSpec>;
|
|
13
|
-
toSpec(config: IChartConfig, style: ChartStyle): echarts.EChartsOption;
|
|
14
|
-
stylizeSpec(spec: EChartSpec, stylizeInit: IChartRenderModelStylizeInit<EChartSpec>, rect: IChartHostRect): echarts.EChartsOption | {
|
|
12
|
+
toSpec(config: IChartConfig, style: ChartStyle): import('echarts').EChartsOption;
|
|
13
|
+
stylizeSpec(spec: EChartSpec, stylizeInit: IChartRenderModelStylizeInit<EChartSpec>, rect: IChartHostRect): import('echarts').EChartsOption | {
|
|
15
14
|
backgroundColor: string;
|
|
16
15
|
};
|
|
17
16
|
}
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CellValue, IDisposable, LocaleService, Nullable } from '@univerjs/core';
|
|
2
|
-
import { BarSeriesOption } from 'echarts';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
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';
|
|
5
4
|
import { IEchartTheme } from './model/constants/build-in-theme';
|
|
5
|
+
import { 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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { extendChartView, extendSeriesModel, format, getInstanceByDom, graphic, helper, init, List, number, registerLayout, registerPreprocessor, util } from 'echarts';
|
|
2
|
+
export declare const echarts: {
|
|
3
|
+
extendChartView: typeof extendChartView;
|
|
4
|
+
extendSeriesModel: typeof extendSeriesModel;
|
|
5
|
+
format: typeof format;
|
|
6
|
+
getInstanceByDom: typeof getInstanceByDom;
|
|
7
|
+
graphic: typeof graphic;
|
|
8
|
+
helper: typeof helper;
|
|
9
|
+
init: typeof init;
|
|
10
|
+
List: typeof List;
|
|
11
|
+
number: typeof number;
|
|
12
|
+
registerLayout: typeof registerLayout;
|
|
13
|
+
registerPreprocessor: typeof registerPreprocessor;
|
|
14
|
+
util: typeof util;
|
|
15
|
+
};
|
|
16
|
+
export type { BarSeriesOption, DatasetComponentOption, ECharts, EChartsOption, FunnelSeriesOption, LegendComponentOption, LineSeriesOption, XAXisComponentOption, } from 'echarts';
|