@visactor/vchart-types 1.10.4 → 1.10.5
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/axis/cartesian/axis.d.ts +1 -1
- package/types/component/data-zoom/data-filter-base-component.d.ts +2 -2
- package/types/component/data-zoom/interface.d.ts +1 -4
- package/types/component/legend/discrete/interface.d.ts +1 -0
- package/types/component/player/player.d.ts +2 -1
- package/types/util/math.d.ts +1 -1
|
@@ -94,11 +94,11 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
94
94
|
};
|
|
95
95
|
_transformLayoutRect: (result: ILayoutRect) => ILayoutRect;
|
|
96
96
|
getBoundsInRect(rect: ILayoutRect): IBoundsLike;
|
|
97
|
-
updateLayoutAttribute(): void;
|
|
98
97
|
private _getTitleLimit;
|
|
99
98
|
private _getUpdateAttribute;
|
|
100
99
|
protected getLabelItems(length: number): any[];
|
|
101
100
|
protected initEvent(): void;
|
|
101
|
+
protected _updateAxisLayout: () => void;
|
|
102
102
|
protected _getNormalizedValue(values: any[], length: number): number;
|
|
103
103
|
private _fixAxisOnZero;
|
|
104
104
|
protected _layoutCacheProcessing(rect: ILayoutRect): ILayoutRect;
|
|
@@ -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 './interface';
|
|
8
|
+
import type { 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';
|
|
@@ -111,7 +111,7 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
|
|
|
111
111
|
scrollY: number;
|
|
112
112
|
}, e: BaseEventParams['event']) => boolean;
|
|
113
113
|
protected _handleChartDrag: (delta: [number, number], e: BaseEventParams['event']) => void;
|
|
114
|
-
protected _handleChartMove: (value: number, rate: number) =>
|
|
114
|
+
protected _handleChartMove: (value: number, rate: number) => boolean;
|
|
115
115
|
protected _initCommonEvent(): void;
|
|
116
116
|
updateLayoutAttribute(): void;
|
|
117
117
|
onLayoutStart(layoutRect: IRect, viewRect: ILayoutRect, ctx: any): void;
|
|
@@ -67,6 +67,7 @@ export type IDiscreteLegendSpec = ILegendCommonSpec & {
|
|
|
67
67
|
data?: (data: LegendItemDatum[], colorScale: IBaseScale, globalScale: IGlobalScale) => LegendItemDatum[];
|
|
68
68
|
item?: IItem;
|
|
69
69
|
pager?: IPager | ILegendScrollbar;
|
|
70
|
+
scale?: string;
|
|
70
71
|
scaleName?: string;
|
|
71
72
|
field?: string;
|
|
72
73
|
defaultSelected?: string[];
|
|
@@ -18,6 +18,7 @@ export declare class Player extends BaseComponent<IPlayer> implements IComponent
|
|
|
18
18
|
private _specs;
|
|
19
19
|
private _playerComponent;
|
|
20
20
|
private _cacheAttrs;
|
|
21
|
+
private _visible;
|
|
21
22
|
private _direction;
|
|
22
23
|
private _alternate;
|
|
23
24
|
private _dx;
|
|
@@ -32,8 +33,8 @@ export declare class Player extends BaseComponent<IPlayer> implements IComponent
|
|
|
32
33
|
afterSetLayoutStartPoint(pos: IPoint): void;
|
|
33
34
|
getBoundsInRect(rect: ILayoutRect, fullSpace: ILayoutRect): {
|
|
34
35
|
x1: number;
|
|
35
|
-
y1: number;
|
|
36
36
|
x2: number;
|
|
37
|
+
y1: number;
|
|
37
38
|
y2: number;
|
|
38
39
|
};
|
|
39
40
|
changeRegions(regions: IRegion[]): void;
|
package/types/util/math.d.ts
CHANGED
|
@@ -25,4 +25,4 @@ export declare function radiusLabelOrientAttribute(angle: number): {
|
|
|
25
25
|
};
|
|
26
26
|
export declare function vectorAngle(v1: IPoint, v2: IPoint): number;
|
|
27
27
|
export declare function distance(p1: IPoint, p2?: IPoint): number;
|
|
28
|
-
export declare function getPercentValue(valueList: number[],
|
|
28
|
+
export declare function getPercentValue(valueList: number[], precision?: number): number[] | 0;
|