@univerjs-pro/engine-chart 1.0.0-alpha.1 → 1.0.0-alpha.3
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/README.md +9 -3
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/chart-model-api/chart-model-api.d.ts +2 -0
- package/lib/types/chart-model-api/chart-type-manifest.d.ts +128 -0
- package/lib/types/chart-model-api/chart-type-registry.d.ts +56 -0
- package/lib/types/chart-model-api/chart-type.d.ts +7 -0
- package/lib/types/chart-model-api/constants.d.ts +99 -0
- package/lib/types/chart-model-api/describe.d.ts +3 -0
- package/lib/types/chart-model-api/index.d.ts +8 -0
- package/lib/types/chart-model-api/patch-builder.d.ts +9 -0
- package/lib/types/chart-model-api/series-selector.d.ts +3 -0
- package/lib/types/chart-model-api/types.d.ts +452 -0
- package/lib/types/chart-model-api/utils.d.ts +10 -0
- package/lib/types/chart-model-api/validate.d.ts +5 -0
- package/lib/types/enum.d.ts +8 -0
- package/lib/types/f-base-chart.d.ts +25 -0
- package/lib/types/index.d.ts +119 -13
- package/lib/types/models/chart-data-operators/build-chart-data.d.ts +6 -1
- package/lib/types/models/chart-data-operators/cartesian-point-data.d.ts +43 -0
- package/lib/types/models/chart-data-operators/operators.d.ts +4 -5
- package/lib/types/models/chart-element-axis-id.d.ts +9 -0
- package/lib/types/models/chart-element-edit-overlay/chart-element-edit-overlay.d.ts +38 -0
- package/lib/types/models/chart-element-edit-overlay/index.d.ts +4 -0
- package/lib/types/models/chart-element-edit-overlay/palette.d.ts +2 -0
- package/lib/types/models/chart-element-edit-overlay/resolve-chart-element-hit-layout.d.ts +16 -0
- package/lib/types/models/chart-element-edit-overlay/types.d.ts +20 -0
- package/lib/types/models/chart-host-style.d.ts +35 -0
- package/lib/types/models/chart-model.d.ts +40 -31
- package/lib/types/models/chart-render-input-resolver.d.ts +13 -0
- package/lib/types/models/chart-render-model-manager.service.d.ts +26 -0
- package/lib/types/models/chart-runtime-style.d.ts +1 -0
- package/lib/types/models/constants/build-in-theme/index.d.ts +12 -12
- package/lib/types/models/constants/build-in-theme/univer-gradient1.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient2.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient3.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient4.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient5.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer-gradient6.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer1.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer2.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer3.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer4.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer5.d.ts +1 -1
- package/lib/types/models/constants/build-in-theme/univer6.d.ts +1 -1
- package/lib/types/models/constants/default.d.ts +3 -1
- package/lib/types/models/echart-render-model.d.ts +43 -4
- package/lib/types/models/image-chart-host.d.ts +18 -0
- package/lib/types/models/mode-converter/mode-converter.d.ts +0 -2
- package/lib/types/models/mode-converter/render-spec-operators/legend-size.d.ts +2 -1
- package/lib/types/models/offscreen-chart-host.d.ts +7 -0
- package/lib/types/models/series-style/series-style-resolver.d.ts +9 -0
- package/lib/types/source/source-util.d.ts +1 -1
- package/lib/types/source/static-chart-source.d.ts +11 -3
- package/lib/types/types.d.ts +188 -35
- package/lib/types/util.d.ts +1 -1
- package/lib/types/wordcloud-chart/adapters/echarts/chart-view.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/install.d.ts +3 -2
- package/lib/types/wordcloud-chart/adapters/echarts/layout-register.d.ts +2 -2
- package/lib/types/wordcloud-chart/adapters/echarts/runtime-cache.d.ts +29 -0
- package/lib/types/wordcloud-chart/adapters/echarts/series-model.d.ts +2 -2
- package/lib/types/wordcloud-chart/core/collision/box-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/footprint.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/glyph-shape-engine.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/collision/grid.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/candidates.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/layout-config.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/layout.d.ts +1 -2
- package/lib/types/wordcloud-chart/core/layout/phases.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/place-word.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-stats.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-types.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/placement-word-manager.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/runtime-mask.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/layout/word-prepare.d.ts +1 -1
- package/lib/types/wordcloud-chart/core/shape/shape-mask.d.ts +1 -1
- package/lib/types/wordcloud-chart/index.d.ts +3 -2
- package/lib/types/wordcloud-chart/types.d.ts +2 -0
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
- package/lib/types/wordcloud-chart/core/collision/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/layout/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/shape/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/text/types.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/option.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/shape.d.ts +0 -1
- package/lib/types/wordcloud-chart/core/types/word.d.ts +0 -1
- package/lib/types/wordcloud-chart/echarts.d.ts +0 -2
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { IChartContext, IChartData, IUniverDataSet } from '../../types';
|
|
2
2
|
import type { IChartLocaleTexts } from '../chart-locale-texts';
|
|
3
3
|
import { ChartTypeBits } from '../../enum';
|
|
4
|
-
export declare
|
|
4
|
+
export declare enum RelationColumnIndex {
|
|
5
|
+
Source = 0,
|
|
6
|
+
Target = 1,
|
|
7
|
+
Weight = 2
|
|
8
|
+
}
|
|
9
|
+
export declare function buildChartData(dataSource: IUniverDataSet, chartContext: IChartContext, chartType: ChartTypeBits, _isRowDirection: boolean, localeTexts: IChartLocaleTexts): IChartData;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { IUniverDataSet } from '../../types';
|
|
2
|
+
import type { IChartLocaleTexts } from '../chart-locale-texts';
|
|
3
|
+
export declare enum CartesianPointRoleIndex {
|
|
4
|
+
X = 0,
|
|
5
|
+
Y = 1,
|
|
6
|
+
Size = 2
|
|
7
|
+
}
|
|
8
|
+
export declare enum CartesianPointValueIndex {
|
|
9
|
+
X = 0,
|
|
10
|
+
Y = 1,
|
|
11
|
+
Size = 2,
|
|
12
|
+
Label = 3
|
|
13
|
+
}
|
|
14
|
+
export interface ICartesianPointRecord {
|
|
15
|
+
sourceIndex: number;
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
label?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
group?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ICartesianPointData {
|
|
23
|
+
isValid: boolean;
|
|
24
|
+
xIndex: number;
|
|
25
|
+
yIndex: number;
|
|
26
|
+
xName: string;
|
|
27
|
+
yName: string;
|
|
28
|
+
labelName?: string;
|
|
29
|
+
sizeName?: string;
|
|
30
|
+
groupName?: string;
|
|
31
|
+
records: ICartesianPointRecord[];
|
|
32
|
+
}
|
|
33
|
+
interface ICartesianPointRoleIndexes {
|
|
34
|
+
xIndex: number;
|
|
35
|
+
yIndex: number;
|
|
36
|
+
labelIndex?: number;
|
|
37
|
+
sizeIndex?: number;
|
|
38
|
+
seriesIndex?: number;
|
|
39
|
+
headers?: string[];
|
|
40
|
+
}
|
|
41
|
+
/** Builds normalized Cartesian point records consumed by coordinate-chart converters. */
|
|
42
|
+
export declare function buildCartesianPointData(dataSource: IUniverDataSet, roles: ICartesianPointRoleIndexes, localeTexts: IChartLocaleTexts): ICartesianPointData;
|
|
43
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IChartContext, OptionDataValue } from '../../types';
|
|
1
|
+
import type { IChartContext, IChartDataSource, OptionDataValue } from '../../types';
|
|
3
2
|
import type { ChartModel } from '../chart-model';
|
|
4
3
|
import { ChartSourceDataTypeEnum } from '../../enum';
|
|
5
|
-
export type IChartContextOperator = (dataSource:
|
|
4
|
+
export type IChartContextOperator = (dataSource: IChartDataSource, context: IChartContext, model: ChartModel) => IChartContext;
|
|
6
5
|
type Nil = null | undefined;
|
|
7
6
|
export declare function isNil(value: any): value is Nil;
|
|
8
7
|
export declare function countTypesFromArray(arrayData: Array<OptionDataValue | undefined>, sourceTypes?: Array<ChartSourceDataTypeEnum | undefined>): {
|
|
@@ -11,11 +10,11 @@ export declare function countTypesFromArray(arrayData: Array<OptionDataValue | u
|
|
|
11
10
|
total: number;
|
|
12
11
|
};
|
|
13
12
|
export declare function toColumnOrient<T = any>(dataSource: T[][]): T[][];
|
|
14
|
-
export declare function findCategoryIndexes(dataSource:
|
|
13
|
+
export declare function findCategoryIndexes(dataSource: IChartDataSource): number[];
|
|
15
14
|
export declare const findHeaderOperator: IChartContextOperator;
|
|
16
15
|
export declare const findCategoryOperator: IChartContextOperator;
|
|
17
16
|
export declare const findSeriesOperator: IChartContextOperator;
|
|
18
17
|
export declare const pieSeriesFilterOperator: IChartContextOperator;
|
|
19
18
|
export declare const defaultChartContextOperators: IChartContextOperator[];
|
|
20
|
-
export declare function generateChartModelContextByOperators(chartModel: ChartModel, dataSource:
|
|
19
|
+
export declare function generateChartModelContextByOperators(chartModel: ChartModel, dataSource: IChartDataSource, operators?: IChartContextOperator[]): IChartContext;
|
|
21
20
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChartDirection, IChartElementHit, IRuntimeAxis } from '../types';
|
|
2
|
+
export declare const CHART_ELEMENT_AXIS_ID_META = "__univerChartElementAxisId";
|
|
3
|
+
export type ChartElementAxisId = NonNullable<IChartElementHit['axisId']>;
|
|
4
|
+
type ChartElementAxisTarget = 'title' | 'label' | 'line';
|
|
5
|
+
export declare function getChartElementAxisId(axisOption: unknown): ChartElementAxisId | undefined;
|
|
6
|
+
export declare function setChartElementAxisId(axisOption: Record<string, unknown>, axisId: ChartElementAxisId): void;
|
|
7
|
+
export declare function resolveChartElementAxisId(axisPosition: IChartElementHit['axisPosition'] | undefined, direction: ChartDirection | undefined, runtimeAxes: IRuntimeAxis[] | undefined): ChartElementAxisId;
|
|
8
|
+
export declare function getChartElementAxisKind(axisId: ChartElementAxisId, target: ChartElementAxisTarget): IChartElementHit['kind'];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { IChartElementBounds, IChartElementHit } from '../../types';
|
|
2
|
+
import type { ChartElementEditBorderType, IChartElementEditOverlayPalette } from './types';
|
|
3
|
+
export declare class ChartElementEditOverlay {
|
|
4
|
+
private readonly _getInstance;
|
|
5
|
+
private readonly _getContainer;
|
|
6
|
+
private readonly _paletteOverride?;
|
|
7
|
+
private _group;
|
|
8
|
+
private _hoverBorder;
|
|
9
|
+
private _hoverHit;
|
|
10
|
+
private _hoverBorderBounds;
|
|
11
|
+
private _hoverBorderHitKey;
|
|
12
|
+
private _fixedBorder;
|
|
13
|
+
private _fixedBorderBounds;
|
|
14
|
+
constructor(_getInstance: () => echarts.ECharts | null, _getContainer?: () => HTMLElement | null | undefined, _paletteOverride?: Partial<IChartElementEditOverlayPalette> | undefined);
|
|
15
|
+
ensure(): any;
|
|
16
|
+
remove(): void;
|
|
17
|
+
clearAll(): void;
|
|
18
|
+
clearHover(): void;
|
|
19
|
+
clearFixed(): void;
|
|
20
|
+
isFixed(bounds: IChartElementBounds | undefined): boolean;
|
|
21
|
+
containsHoverPoint(point: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}): boolean;
|
|
25
|
+
getHoverHitAt(point: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
}): IChartElementHit | null;
|
|
29
|
+
setBorder(type: ChartElementEditBorderType, hit: IChartElementHit): void;
|
|
30
|
+
withHidden<T>(callback: () => T): T;
|
|
31
|
+
private _removeBorder;
|
|
32
|
+
private _createEditBorderElement;
|
|
33
|
+
private _createLineBorderElement;
|
|
34
|
+
private _createPolygonBorderElement;
|
|
35
|
+
private _createStrokeStyle;
|
|
36
|
+
private _resolvePalette;
|
|
37
|
+
private _refresh;
|
|
38
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ChartElementEditOverlay } from './chart-element-edit-overlay';
|
|
2
|
+
export { resolveChartElementEditOverlayPalette } from './palette';
|
|
3
|
+
export { createRectOverlay, getChartElementComponentInfo, getChartElementPropertyInChain, getChartElementTarget, getChartElementTargetSeriesIndex, isSeriesLabelTarget, resolveChartElementHitLayout, toChartElementFiniteNumber, } from './resolve-chart-element-hit-layout';
|
|
4
|
+
export type { ChartElementEditBorderType, IChartElementEditOverlayPalette, IChartElementHitLayout, IResolvedChartElementOverlay, } from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IChartElementBounds, IChartElementHit } from '../../types';
|
|
2
|
+
import type { ECharts } from '../../utils/echarts';
|
|
3
|
+
import type { IChartElementHitLayout, IResolvedChartElementOverlay } from './types';
|
|
4
|
+
export declare function toChartElementFiniteNumber(value: unknown): number | undefined;
|
|
5
|
+
export declare function getChartElementTarget(params: any): any;
|
|
6
|
+
export declare function getChartElementComponentInfo(element: any): {
|
|
7
|
+
mainType?: string;
|
|
8
|
+
index?: number;
|
|
9
|
+
} | undefined;
|
|
10
|
+
export declare function getChartElementPropertyInChain(element: any, propertyName: string): unknown;
|
|
11
|
+
export declare function isSeriesLabelTarget(element: any): boolean;
|
|
12
|
+
export declare function getChartElementTargetSeriesIndex(instance: any, target: any): number | undefined;
|
|
13
|
+
export declare function getAxisComponentMainType(hit: IChartElementHit): 'xAxis' | 'yAxis' | undefined;
|
|
14
|
+
export declare function createRectOverlay(bounds: IChartElementBounds, padding?: number, shape?: Record<string, any>): IResolvedChartElementOverlay;
|
|
15
|
+
export declare function isSameBounds(left: IChartElementBounds | null | undefined, right: IChartElementBounds | undefined): boolean;
|
|
16
|
+
export declare function resolveChartElementHitLayout(hit: IChartElementHit, params: any, instance?: ECharts | null): IChartElementHitLayout;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IChartElementBounds, IChartElementOverlay } from '../../types';
|
|
2
|
+
export type ChartElementEditBorderType = 'hover' | 'fixed';
|
|
3
|
+
export interface IChartElementEditOverlayPalette {
|
|
4
|
+
hoverStroke: string;
|
|
5
|
+
fixedStroke: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IChartElementOverlaySourceStyle {
|
|
8
|
+
stroke?: string;
|
|
9
|
+
lineWidth?: number;
|
|
10
|
+
opacity?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IResolvedChartElementOverlay extends IChartElementOverlay {
|
|
13
|
+
items?: IResolvedChartElementOverlay[];
|
|
14
|
+
sourceCtor?: new (options: any) => any;
|
|
15
|
+
sourceStyle?: IChartElementOverlaySourceStyle;
|
|
16
|
+
}
|
|
17
|
+
export interface IChartElementHitLayout {
|
|
18
|
+
bounds?: IChartElementBounds;
|
|
19
|
+
overlay?: IResolvedChartElementOverlay;
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ChartImageSource, ChartStyle, IChartHostRect, IChartHostStyle } from '../types';
|
|
2
|
+
export interface IResolveChartHostFrameStyleInput {
|
|
3
|
+
style?: ChartStyle | null;
|
|
4
|
+
getRenderColor?: (color: string) => string;
|
|
5
|
+
fallbackStroke?: string | null;
|
|
6
|
+
defaultStrokeWidth?: number;
|
|
7
|
+
defaultRadius?: number;
|
|
8
|
+
enableFallbackStroke?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Shared visual defaults for chart containers across Sheet, Doc, Slide, and Board.
|
|
12
|
+
* Consumers should still prefer a chart's explicit border color.
|
|
13
|
+
*/
|
|
14
|
+
export declare const CHART_HOST_DEFAULT_BORDER_COLOR = "#D1D5DB";
|
|
15
|
+
export declare const CHART_HOST_DEFAULT_BORDER_RADIUS = 8;
|
|
16
|
+
export declare const CHART_HOST_DEFAULT_BORDER_WIDTH = 1;
|
|
17
|
+
export interface IResolveDefaultChartHostFrameStyleInput {
|
|
18
|
+
style?: ChartStyle | null;
|
|
19
|
+
getRenderColor?: (color: string) => string;
|
|
20
|
+
fallbackStroke?: string | null;
|
|
21
|
+
}
|
|
22
|
+
interface IChartHostContentRect extends IChartHostRect {
|
|
23
|
+
left: number;
|
|
24
|
+
top: number;
|
|
25
|
+
}
|
|
26
|
+
export declare function resolveChartHostFrameStyle(input: IResolveChartHostFrameStyleInput): IChartHostStyle;
|
|
27
|
+
/**
|
|
28
|
+
* Resolves the standard chart frame used when an author has not chosen a custom border.
|
|
29
|
+
* `getRenderColor` keeps the fallback frame in sync with the active light or dark theme.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveDefaultChartHostFrameStyle(input: IResolveDefaultChartHostFrameStyleInput): IChartHostStyle;
|
|
32
|
+
export declare function getChartHostFrameContentRect(outer: IChartHostRect, hostStyle: IChartHostStyle): IChartHostContentRect;
|
|
33
|
+
export declare function shouldComposeChartHostFrame(hostStyle: IChartHostStyle): boolean;
|
|
34
|
+
export declare function composeChartHostFrameImage(image: ChartImageSource, outer: IChartHostRect, hostStyle: IChartHostStyle): ChartImageSource;
|
|
35
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Injector } from '@univerjs/core';
|
|
2
2
|
import type { Observable, Subscription } from 'rxjs';
|
|
3
3
|
import type { ChartStyle, IChartConfig, IChartContext, IChartDataAggregation, IChartDataSource, IChartRuntimeContext, IChartSnapshot } from '../types';
|
|
4
|
+
import type { IChartLocaleTexts } from './chart-locale-texts';
|
|
4
5
|
import { Disposable } from '@univerjs/core';
|
|
5
6
|
import { BehaviorSubject } from 'rxjs';
|
|
6
7
|
import { ChartTypeBits } from '../enum';
|
|
7
|
-
import type { IChartLocaleTexts } from './chart-locale-texts';
|
|
8
8
|
import { ChartThemeService } from './chart-theme.service';
|
|
9
9
|
export interface IChartModelInit {
|
|
10
10
|
chartType?: ChartTypeBits;
|
|
@@ -115,6 +115,7 @@ export declare class ChartModel extends Disposable {
|
|
|
115
115
|
minShrinkRatio?: number | undefined;
|
|
116
116
|
} | undefined;
|
|
117
117
|
} | undefined;
|
|
118
|
+
layoutInset?: number | undefined;
|
|
118
119
|
getRenderColor?: {} | undefined;
|
|
119
120
|
isDarkMode?: boolean | undefined;
|
|
120
121
|
hasSecondaryAxis?: boolean | undefined;
|
|
@@ -155,10 +156,10 @@ export declare class ChartModel extends Disposable {
|
|
|
155
156
|
bold?: boolean | undefined;
|
|
156
157
|
italic?: boolean | undefined;
|
|
157
158
|
fontSize?: number | undefined;
|
|
159
|
+
color?: string | undefined;
|
|
158
160
|
rotate?: number | undefined;
|
|
159
161
|
align?: import("..").LabelAlignEnum | undefined;
|
|
160
162
|
content?: string | undefined;
|
|
161
|
-
color?: string | undefined;
|
|
162
163
|
family?: string | undefined;
|
|
163
164
|
strikethrough?: boolean | undefined;
|
|
164
165
|
underline?: boolean | undefined;
|
|
@@ -171,10 +172,10 @@ export declare class ChartModel extends Disposable {
|
|
|
171
172
|
bold?: boolean | undefined;
|
|
172
173
|
italic?: boolean | undefined;
|
|
173
174
|
fontSize?: number | undefined;
|
|
175
|
+
color?: string | undefined;
|
|
174
176
|
rotate?: number | undefined;
|
|
175
177
|
align?: import("..").LabelAlignEnum | undefined;
|
|
176
178
|
content?: string | undefined;
|
|
177
|
-
color?: string | undefined;
|
|
178
179
|
family?: string | undefined;
|
|
179
180
|
strikethrough?: boolean | undefined;
|
|
180
181
|
underline?: boolean | undefined;
|
|
@@ -187,10 +188,10 @@ export declare class ChartModel extends Disposable {
|
|
|
187
188
|
bold?: boolean | undefined;
|
|
188
189
|
italic?: boolean | undefined;
|
|
189
190
|
fontSize?: number | undefined;
|
|
191
|
+
color?: string | undefined;
|
|
190
192
|
rotate?: number | undefined;
|
|
191
193
|
align?: import("..").LabelAlignEnum | undefined;
|
|
192
194
|
content?: string | undefined;
|
|
193
|
-
color?: string | undefined;
|
|
194
195
|
family?: string | undefined;
|
|
195
196
|
strikethrough?: boolean | undefined;
|
|
196
197
|
underline?: boolean | undefined;
|
|
@@ -203,10 +204,10 @@ export declare class ChartModel extends Disposable {
|
|
|
203
204
|
bold?: boolean | undefined;
|
|
204
205
|
italic?: boolean | undefined;
|
|
205
206
|
fontSize?: number | undefined;
|
|
207
|
+
color?: string | undefined;
|
|
206
208
|
rotate?: number | undefined;
|
|
207
209
|
align?: import("..").LabelAlignEnum | undefined;
|
|
208
210
|
content?: string | undefined;
|
|
209
|
-
color?: string | undefined;
|
|
210
211
|
family?: string | undefined;
|
|
211
212
|
strikethrough?: boolean | undefined;
|
|
212
213
|
underline?: boolean | undefined;
|
|
@@ -219,10 +220,10 @@ export declare class ChartModel extends Disposable {
|
|
|
219
220
|
bold?: boolean | undefined;
|
|
220
221
|
italic?: boolean | undefined;
|
|
221
222
|
fontSize?: number | undefined;
|
|
223
|
+
color?: string | undefined;
|
|
222
224
|
rotate?: number | undefined;
|
|
223
225
|
align?: import("..").LabelAlignEnum | undefined;
|
|
224
226
|
content?: string | undefined;
|
|
225
|
-
color?: string | undefined;
|
|
226
227
|
family?: string | undefined;
|
|
227
228
|
strikethrough?: boolean | undefined;
|
|
228
229
|
underline?: boolean | undefined;
|
|
@@ -239,8 +240,8 @@ export declare class ChartModel extends Disposable {
|
|
|
239
240
|
bold?: boolean | undefined;
|
|
240
241
|
italic?: boolean | undefined;
|
|
241
242
|
fontSize?: number | undefined;
|
|
242
|
-
rotate?: number | undefined;
|
|
243
243
|
color?: string | undefined;
|
|
244
|
+
rotate?: number | undefined;
|
|
244
245
|
family?: string | undefined;
|
|
245
246
|
strikethrough?: boolean | undefined;
|
|
246
247
|
underline?: boolean | undefined;
|
|
@@ -257,9 +258,9 @@ export declare class ChartModel extends Disposable {
|
|
|
257
258
|
bold?: boolean | undefined;
|
|
258
259
|
italic?: boolean | undefined;
|
|
259
260
|
fontSize?: number | undefined;
|
|
261
|
+
color?: string | undefined;
|
|
260
262
|
rotate?: number | undefined;
|
|
261
263
|
visible?: boolean | undefined;
|
|
262
|
-
color?: string | undefined;
|
|
263
264
|
family?: string | undefined;
|
|
264
265
|
strikethrough?: boolean | undefined;
|
|
265
266
|
underline?: boolean | undefined;
|
|
@@ -296,9 +297,9 @@ export declare class ChartModel extends Disposable {
|
|
|
296
297
|
bold?: boolean | undefined;
|
|
297
298
|
italic?: boolean | undefined;
|
|
298
299
|
fontSize?: number | undefined;
|
|
300
|
+
color?: string | undefined;
|
|
299
301
|
rotate?: number | undefined;
|
|
300
302
|
visible?: boolean | undefined;
|
|
301
|
-
color?: string | undefined;
|
|
302
303
|
family?: string | undefined;
|
|
303
304
|
strikethrough?: boolean | undefined;
|
|
304
305
|
underline?: boolean | undefined;
|
|
@@ -335,9 +336,9 @@ export declare class ChartModel extends Disposable {
|
|
|
335
336
|
bold?: boolean | undefined;
|
|
336
337
|
italic?: boolean | undefined;
|
|
337
338
|
fontSize?: number | undefined;
|
|
339
|
+
color?: string | undefined;
|
|
338
340
|
rotate?: number | undefined;
|
|
339
341
|
visible?: boolean | undefined;
|
|
340
|
-
color?: string | undefined;
|
|
341
342
|
family?: string | undefined;
|
|
342
343
|
strikethrough?: boolean | undefined;
|
|
343
344
|
underline?: boolean | undefined;
|
|
@@ -730,15 +731,16 @@ export declare class ChartModel extends Disposable {
|
|
|
730
731
|
trendlines?: import("..").ITrendLine[] | undefined;
|
|
731
732
|
pie?: {
|
|
732
733
|
doughnutHole?: import("@univerjs/core").Nullable<number>;
|
|
734
|
+
explosion?: number | undefined;
|
|
733
735
|
labelStyle?: {
|
|
734
736
|
contentType?: number | undefined;
|
|
735
737
|
position?: import("..").PieLabelPosition | undefined;
|
|
736
738
|
bold?: boolean | undefined;
|
|
737
739
|
italic?: boolean | undefined;
|
|
738
740
|
fontSize?: number | undefined;
|
|
741
|
+
color?: string | undefined;
|
|
739
742
|
rotate?: number | undefined;
|
|
740
743
|
visible?: boolean | undefined;
|
|
741
|
-
color?: string | undefined;
|
|
742
744
|
family?: string | undefined;
|
|
743
745
|
strikethrough?: boolean | undefined;
|
|
744
746
|
underline?: boolean | undefined;
|
|
@@ -1165,6 +1167,7 @@ export declare class ChartModel extends Disposable {
|
|
|
1165
1167
|
} | undefined;
|
|
1166
1168
|
} | undefined;
|
|
1167
1169
|
} | undefined;
|
|
1170
|
+
includeZeroValues?: boolean | undefined;
|
|
1168
1171
|
} | undefined;
|
|
1169
1172
|
heatmap?: {
|
|
1170
1173
|
visualMapType?: "continuous" | "piecewise" | undefined;
|
|
@@ -1250,6 +1253,7 @@ export declare class ChartModel extends Disposable {
|
|
|
1250
1253
|
minShrinkRatio?: number | undefined;
|
|
1251
1254
|
} | undefined;
|
|
1252
1255
|
} | undefined;
|
|
1256
|
+
layoutInset?: number | undefined;
|
|
1253
1257
|
getRenderColor?: {} | undefined;
|
|
1254
1258
|
isDarkMode?: boolean | undefined;
|
|
1255
1259
|
hasSecondaryAxis?: boolean | undefined;
|
|
@@ -1290,10 +1294,10 @@ export declare class ChartModel extends Disposable {
|
|
|
1290
1294
|
bold?: boolean | undefined;
|
|
1291
1295
|
italic?: boolean | undefined;
|
|
1292
1296
|
fontSize?: number | undefined;
|
|
1297
|
+
color?: string | undefined;
|
|
1293
1298
|
rotate?: number | undefined;
|
|
1294
1299
|
align?: import("..").LabelAlignEnum | undefined;
|
|
1295
1300
|
content?: string | undefined;
|
|
1296
|
-
color?: string | undefined;
|
|
1297
1301
|
family?: string | undefined;
|
|
1298
1302
|
strikethrough?: boolean | undefined;
|
|
1299
1303
|
underline?: boolean | undefined;
|
|
@@ -1306,10 +1310,10 @@ export declare class ChartModel extends Disposable {
|
|
|
1306
1310
|
bold?: boolean | undefined;
|
|
1307
1311
|
italic?: boolean | undefined;
|
|
1308
1312
|
fontSize?: number | undefined;
|
|
1313
|
+
color?: string | undefined;
|
|
1309
1314
|
rotate?: number | undefined;
|
|
1310
1315
|
align?: import("..").LabelAlignEnum | undefined;
|
|
1311
1316
|
content?: string | undefined;
|
|
1312
|
-
color?: string | undefined;
|
|
1313
1317
|
family?: string | undefined;
|
|
1314
1318
|
strikethrough?: boolean | undefined;
|
|
1315
1319
|
underline?: boolean | undefined;
|
|
@@ -1322,10 +1326,10 @@ export declare class ChartModel extends Disposable {
|
|
|
1322
1326
|
bold?: boolean | undefined;
|
|
1323
1327
|
italic?: boolean | undefined;
|
|
1324
1328
|
fontSize?: number | undefined;
|
|
1329
|
+
color?: string | undefined;
|
|
1325
1330
|
rotate?: number | undefined;
|
|
1326
1331
|
align?: import("..").LabelAlignEnum | undefined;
|
|
1327
1332
|
content?: string | undefined;
|
|
1328
|
-
color?: string | undefined;
|
|
1329
1333
|
family?: string | undefined;
|
|
1330
1334
|
strikethrough?: boolean | undefined;
|
|
1331
1335
|
underline?: boolean | undefined;
|
|
@@ -1338,10 +1342,10 @@ export declare class ChartModel extends Disposable {
|
|
|
1338
1342
|
bold?: boolean | undefined;
|
|
1339
1343
|
italic?: boolean | undefined;
|
|
1340
1344
|
fontSize?: number | undefined;
|
|
1345
|
+
color?: string | undefined;
|
|
1341
1346
|
rotate?: number | undefined;
|
|
1342
1347
|
align?: import("..").LabelAlignEnum | undefined;
|
|
1343
1348
|
content?: string | undefined;
|
|
1344
|
-
color?: string | undefined;
|
|
1345
1349
|
family?: string | undefined;
|
|
1346
1350
|
strikethrough?: boolean | undefined;
|
|
1347
1351
|
underline?: boolean | undefined;
|
|
@@ -1354,10 +1358,10 @@ export declare class ChartModel extends Disposable {
|
|
|
1354
1358
|
bold?: boolean | undefined;
|
|
1355
1359
|
italic?: boolean | undefined;
|
|
1356
1360
|
fontSize?: number | undefined;
|
|
1361
|
+
color?: string | undefined;
|
|
1357
1362
|
rotate?: number | undefined;
|
|
1358
1363
|
align?: import("..").LabelAlignEnum | undefined;
|
|
1359
1364
|
content?: string | undefined;
|
|
1360
|
-
color?: string | undefined;
|
|
1361
1365
|
family?: string | undefined;
|
|
1362
1366
|
strikethrough?: boolean | undefined;
|
|
1363
1367
|
underline?: boolean | undefined;
|
|
@@ -1374,8 +1378,8 @@ export declare class ChartModel extends Disposable {
|
|
|
1374
1378
|
bold?: boolean | undefined;
|
|
1375
1379
|
italic?: boolean | undefined;
|
|
1376
1380
|
fontSize?: number | undefined;
|
|
1377
|
-
rotate?: number | undefined;
|
|
1378
1381
|
color?: string | undefined;
|
|
1382
|
+
rotate?: number | undefined;
|
|
1379
1383
|
family?: string | undefined;
|
|
1380
1384
|
strikethrough?: boolean | undefined;
|
|
1381
1385
|
underline?: boolean | undefined;
|
|
@@ -1392,9 +1396,9 @@ export declare class ChartModel extends Disposable {
|
|
|
1392
1396
|
bold?: boolean | undefined;
|
|
1393
1397
|
italic?: boolean | undefined;
|
|
1394
1398
|
fontSize?: number | undefined;
|
|
1399
|
+
color?: string | undefined;
|
|
1395
1400
|
rotate?: number | undefined;
|
|
1396
1401
|
visible?: boolean | undefined;
|
|
1397
|
-
color?: string | undefined;
|
|
1398
1402
|
family?: string | undefined;
|
|
1399
1403
|
strikethrough?: boolean | undefined;
|
|
1400
1404
|
underline?: boolean | undefined;
|
|
@@ -1431,9 +1435,9 @@ export declare class ChartModel extends Disposable {
|
|
|
1431
1435
|
bold?: boolean | undefined;
|
|
1432
1436
|
italic?: boolean | undefined;
|
|
1433
1437
|
fontSize?: number | undefined;
|
|
1438
|
+
color?: string | undefined;
|
|
1434
1439
|
rotate?: number | undefined;
|
|
1435
1440
|
visible?: boolean | undefined;
|
|
1436
|
-
color?: string | undefined;
|
|
1437
1441
|
family?: string | undefined;
|
|
1438
1442
|
strikethrough?: boolean | undefined;
|
|
1439
1443
|
underline?: boolean | undefined;
|
|
@@ -1470,9 +1474,9 @@ export declare class ChartModel extends Disposable {
|
|
|
1470
1474
|
bold?: boolean | undefined;
|
|
1471
1475
|
italic?: boolean | undefined;
|
|
1472
1476
|
fontSize?: number | undefined;
|
|
1477
|
+
color?: string | undefined;
|
|
1473
1478
|
rotate?: number | undefined;
|
|
1474
1479
|
visible?: boolean | undefined;
|
|
1475
|
-
color?: string | undefined;
|
|
1476
1480
|
family?: string | undefined;
|
|
1477
1481
|
strikethrough?: boolean | undefined;
|
|
1478
1482
|
underline?: boolean | undefined;
|
|
@@ -1865,15 +1869,16 @@ export declare class ChartModel extends Disposable {
|
|
|
1865
1869
|
trendlines?: import("..").ITrendLine[] | undefined;
|
|
1866
1870
|
pie?: {
|
|
1867
1871
|
doughnutHole?: import("@univerjs/core").Nullable<number>;
|
|
1872
|
+
explosion?: number | undefined;
|
|
1868
1873
|
labelStyle?: {
|
|
1869
1874
|
contentType?: number | undefined;
|
|
1870
1875
|
position?: import("..").PieLabelPosition | undefined;
|
|
1871
1876
|
bold?: boolean | undefined;
|
|
1872
1877
|
italic?: boolean | undefined;
|
|
1873
1878
|
fontSize?: number | undefined;
|
|
1879
|
+
color?: string | undefined;
|
|
1874
1880
|
rotate?: number | undefined;
|
|
1875
1881
|
visible?: boolean | undefined;
|
|
1876
|
-
color?: string | undefined;
|
|
1877
1882
|
family?: string | undefined;
|
|
1878
1883
|
strikethrough?: boolean | undefined;
|
|
1879
1884
|
underline?: boolean | undefined;
|
|
@@ -2300,6 +2305,7 @@ export declare class ChartModel extends Disposable {
|
|
|
2300
2305
|
} | undefined;
|
|
2301
2306
|
} | undefined;
|
|
2302
2307
|
} | undefined;
|
|
2308
|
+
includeZeroValues?: boolean | undefined;
|
|
2303
2309
|
} | undefined;
|
|
2304
2310
|
heatmap?: {
|
|
2305
2311
|
visualMapType?: "continuous" | "piecewise" | undefined;
|
|
@@ -2385,6 +2391,7 @@ export declare class ChartModel extends Disposable {
|
|
|
2385
2391
|
minShrinkRatio?: number | undefined;
|
|
2386
2392
|
} | undefined;
|
|
2387
2393
|
} | undefined;
|
|
2394
|
+
layoutInset?: number | undefined;
|
|
2388
2395
|
getRenderColor?: {} | undefined;
|
|
2389
2396
|
isDarkMode?: boolean | undefined;
|
|
2390
2397
|
hasSecondaryAxis?: boolean | undefined;
|
|
@@ -2425,10 +2432,10 @@ export declare class ChartModel extends Disposable {
|
|
|
2425
2432
|
bold?: boolean | undefined;
|
|
2426
2433
|
italic?: boolean | undefined;
|
|
2427
2434
|
fontSize?: number | undefined;
|
|
2435
|
+
color?: string | undefined;
|
|
2428
2436
|
rotate?: number | undefined;
|
|
2429
2437
|
align?: import("..").LabelAlignEnum | undefined;
|
|
2430
2438
|
content?: string | undefined;
|
|
2431
|
-
color?: string | undefined;
|
|
2432
2439
|
family?: string | undefined;
|
|
2433
2440
|
strikethrough?: boolean | undefined;
|
|
2434
2441
|
underline?: boolean | undefined;
|
|
@@ -2441,10 +2448,10 @@ export declare class ChartModel extends Disposable {
|
|
|
2441
2448
|
bold?: boolean | undefined;
|
|
2442
2449
|
italic?: boolean | undefined;
|
|
2443
2450
|
fontSize?: number | undefined;
|
|
2451
|
+
color?: string | undefined;
|
|
2444
2452
|
rotate?: number | undefined;
|
|
2445
2453
|
align?: import("..").LabelAlignEnum | undefined;
|
|
2446
2454
|
content?: string | undefined;
|
|
2447
|
-
color?: string | undefined;
|
|
2448
2455
|
family?: string | undefined;
|
|
2449
2456
|
strikethrough?: boolean | undefined;
|
|
2450
2457
|
underline?: boolean | undefined;
|
|
@@ -2457,10 +2464,10 @@ export declare class ChartModel extends Disposable {
|
|
|
2457
2464
|
bold?: boolean | undefined;
|
|
2458
2465
|
italic?: boolean | undefined;
|
|
2459
2466
|
fontSize?: number | undefined;
|
|
2467
|
+
color?: string | undefined;
|
|
2460
2468
|
rotate?: number | undefined;
|
|
2461
2469
|
align?: import("..").LabelAlignEnum | undefined;
|
|
2462
2470
|
content?: string | undefined;
|
|
2463
|
-
color?: string | undefined;
|
|
2464
2471
|
family?: string | undefined;
|
|
2465
2472
|
strikethrough?: boolean | undefined;
|
|
2466
2473
|
underline?: boolean | undefined;
|
|
@@ -2473,10 +2480,10 @@ export declare class ChartModel extends Disposable {
|
|
|
2473
2480
|
bold?: boolean | undefined;
|
|
2474
2481
|
italic?: boolean | undefined;
|
|
2475
2482
|
fontSize?: number | undefined;
|
|
2483
|
+
color?: string | undefined;
|
|
2476
2484
|
rotate?: number | undefined;
|
|
2477
2485
|
align?: import("..").LabelAlignEnum | undefined;
|
|
2478
2486
|
content?: string | undefined;
|
|
2479
|
-
color?: string | undefined;
|
|
2480
2487
|
family?: string | undefined;
|
|
2481
2488
|
strikethrough?: boolean | undefined;
|
|
2482
2489
|
underline?: boolean | undefined;
|
|
@@ -2489,10 +2496,10 @@ export declare class ChartModel extends Disposable {
|
|
|
2489
2496
|
bold?: boolean | undefined;
|
|
2490
2497
|
italic?: boolean | undefined;
|
|
2491
2498
|
fontSize?: number | undefined;
|
|
2499
|
+
color?: string | undefined;
|
|
2492
2500
|
rotate?: number | undefined;
|
|
2493
2501
|
align?: import("..").LabelAlignEnum | undefined;
|
|
2494
2502
|
content?: string | undefined;
|
|
2495
|
-
color?: string | undefined;
|
|
2496
2503
|
family?: string | undefined;
|
|
2497
2504
|
strikethrough?: boolean | undefined;
|
|
2498
2505
|
underline?: boolean | undefined;
|
|
@@ -2509,8 +2516,8 @@ export declare class ChartModel extends Disposable {
|
|
|
2509
2516
|
bold?: boolean | undefined;
|
|
2510
2517
|
italic?: boolean | undefined;
|
|
2511
2518
|
fontSize?: number | undefined;
|
|
2512
|
-
rotate?: number | undefined;
|
|
2513
2519
|
color?: string | undefined;
|
|
2520
|
+
rotate?: number | undefined;
|
|
2514
2521
|
family?: string | undefined;
|
|
2515
2522
|
strikethrough?: boolean | undefined;
|
|
2516
2523
|
underline?: boolean | undefined;
|
|
@@ -2527,9 +2534,9 @@ export declare class ChartModel extends Disposable {
|
|
|
2527
2534
|
bold?: boolean | undefined;
|
|
2528
2535
|
italic?: boolean | undefined;
|
|
2529
2536
|
fontSize?: number | undefined;
|
|
2537
|
+
color?: string | undefined;
|
|
2530
2538
|
rotate?: number | undefined;
|
|
2531
2539
|
visible?: boolean | undefined;
|
|
2532
|
-
color?: string | undefined;
|
|
2533
2540
|
family?: string | undefined;
|
|
2534
2541
|
strikethrough?: boolean | undefined;
|
|
2535
2542
|
underline?: boolean | undefined;
|
|
@@ -2566,9 +2573,9 @@ export declare class ChartModel extends Disposable {
|
|
|
2566
2573
|
bold?: boolean | undefined;
|
|
2567
2574
|
italic?: boolean | undefined;
|
|
2568
2575
|
fontSize?: number | undefined;
|
|
2576
|
+
color?: string | undefined;
|
|
2569
2577
|
rotate?: number | undefined;
|
|
2570
2578
|
visible?: boolean | undefined;
|
|
2571
|
-
color?: string | undefined;
|
|
2572
2579
|
family?: string | undefined;
|
|
2573
2580
|
strikethrough?: boolean | undefined;
|
|
2574
2581
|
underline?: boolean | undefined;
|
|
@@ -2605,9 +2612,9 @@ export declare class ChartModel extends Disposable {
|
|
|
2605
2612
|
bold?: boolean | undefined;
|
|
2606
2613
|
italic?: boolean | undefined;
|
|
2607
2614
|
fontSize?: number | undefined;
|
|
2615
|
+
color?: string | undefined;
|
|
2608
2616
|
rotate?: number | undefined;
|
|
2609
2617
|
visible?: boolean | undefined;
|
|
2610
|
-
color?: string | undefined;
|
|
2611
2618
|
family?: string | undefined;
|
|
2612
2619
|
strikethrough?: boolean | undefined;
|
|
2613
2620
|
underline?: boolean | undefined;
|
|
@@ -3000,15 +3007,16 @@ export declare class ChartModel extends Disposable {
|
|
|
3000
3007
|
trendlines?: import("..").ITrendLine[] | undefined;
|
|
3001
3008
|
pie?: {
|
|
3002
3009
|
doughnutHole?: import("@univerjs/core").Nullable<number>;
|
|
3010
|
+
explosion?: number | undefined;
|
|
3003
3011
|
labelStyle?: {
|
|
3004
3012
|
contentType?: number | undefined;
|
|
3005
3013
|
position?: import("..").PieLabelPosition | undefined;
|
|
3006
3014
|
bold?: boolean | undefined;
|
|
3007
3015
|
italic?: boolean | undefined;
|
|
3008
3016
|
fontSize?: number | undefined;
|
|
3017
|
+
color?: string | undefined;
|
|
3009
3018
|
rotate?: number | undefined;
|
|
3010
3019
|
visible?: boolean | undefined;
|
|
3011
|
-
color?: string | undefined;
|
|
3012
3020
|
family?: string | undefined;
|
|
3013
3021
|
strikethrough?: boolean | undefined;
|
|
3014
3022
|
underline?: boolean | undefined;
|
|
@@ -3435,6 +3443,7 @@ export declare class ChartModel extends Disposable {
|
|
|
3435
3443
|
} | undefined;
|
|
3436
3444
|
} | undefined;
|
|
3437
3445
|
} | undefined;
|
|
3446
|
+
includeZeroValues?: boolean | undefined;
|
|
3438
3447
|
} | undefined;
|
|
3439
3448
|
heatmap?: {
|
|
3440
3449
|
visualMapType?: "continuous" | "piecewise" | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChartStyle, IChartRenderModelImageExportInput } from '../types';
|
|
2
|
+
import type { ChartModel } from './chart-model';
|
|
3
|
+
export interface IChartRenderInputRuntime {
|
|
4
|
+
chartId: string;
|
|
5
|
+
model: ChartModel;
|
|
6
|
+
}
|
|
7
|
+
export interface IResolveChartRenderModelImageExportInputParams {
|
|
8
|
+
runtime: IChartRenderInputRuntime;
|
|
9
|
+
direction: ChartStyle['direction'];
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function resolveChartRenderModelImageExportInput(params: IResolveChartRenderModelImageExportInputParams): IChartRenderModelImageExportInput | null;
|