@visactor/vchart-types 2.1.0-alpha.16 → 2.1.0-alpha.18
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/animation/callback-disappear.d.ts +1 -1
- package/types/chart/base/base-chart-transformer.d.ts +3 -0
- package/types/chart/base/base-chart.d.ts +27 -9
- package/types/chart/interface/chart.d.ts +1 -0
- package/types/chart/util.d.ts +4 -1
- package/types/compile/compiler.d.ts +2 -0
- package/types/compile/data/compilable-data.d.ts +1 -1
- package/types/compile/grammar-item.d.ts +1 -1
- package/types/compile/interface/compilable-item.d.ts +1 -1
- package/types/compile/interface/compiler.d.ts +2 -1
- package/types/compile/stage-app.d.ts +17 -0
- package/types/component/axis/base-axis.d.ts +3 -8
- package/types/component/axis/cartesian/band-axis.d.ts +1 -7
- package/types/component/axis/cartesian/linear-axis.d.ts +1 -1
- package/types/component/axis/polar/band-axis.d.ts +2 -0
- package/types/component/base/base-component.d.ts +7 -7
- package/types/component/base/release-vrender-component.d.ts +10 -0
- package/types/component/brush/brush.d.ts +3 -7
- package/types/component/crosshair/base.d.ts +5 -8
- package/types/component/custom-mark/custom-mark.d.ts +4 -7
- package/types/component/data-zoom/data-filter-base-component.d.ts +3 -7
- package/types/component/data-zoom/data-zoom/data-zoom.d.ts +1 -0
- package/types/component/data-zoom/scroll-bar/scroll-bar.d.ts +1 -0
- package/types/component/geo/geo-coordinate.d.ts +1 -7
- package/types/component/indicator/indicator.d.ts +1 -0
- package/types/component/indicator/util.d.ts +4 -3
- package/types/component/label/base-label.d.ts +1 -7
- package/types/component/legend/base-legend.d.ts +2 -7
- package/types/component/legend/discrete/legend.d.ts +1 -1
- package/types/component/marker/base-marker.d.ts +14 -7
- package/types/component/marker/utils.d.ts +4 -4
- package/types/component/player/player.d.ts +1 -0
- package/types/component/title/title.d.ts +1 -7
- package/types/component/tooltip/tooltip.d.ts +1 -0
- package/types/core/index.d.ts +2 -1
- package/types/core/vchart.d.ts +5 -1
- package/types/data/data-view-utils.d.ts +5 -0
- package/types/data/transforms/box-plot.d.ts +4 -1
- package/types/data/transforms/correlation-center.d.ts +10 -4
- package/types/data/transforms/correlation.d.ts +18 -15
- package/types/data/transforms/funnel.d.ts +10 -8
- package/types/data/transforms/lookup.d.ts +3 -3
- package/types/data/transforms/map.d.ts +8 -2
- package/types/data/transforms/sankey.d.ts +12 -4
- package/types/data/transforms/stack-split.d.ts +2 -1
- package/types/data/transforms/treemap.d.ts +5 -3
- package/types/data/transforms/venn.d.ts +4 -2
- package/types/data/transforms/waterfall.d.ts +4 -2
- package/types/event/event.d.ts +4 -0
- package/types/mark/base/base-mark.d.ts +12 -2
- package/types/mark/component.d.ts +9 -0
- package/types/mark/interface/mark.d.ts +2 -0
- package/types/model/base-model.d.ts +3 -15
- package/types/model/interface.d.ts +13 -0
- package/types/plugin/components/tooltip-handler/canvas-tooltip-handler.d.ts +2 -2
- package/types/region/region.d.ts +1 -7
- package/types/scale/color-ordinal-scale.d.ts +1 -0
- package/types/series/area/area.d.ts +2 -0
- package/types/series/bar/bar.d.ts +3 -0
- package/types/series/base/base-series.d.ts +11 -7
- package/types/series/base/constant.d.ts +3 -0
- package/types/series/box-plot/box-plot.d.ts +2 -0
- package/types/series/dot/dot.d.ts +12 -0
- package/types/series/heatmap/heatmap.d.ts +2 -0
- package/types/series/line/line.d.ts +2 -0
- package/types/series/mixin/line-mixin.d.ts +1 -0
- package/types/series/pie/pie.d.ts +3 -7
- package/types/series/polar/progress-like/progress-like.d.ts +2 -0
- package/types/series/polar/rose-like/rose-like.d.ts +2 -0
- package/types/series/progress/circular/circular.d.ts +2 -0
- package/types/series/progress/linear/linear.d.ts +2 -0
- package/types/series/scatter/scatter.d.ts +2 -0
- package/types/series/waterfall/waterfall.d.ts +2 -0
- package/types/util/graphic-state.d.ts +4 -0
- package/types/util/math.d.ts +1 -1
- package/types/vchart-line.d.ts +4 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Datum } from '../../../typings';
|
|
2
2
|
import type { SeriesMarkMap } from '../../interface';
|
|
3
3
|
import { SeriesTypeEnum } from '../../interface/type';
|
|
4
|
+
import type { ISeriesSpecUpdatePolicy } from '../../base/base-series';
|
|
4
5
|
import type { ICircularProgressSeriesSpec } from './interface';
|
|
5
6
|
import { ProgressLikeSeries } from '../../polar/progress-like/progress-like';
|
|
6
7
|
import type { IMark } from '../../../mark/interface';
|
|
@@ -16,6 +17,7 @@ export declare class CircularProgressSeries<T extends ICircularProgressSeriesSpe
|
|
|
16
17
|
readonly transformerConstructor: typeof CircularProgressSeriesSpecTransformer;
|
|
17
18
|
private _progressMark;
|
|
18
19
|
private _trackMark;
|
|
20
|
+
protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
|
|
19
21
|
getStackGroupFields(): string[];
|
|
20
22
|
getGroupFields(): string[];
|
|
21
23
|
initMark(): void;
|
|
@@ -3,6 +3,7 @@ import type { SeriesMarkMap } from '../../interface';
|
|
|
3
3
|
import { SeriesTypeEnum } from '../../interface/type';
|
|
4
4
|
import type { ILinearProgressSeriesSpec } from './interface';
|
|
5
5
|
import type { IMark } from '../../../mark/interface';
|
|
6
|
+
import type { ISeriesSpecUpdatePolicy } from '../../base/base-series';
|
|
6
7
|
export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec = ILinearProgressSeriesSpec> extends CartesianSeries<T> {
|
|
7
8
|
static readonly type: string;
|
|
8
9
|
type: SeriesTypeEnum;
|
|
@@ -12,6 +13,7 @@ export declare class LinearProgressSeries<T extends ILinearProgressSeriesSpec =
|
|
|
12
13
|
};
|
|
13
14
|
private _progressMark;
|
|
14
15
|
private _trackMark;
|
|
16
|
+
protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
|
|
15
17
|
initMark(): void;
|
|
16
18
|
initMarkStyle(): void;
|
|
17
19
|
private _initProgressMark;
|
|
@@ -2,6 +2,7 @@ import type { DataView } from '@visactor/vdataset';
|
|
|
2
2
|
import type { IScatterInvalidType } from '../../typings';
|
|
3
3
|
import type { IScatterSeriesSpec } from './interface';
|
|
4
4
|
import { CartesianSeries } from '../cartesian/cartesian';
|
|
5
|
+
import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
|
|
5
6
|
import type { SeriesMarkMap } from '../interface';
|
|
6
7
|
import { SeriesTypeEnum } from '../interface/type';
|
|
7
8
|
import type { ILabelMark, IMark } from '../../mark/interface';
|
|
@@ -22,6 +23,7 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
|
|
|
22
23
|
private _shape;
|
|
23
24
|
private _shapeField;
|
|
24
25
|
protected _invalidType: IScatterInvalidType;
|
|
26
|
+
protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
|
|
25
27
|
setAttrFromSpec(): void;
|
|
26
28
|
private _getSeriesAttribute;
|
|
27
29
|
private getSizeAttribute;
|
|
@@ -8,6 +8,7 @@ import type { Datum } from '../../typings';
|
|
|
8
8
|
import type { ILabelMark, IRuleMark, ITextMark } from '../../mark/interface';
|
|
9
9
|
import type { ILabelInfo } from '../../component/label/interface';
|
|
10
10
|
import { type ICompilableData } from '../../compile/data';
|
|
11
|
+
import type { ISeriesSpecUpdatePolicy } from '../base/base-series';
|
|
11
12
|
export declare const DefaultBandWidth = 6;
|
|
12
13
|
export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfallSeriesSpec> extends BarSeries<any> {
|
|
13
14
|
static readonly type: string;
|
|
@@ -24,6 +25,7 @@ export declare class WaterfallSeries<T extends IWaterfallSeriesSpec = IWaterfall
|
|
|
24
25
|
protected _leaderLineMark: IRuleMark;
|
|
25
26
|
protected _stackLabelMark: ITextMark;
|
|
26
27
|
protected _labelMark: ITextMark;
|
|
28
|
+
protected _getSpecUpdatePolicy(): ISeriesSpecUpdatePolicy;
|
|
27
29
|
protected initGroups(): void;
|
|
28
30
|
setAttrFromSpec(): void;
|
|
29
31
|
getSeriesKeys(): string[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IMarkGraphic } from '../mark/interface';
|
|
2
|
+
export declare const setGraphicStates: (graphic: IMarkGraphic, nextStates?: string[] | null, hasAnimation?: boolean) => void;
|
|
3
|
+
export declare const addGraphicState: (graphic: IMarkGraphic, state: string, keepCurrentStates?: boolean, hasAnimation?: boolean) => void;
|
|
4
|
+
export declare const removeGraphicState: (graphic: IMarkGraphic, state: string | string[], hasAnimation?: boolean) => void;
|
package/types/util/math.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
2
|
import type { IPoint } from '../typings';
|
|
3
3
|
import { isNumberClose, isGreater, isLess, normalizeAngle } from '@visactor/vutils';
|
|
4
|
-
import { angleLabelOrientAttribute } from '@visactor/vrender-components';
|
|
4
|
+
import { angleLabelOrientAttribute } from '@visactor/vrender-components/axis/util';
|
|
5
5
|
export declare const isClose: typeof isNumberClose;
|
|
6
6
|
export { isGreater, isLess, normalizeAngle, angleLabelOrientAttribute };
|
|
7
7
|
export declare function normalizeStartEndAngle(start: number | null, end: number | null): {
|