@visactor/vchart-types 1.10.1-alpha.0 → 1.10.1
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/component/data-zoom/data-filter-base-component.d.ts +2 -1
- package/types/component/data-zoom/data-zoom/interface.d.ts +1 -1
- package/types/component/data-zoom/index.d.ts +1 -0
- package/types/component/data-zoom/interface.d.ts +4 -0
- package/types/component/data-zoom/scroll-bar/interface.d.ts +1 -1
- package/types/core/interface.d.ts +1 -1
- package/types/core/vchart.d.ts +1 -1
- package/types/plugin/chart/index.d.ts +1 -0
- package/types/series/area/area.d.ts +1 -0
- package/types/series/base/base-series.d.ts +1 -1
- package/types/series/cartesian/cartesian.d.ts +1 -1
- package/types/series/interface/series.d.ts +1 -1
- package/types/series/mixin/line-mixin.d.ts +1 -0
- package/types/series/pie/pie-transformer.d.ts +1 -0
- package/types/series/pie/pie.d.ts +1 -2
- package/types/series/polar/polar.d.ts +1 -1
- package/types/series/range-area/range-area.d.ts +4 -2
|
@@ -5,7 +5,7 @@ import type { AdaptiveSpec, ILayoutRect, ILayoutType, IOrientType, IRect, String
|
|
|
5
5
|
import type { IBaseScale } from '@visactor/vscale';
|
|
6
6
|
import type { ICartesianBandAxisSpec } from '../axis/cartesian';
|
|
7
7
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
8
|
-
import { IFilterMode } from './
|
|
8
|
+
import { IFilterMode } from './interface';
|
|
9
9
|
import type { IDataFilterComponent, IDataFilterComponentSpec, IRoamDragSpec, IRoamScrollSpec, IRoamZoomSpec } from './interface';
|
|
10
10
|
import type { BaseEventParams } from '../../event/interface';
|
|
11
11
|
import type { AbstractComponent } from '@visactor/vrender-components';
|
|
@@ -33,6 +33,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
33
33
|
protected _end: number;
|
|
34
34
|
protected _minSpan: number;
|
|
35
35
|
protected _maxSpan: number;
|
|
36
|
+
protected _spanCache: number;
|
|
36
37
|
protected _shouldChange: boolean;
|
|
37
38
|
protected _field: string | undefined;
|
|
38
39
|
protected _stateField: string;
|
|
@@ -2,7 +2,7 @@ import type { IMarkSpec } from '../../../typings/spec';
|
|
|
2
2
|
import type { IAreaMarkSpec, ILineMarkSpec, IRectMarkSpec, ISymbolMarkSpec, ITextMarkSpec } from '../../../typings/visual';
|
|
3
3
|
import type { IComponentSpec } from '../../base/interface';
|
|
4
4
|
import type { ComponentThemeWithDirection, IComponent } from '../../interface';
|
|
5
|
-
import type { IFilterMode } from '../
|
|
5
|
+
import type { IFilterMode } from '../interface';
|
|
6
6
|
import type { IDataFilterComponent, IDataFilterComponentSpec } from '../interface';
|
|
7
7
|
export type IDataZoom = IComponent & IDataFilterComponent;
|
|
8
8
|
export interface IDataZoomStyle {
|
|
@@ -2,7 +2,7 @@ import type { ILayoutItemSpec } from '../../../layout/interface';
|
|
|
2
2
|
import type { IPadding } from '../../../typings';
|
|
3
3
|
import type { IRectMarkSpec } from '../../../typings/visual';
|
|
4
4
|
import type { ComponentThemeWithDirection } from '../../interface';
|
|
5
|
-
import type { IFilterMode } from '../
|
|
5
|
+
import type { IFilterMode } from '../interface';
|
|
6
6
|
import type { IDataFilterComponentSpec } from '../interface';
|
|
7
7
|
export interface IScrollBarStyle {
|
|
8
8
|
rail?: Omit<IRectMarkSpec, 'width' | 'height'>;
|
|
@@ -81,7 +81,7 @@ export interface IVChart {
|
|
|
81
81
|
getContainer: () => Maybe<HTMLElement>;
|
|
82
82
|
getComponents: () => IComponent[];
|
|
83
83
|
getDataSet: () => Maybe<DataSet>;
|
|
84
|
-
convertDatumToPosition: (datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean) => IPoint | null;
|
|
84
|
+
convertDatumToPosition: (datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean, checkInViewData?: boolean) => IPoint | null;
|
|
85
85
|
convertValueToPosition: ((value: StringOrNumber, dataLinkInfo: DataLinkAxis, isRelativeToCanvas?: boolean) => number | null) & ((value: [StringOrNumber, StringOrNumber], dataLinkInfo: DataLinkSeries, isRelativeToCanvas?: boolean) => IPoint | null);
|
|
86
86
|
stopAnimation: () => void;
|
|
87
87
|
pauseAnimation: () => void;
|
package/types/core/vchart.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ export declare class VChart implements IVChart {
|
|
|
173
173
|
stopAnimation(): void;
|
|
174
174
|
pauseAnimation(): void;
|
|
175
175
|
resumeAnimation(): void;
|
|
176
|
-
convertDatumToPosition(datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean): IPoint | null;
|
|
176
|
+
convertDatumToPosition(datum: Datum, dataLinkInfo?: DataLinkSeries, isRelativeToCanvas?: boolean, checkInViewData?: boolean): IPoint | null;
|
|
177
177
|
convertValueToPosition(value: StringOrNumber, dataLinkInfo: DataLinkAxis, isRelativeToCanvas?: boolean): number | null;
|
|
178
178
|
convertValueToPosition(value: [StringOrNumber, StringOrNumber], dataLinkInfo: DataLinkSeries, isRelativeToCanvas?: boolean): IPoint | null;
|
|
179
179
|
getFunction(key: string): Function | null;
|
|
@@ -20,6 +20,7 @@ export declare class AreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> ext
|
|
|
20
20
|
protected _sortDataByAxis: boolean;
|
|
21
21
|
initMark(): void;
|
|
22
22
|
initMarkStyle(): void;
|
|
23
|
+
initAreaMarkStyle(): void;
|
|
23
24
|
initAnimation(): void;
|
|
24
25
|
protected initTooltip(): void;
|
|
25
26
|
viewDataStatisticsUpdate(d: DataView): void;
|
|
@@ -221,7 +221,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
221
221
|
getFieldAlias(field: string): any;
|
|
222
222
|
getMarkInfoList(): import("../../model/interface").IModelMarkInfo[];
|
|
223
223
|
protected _getInvalidConnectType(): "none" | "zero" | "connect";
|
|
224
|
-
protected _getInvalidDefined
|
|
224
|
+
protected _getInvalidDefined(datum: Datum): boolean;
|
|
225
225
|
protected _getRelatedComponentSpecInfo(specKey: string): import("../../model/interface").IModelSpecInfo<any>[];
|
|
226
226
|
protected _forEachStackGroup(callback: (node: ISeriesStackDataLeaf) => void, node?: ISeriesStackDataMeta): void;
|
|
227
227
|
isDatumInViewData(datum: Datum): any;
|
|
@@ -99,6 +99,6 @@ export declare abstract class CartesianSeries<T extends ICartesianSeriesSpec = I
|
|
|
99
99
|
getMeasureField(): string[];
|
|
100
100
|
protected initEvent(): void;
|
|
101
101
|
_sortDataInAxisDomain(): void;
|
|
102
|
-
protected _getInvalidDefined
|
|
102
|
+
protected _getInvalidDefined(datum: Datum): boolean;
|
|
103
103
|
reInit(spec: T): void;
|
|
104
104
|
}
|
|
@@ -166,7 +166,7 @@ export interface IGeoSeries extends ISeries {
|
|
|
166
166
|
getDatumCenter: (datum: any) => [number, number];
|
|
167
167
|
}
|
|
168
168
|
export interface IArcSeries extends IPolarSeries {
|
|
169
|
-
|
|
169
|
+
getCenter: () => IPoint;
|
|
170
170
|
getRadius: (state?: StateValueType) => number;
|
|
171
171
|
getInnerRadius: (state?: StateValueType) => number;
|
|
172
172
|
computeRadius: (r: number, k?: number) => number;
|
|
@@ -18,8 +18,7 @@ export declare class BasePieSeries<T extends IBasePieSeriesSpec> extends PolarSe
|
|
|
18
18
|
protected _pieMarkType: MarkTypeEnum;
|
|
19
19
|
static readonly mark: SeriesMarkMap;
|
|
20
20
|
protected _viewDataLabel: SeriesData;
|
|
21
|
-
|
|
22
|
-
get center(): IPoint;
|
|
21
|
+
getCenter(): IPoint;
|
|
23
22
|
protected _centerOffset: number;
|
|
24
23
|
protected _cornerRadius: number;
|
|
25
24
|
protected _startAngle: number;
|
|
@@ -56,5 +56,5 @@ export declare abstract class PolarSeries<T extends IPolarSeriesSpec = IPolarSer
|
|
|
56
56
|
protected _computeLayoutRadius(): number;
|
|
57
57
|
fillData(): void;
|
|
58
58
|
_sortDataInAxisDomain(): void;
|
|
59
|
-
protected _getInvalidDefined
|
|
59
|
+
protected _getInvalidDefined(datum: Datum): boolean;
|
|
60
60
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { DataView } from '@visactor/vdataset';
|
|
2
1
|
import { AreaSeries } from '../area/area';
|
|
3
2
|
import type { SeriesMarkMap } from '../interface';
|
|
4
3
|
import { SeriesTypeEnum } from '../interface/type';
|
|
4
|
+
import type { Datum } from '../../typings';
|
|
5
5
|
import type { IAreaSeriesSpec } from '../area/interface';
|
|
6
6
|
export declare class RangeAreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec> extends AreaSeries<T> {
|
|
7
7
|
static readonly type: string;
|
|
@@ -9,7 +9,9 @@ export declare class RangeAreaSeries<T extends IAreaSeriesSpec = IAreaSeriesSpec
|
|
|
9
9
|
static readonly mark: SeriesMarkMap;
|
|
10
10
|
initMark(): void;
|
|
11
11
|
initMarkStyle(): void;
|
|
12
|
+
initAreaMarkStyle(): void;
|
|
12
13
|
protected initTooltip(): void;
|
|
13
|
-
|
|
14
|
+
protected _isFieldAllValid(): boolean;
|
|
15
|
+
protected _getInvalidDefined(datum: Datum): boolean;
|
|
14
16
|
}
|
|
15
17
|
export declare const registerRangeAreaSeries: () => void;
|