@visactor/vchart-types 1.12.6 → 1.12.7
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/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base/base-chart.d.ts +1 -0
- package/types/chart/chart-meta/data.d.ts +1 -2
- package/types/data/initialize.d.ts +1 -2
- package/types/plugin/chart/media-query/media-query.d.ts +1 -0
- package/types/plugin/chart/plugin-service.d.ts +2 -0
- package/types/series/funnel/funnel.d.ts +1 -0
- package/types/series/funnel/interface.d.ts +3 -1
|
@@ -110,6 +110,7 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
110
110
|
updateGlobalScaleDomain(): void;
|
|
111
111
|
updateGlobalScale(result: IUpdateSpecResult): void;
|
|
112
112
|
updateGlobalScaleTheme(): void;
|
|
113
|
+
private _getSpecKeys;
|
|
113
114
|
updateSpec(spec: T): {
|
|
114
115
|
change: boolean;
|
|
115
116
|
reMake: boolean;
|
|
@@ -5,9 +5,8 @@ import type { StringOrNumber } from '../../typings';
|
|
|
5
5
|
export declare class ChartData {
|
|
6
6
|
protected _dataArr: DataView[];
|
|
7
7
|
get dataList(): DataView[];
|
|
8
|
-
protected _onError: (...args: any[]) => void;
|
|
9
8
|
protected _dataSet: DataSet;
|
|
10
|
-
constructor(dataSet: DataSet
|
|
9
|
+
constructor(dataSet: DataSet);
|
|
11
10
|
parseData(dataSpec: IData): void;
|
|
12
11
|
updateData(dataSpec: IData, fullUp?: boolean, forceMerge?: boolean): boolean;
|
|
13
12
|
private _dataValueForEach;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { utilFunctionCtx } from '../typings/params';
|
|
2
1
|
import { DataSet, DataView } from '@visactor/vdataset';
|
|
3
2
|
import type { IDataViewOptions } from '@visactor/vdataset';
|
|
4
3
|
import type { IDataValues } from '../typings/spec/common';
|
|
@@ -7,7 +6,7 @@ export declare function initCSVData(): void;
|
|
|
7
6
|
export declare function initData(): void;
|
|
8
7
|
export declare function initFoldData(): void;
|
|
9
8
|
export declare function dataViewFromDataView(rawData: DataView, dataSet?: DataSet, op?: IDataViewOptions): DataView;
|
|
10
|
-
export declare function dataToDataView(data: DataView | IDataValues, dataSet: DataSet, sourceDataViews?: DataView[]
|
|
9
|
+
export declare function dataToDataView(data: DataView | IDataValues, dataSet: DataSet, sourceDataViews?: DataView[]): DataView;
|
|
11
10
|
export declare function updateDataViewInData(dataView: DataView, data: IDataValues, forceMerge: boolean): void;
|
|
12
11
|
export declare enum TransformLevel {
|
|
13
12
|
copyDataView = -10,
|
|
@@ -19,6 +19,7 @@ export declare class MediaQuery extends BasePlugin implements IChartPlugin {
|
|
|
19
19
|
onInit(service: IChartPluginService, chartSpec: any): void;
|
|
20
20
|
onBeforeResize(service: IChartPluginService, width: number, height: number): void;
|
|
21
21
|
onAfterChartSpecTransform(service: IChartPluginService, chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
22
|
+
onAfterModelSpecTransform(service: IChartPluginService, chartSpec: any, chartInfo: IChartSpecInfo, actionSource: VChartRenderActionSource): void;
|
|
22
23
|
onBeforeInitChart(service: IChartPluginService, chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
23
24
|
protected _changeSize(width: number, height: number, compile?: boolean, render?: boolean): boolean;
|
|
24
25
|
protected _applyQueries(compile?: boolean, render?: boolean): boolean;
|
|
@@ -2,12 +2,14 @@ import type { IChartPlugin, IChartPluginService } from './interface';
|
|
|
2
2
|
import type { IVChart } from '../../core';
|
|
3
3
|
import { BasePluginService } from '../base/base-plugin-service';
|
|
4
4
|
import type { VChartRenderActionSource } from '../../core/interface';
|
|
5
|
+
import type { IChartSpecInfo } from '../../chart/interface/common';
|
|
5
6
|
export declare class ChartPluginService<T extends IChartPlugin = IChartPlugin> extends BasePluginService<T> implements IChartPluginService<T> {
|
|
6
7
|
globalInstance: IVChart;
|
|
7
8
|
constructor(globalInstance: IVChart);
|
|
8
9
|
onInit(chartSpec: any): void;
|
|
9
10
|
onBeforeResize(width: number, height: number): void;
|
|
10
11
|
onAfterChartSpecTransform(chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
12
|
+
onAfterModelSpecTransform(chartSpec: any, chartSpecInfo: IChartSpecInfo, actionSource: VChartRenderActionSource): void;
|
|
11
13
|
onBeforeInitChart(chartSpec: any, actionSource: VChartRenderActionSource): void;
|
|
12
14
|
releaseAll(): void;
|
|
13
15
|
}
|
|
@@ -36,7 +36,9 @@ export interface IFunnelOuterLabelSpec extends IMarkSpec<IComposedTextMarkSpec>
|
|
|
36
36
|
spaceWidth?: number;
|
|
37
37
|
alignLabel?: boolean;
|
|
38
38
|
style?: ITextMarkSpec;
|
|
39
|
-
line?:
|
|
39
|
+
line?: {
|
|
40
|
+
minLength?: number;
|
|
41
|
+
} & IMarkSpec<IRuleMarkSpec>;
|
|
40
42
|
}
|
|
41
43
|
export interface IFunnelSeriesTheme {
|
|
42
44
|
[SeriesMarkNameEnum.funnel]?: Partial<IMarkTheme<IPolygonMarkSpec>>;
|